/* ===========================
   MODERN ASHIMO PLAY STYLES
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e50914;
    --secondary: #221f1f;
    --accent: #f5b041;
    --light: #f8f9fa;
    --dark: #0f0f0f;
    --text: #ffffff;
    --text-secondary: #b3b3b3;
    --border: #333333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a1817 100%);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

/* Navbar tools and filter panel */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.navbar-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.9rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
    position: relative;
    z-index: 1200;
    pointer-events: auto;
}

.filter-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.navbar-filter-panel {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    min-width: 320px;
    padding: 0.85rem;
    background: rgba(17, 17, 17, 0.98);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    z-index: 1100;
    pointer-events: auto;
}

.navbar-filter-panel.open {
    display: block;
}

.navbar-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.navbar-filter .search-input,
.navbar-filter .filter-select {
    flex: 1 1 140px;
    min-width: 0;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text);
}

.navbar-filter .search-input::placeholder {
    color: var(--text-secondary);
}

/* Hide admin button in header (for non-admin UI) */
.navbar .btn-admin {
    display: none !important;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.navbar-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--primary);
}

.navbar-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.btn-admin {
    background: linear-gradient(135deg, var(--primary) 0%, #ff073a 100%);
    color: white !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a0f0f 50%, var(--primary) 100%);
    background-attachment: fixed;
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(229, 9, 20, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(229, 9, 20, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.8rem;
    color: var(--text);
    font-size: 1rem;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.btn-search {
    background: linear-gradient(135deg, var(--primary) 0%, #ff073a 100%);
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-search:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

/* ===== FEATURED SECTION ===== */
.featured,
.categories {
    padding: 80px 20px;
    background: var(--dark);
    position: relative;
}

.featured::before,
.categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(229, 9, 20, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.featured h3,
.categories h3 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.featured h3::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ===== CONTENT GRID ===== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    position: relative;
    z-index: 10;
}

#featuredContent {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 1.25rem;
    width: 100%;
}

.featured-layout {
    display: none !important;
}

.content-card {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #111111;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.content-card .content-image {
    height: 420px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111111;
}

.content-card .content-image img,
.content-card .content-image .content-placeholder {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 14px;
}

.content-card .content-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.content-card .content-detail-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#featuredContent .content-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 320px;
}

#featuredContent .content-card .content-image {
    width: 48%;
    height: auto;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#featuredContent .content-card .content-info {
    width: 52%;
    padding: 1.5rem 1.25rem;
    justify-content: center;
    background: #111111;
}

#featuredContent .content-card .content-image img {
    object-fit: contain;
    object-position: center;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

#featuredContent .content-card .content-title {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

#featuredContent .content-card .content-description {
    margin-bottom: 0.5rem;
}

.content-card .content-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.content-image .image-action {
    display: none;
}

.content-image .image-action {
    position: absolute;
    top: 16px;
    left: 16px;
    width: auto;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
}

.featured-spotlight-card, .compact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-spotlight-card:hover, .compact-card:hover {
    transform: translateY(-6px);
}

.featured-stack {
    display: none;
}

.featured-spotlight-card {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.featured-spotlight-card .content-image {
    position: relative;
    height: 100%;
    min-height: 520px;
}

.featured-spotlight-card .content-image img,
.featured-spotlight-card .content-placeholder {
    width: 100%;
    height: 100%;
}

.featured-spotlight-card .content-info {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-spotlight-card .content-title {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.featured-spotlight-card .content-detail-row {
    gap: 1rem;
    margin-bottom: 1rem;
}

.featured-spotlight-card .content-description {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    -webkit-line-clamp: 5 !important;
    line-clamp: 5 !important;
    max-height: calc(1.5em * 5) !important;
}

.featured-spotlight-card .content-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.mini-badge,
.spotlight-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    color: var(--text);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.featured-spotlight-card .btn-secondary {
    background: rgba(255,255,255,0.08);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.12);
}

.featured-spotlight-card .btn-secondary:hover {
    background: rgba(255,255,255,0.12);
}

.featured-spotlight-card .content-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.featured-spotlight-card .btn-link-alt {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--text);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
}

.content-image .image-action {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(0,0,0,0.5);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.content-card {
    min-height: 100%;
}

.featured-spotlight-card {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 1.5rem;
    min-height: 100%;
}

.featured-spotlight-card .content-image {
    height: auto;
    min-height: 100%;
    display: block;
}

.featured-spotlight-card .content-image img,
.featured-spotlight-card .content-placeholder {
    height: 100%;
}

.featured-spotlight-card .content-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-spotlight-card .content-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.featured-spotlight-card .content-detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.featured-spotlight-card .content-tag {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
}

.featured-spotlight-card .spotlight-rating {
    color: var(--accent);
    font-weight: 700;
}

.featured-spotlight-card .content-description {
    margin-bottom: 1.75rem;
    font-size: 1rem;
    color: rgba(255,255,255,0.88);
    -webkit-line-clamp: 5 !important;
    line-clamp: 5 !important;
    max-height: calc(1.5em * 5) !important;
}

.featured-spotlight-card .content-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.featured-spotlight-card .btn-secondary {
    background: rgba(255,255,255,0.08);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.12);
}

.featured-spotlight-card .btn-secondary:hover {
    transform: none;
    background: rgba(255,255,255,0.12);
}

.featured-spotlight-card .content-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.featured-spotlight-card .btn-link-alt {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--text);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
}

.featured-spotlight-card .btn-link-alt:hover {
    border-color: var(--primary);
}

.featured-spotlight-card .spotlight-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    color: var(--text);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.content-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.content-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(229, 9, 20, 0.28);
    border-color: rgba(229, 9, 20, 0.5);
}

