/* Lono TV PHP - Premium Modern Stylesheet */

:root {
  /* Logo Colors */
  --logo-pink: #d81b60;
  --logo-red: #ee2b2b;
  --logo-cyan: #00bcd4;

  --primary: var(--logo-pink);
  --primary-hover: #c2185b;
  --secondary: var(--logo-cyan);
  --accent: var(--logo-red);

  --background: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-on-primary: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --container-max: 1200px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-main);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.text-sm {
  font-size: 0.875rem;
}

.text-muted {
  color: var(--text-muted);
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-4 {
  margin-top: 1rem;
}

.py-8 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: 2rem;
  transition: background 0.3s;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  z-index: 102;
}

.site-logo img {
  height: 48px;
  width: auto;
  border-radius: var(--radius-sm);
}

/* Desktop Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 210;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Menu Transitions */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -8px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--text-on-primary);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(216, 27, 96, 0.2);
}

/* Badges */
.badge {
  display: inline-block;
  background: var(--logo-cyan);
  color: var(--text-main);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* Grid System */
.grid {
  display: grid;
  gap: 2.5rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Post Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(216, 27, 96, 0.1);
}

.card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover img {
  transform: scale(1.08);
}

/* Placeholder image styling */
.img-placeholder {
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.img-placeholder img {
  max-height: 80px;
  width: auto;
  opacity: 0.5;
  object-fit: contain;
}

.card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h3 {
  font-size: 1.35rem;
  margin: 0.5rem 0 1rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-content p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Breaking News Bar - SCROLLING */
.breaking-bar {
  background: #0f172a;
  color: #fff;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 54px;
}

.breaking-bar strong {
  background: var(--logo-red);
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.75rem;
  flex-shrink: 0;
  letter-spacing: 0.05em;
  z-index: 10;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
}

.breaking-scroll {
  display: flex;
  white-space: nowrap;
  animation: scroll-breaking 30s linear infinite;
  padding-left: 2rem;
}

.breaking-scroll:hover {
  animation-play-state: paused;
}

.breaking-scroll a {
  padding: 0 1.5rem;
  color: #fff;
  opacity: 0.85;
  font-size: 0.9375rem;
  font-weight: 500;
}

.breaking-scroll a:hover {
  opacity: 1;
  color: var(--logo-cyan);
}

@keyframes scroll-breaking {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Home Hero */
.home-hero {
  position: relative;
  height: clamp(400px, 60vh, 600px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 4rem;
  background: #000;
}

.home-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: transform 10s linear;
}

.home-hero:hover img {
  transform: scale(1.1);
}

.hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4rem 3rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
  color: #fff;
}

.hero-caption h2 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  color: #fff;
  max-width: 900px;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-caption p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 700px;
}

/* Sidebar */
.trending-sidebar {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.trending-sidebar h3 {
  border-bottom: 3px solid var(--logo-pink);
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
  font-size: 1.25rem;
  display: inline-block;
}

.trending-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trending-sidebar li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.trending-sidebar li:last-child {
  border-bottom: none;
}

.trending-sidebar a {
  display: flex;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  gap: 1rem;
}

.trending-sidebar a:hover {
  color: var(--logo-pink);
}

/* Article Page */
.article-single {
  max-width: 850px;
  margin: 0 auto;
}

.article-metadata {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-body {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-body p {
  margin-bottom: 2rem;
}

.article-body blockquote {
  font-size: 1.5rem;
  font-style: italic;
  border-left: 4px solid var(--logo-pink);
  padding-left: 2rem;
  margin: 3rem 0;
  color: var(--text-muted);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 5rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.pagination-info {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Search bar */
.search-container {
  max-width: 700px;
  margin: 4rem auto;
  width: 100%;
}

.search-bar {
  display: flex;
  gap: 0.75rem;
  background: var(--surface);
  padding: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%;
}

.search-bar input {
  flex-grow: 1;
  border: none !important;
  box-shadow: none !important;
  font-size: 1.125rem;
  padding: 0.75rem 1rem;
  width: 100%;
  min-width: 0;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 5rem 0 0;
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.75rem;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="search"],
textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
  transition: all 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--logo-pink);
  box-shadow: 0 0 0 4px rgba(216, 27, 96, 0.1);
}

.error {
  color: var(--logo-pink);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Category Page Responsive */
.category-card-responsive {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  align-items: stretch;
  border: none;
  box-shadow: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
  border-radius: 0;
}

/* Media Queries */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 72px;
    backdrop-filter: none;
    /* Disable backdrop filter on mobile if it clips fixed items */
    -webkit-backdrop-filter: none;
    background: #ffffff;
  }

  .header-inner {
    height: 72px;
  }

  .site-logo img {
    height: 42px;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    height: calc(100vh - 72px);
    background: #ffffff;
    flex-direction: column;
    padding: 2.5rem 1.5rem 5rem;
    gap: 0.75rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 200;
    overflow-y: auto;
    align-items: center;
    visibility: hidden;
  }

  .site-nav.active {
    transform: translateX(0);
    visibility: visible;
  }

  .site-nav a {
    font-size: 1.125rem;
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
  }

  .site-nav a:last-of-type {
    border-bottom: none;
  }

  .site-nav .btn {
    width: 100%;
    margin-top: 1rem;
    font-size: 1rem;
    padding: 1rem;
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .trending-sidebar {
    position: static;
    max-width: 100%;
  }

  .search-bar {
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.5rem;
    border-radius: var(--radius);
  }

  .search-bar button {
    width: 100%;
    padding: 0.875rem;
  }

  .search-bar input {
    padding: 0.75rem;
    text-align: center;
  }

  .home-hero {
    height: 450px;
  }

  .hero-caption {
    padding: 2.5rem 1.5rem;
  }

  .hero-caption h2 {
    font-size: 1.75rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .category-card-responsive {
    grid-template-columns: 1fr;
  }

  .category-card-responsive a img,
  .category-card-responsive .img-placeholder {
    height: 220px !important;
  }

  .category-card-responsive .card-content {
    padding: 1.5rem 0 0 0 !important;
  }

  .article-metadata {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .site-footer div[style*="grid-column"] {
    grid-column: span 1 !important;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .home-hero {
    height: 380px;
  }

  .breaking-bar strong {
    padding: 0 0.75rem;
    font-size: 0.65rem;
  }

  .breaking-scroll a {
    font-size: 0.875rem;
    padding: 0 1rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.article-single,
.home-hero {
  animation: fadeIn 0.6s ease-out forwards;
}