.content-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: linear-gradient(135deg, #111, #2a2a2a);
    transform: scale(1.02);
    transition: transform 0.35s ease;
}

.content-card:hover .content-image img {
    transform: scale(1.08);
}

.content-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-secondary);
}

.content-image::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.content-info {
    padding: 1.2rem 1.2rem 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.content-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: var(--text);
    line-height: 1.3;
}

.content-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.content-rating {
    color: var(--accent);
    font-weight: 600;
}

.content-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: none !important;
    margin-top: 0.5rem;
}

.content-description.expanded {
    display: block !important;
}

.desc-toggle {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-weight: 700;
    padding: 0;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    text-align: left;
    display: inline-block;
}

.content-description {
    display: none !important;
    margin-top: 0.5rem;
}

.content-description.expanded {
    display: block !important;
}

.content-footer {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.featured-spotlight-card .content-image {
    height: 360px;
}

.featured-spotlight-card .content-info {
    padding: 1.25rem 1.25rem 1rem;
}

.featured-spotlight-card .content-title {
    font-size: 1.45rem;
}

.featured-spotlight-card .content-description {
    font-size: 0.98rem;
    -webkit-line-clamp: 4 !important;
    line-clamp: 4 !important;
    max-height: calc(1.4em * 4) !important;
}

.btn-watch,
.btn-edit,
.btn-delete,
.btn-link {
    flex: 1;
    padding: 0.7rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-watch {
    background: linear-gradient(135deg, var(--primary) 0%, #ff073a 100%);
    color: white;
}

.btn-watch:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.btn-edit {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
}

.btn-delete {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-link {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

/* ===== CATEGORY GRID ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.category-sections {
    display: grid;
    gap: 1.5rem;
    position: relative;
    z-index: 10;
}

.category-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-header h4 {
    font-size: 1.3rem;
    color: var(--text);
}

.btn-link-inline {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
}

.compact-card .content-image {
    height: 220px;
}

.compact-card .content-footer .btn-link,
.compact-card .content-footer .btn-edit,
.compact-card .content-footer .btn-delete {
    display: none;
}

.compact-card .content-info {
    padding: 1rem;
}

.compact-card .content-title {
    font-size: 1rem;
}

.compact-card .content-description {
    font-size: 0.85rem;
    display: none !important;
}

.category-card {
    background: linear-gradient(135deg, var(--primary) 0%, #ff073a 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(229, 9, 20, 0.4);
    border-color: var(--accent);
}

.category-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.category-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a0f0f 100%);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 2px solid var(--primary);
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ===== FILTER SECTION ===== */
.filter-section {
    background: var(--secondary);
    padding: 2rem 20px;
    border-bottom: 1px solid var(--border);
}

.search-filter {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.search-input,
.filter-select {
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(229, 9, 20, 0.1);
}

.filter-select {
    cursor: pointer;
    min-width: 150px;
}

.filter-select option {
    background: var(--secondary);
    color: var(--text);
}

/* ===== CONTENT SECTION ===== */
.content-section {
    padding: 3rem 20px;
}

/* ===== PAGINATION ===== */
.pagination-section {
    padding: 2rem 20px;
    text-align: center;
    background: var(--secondary);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, var(--secondary) 100%);
    color: var(--text-secondary);
    padding: 2rem 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
    transform: scale(1.2);
}

/* ===== LOADING STATE ===== */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.loading::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 900px) {
    .featured-layout {
        grid-template-columns: 1fr;
    }

    .featured-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
    }

    .navbar-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--secondary);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .navbar-menu.active {
        max-height: 300px;
        border-bottom: 1px solid var(--border);
    }

    .navbar-menu li {
        width: 100%;
    }

    .navbar-menu a {
        display: block;
        padding: 1rem;
        border-radius: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .search-box {
        flex-direction: column;
    }

    /* Responsive adjustments for navbar search */
    .navbar .search-box.navbar-search {
        order: 2;
        width: 100%;
        margin: 0.5rem 0 0.75rem 0;
        display: flex;
        gap: 0.5rem;
        align-items: center;
        justify-content: stretch;
    }

    .navbar .search-box.navbar-search input {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    .navbar .search-box.navbar-search .btn-search {
        flex: 0 0 84px;
    }

    .navbar .container {
        align-items: flex-start;
        gap: 0.5rem;
    }

    .featured h3,
    .categories h3 {
        font-size: 1.8rem;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .search-filter {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }

    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar .search-box.navbar-search input {
        font-size: 0.95rem;
    }

    .featured h3,
    .categories h3 {
        font-size: 1.5rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card {
    animation: slideInUp 0.6s ease-out forwards;
}

.content-card:nth-child(1) { animation-delay: 0.1s; }
.content-card:nth-child(2) { animation-delay: 0.2s; }
.content-card:nth-child(3) { animation-delay: 0.3s; }
.content-card:nth-child(4) { animation-delay: 0.4s; }
.content-card:nth-child(5) { animation-delay: 0.5s; }
.content-card:nth-child(6) { animation-delay: 0.6s; }
