/* Sri Lankan Celebrity Archive - Responsive Styles */

/* Tablet Breakpoint */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

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

    .profile-content {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1;
        min-width: 200px;
    }

    .profile-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-image {
        width: 200px;
        height: 250px;
    }

    .profile-tags {
        justify-content: center;
    }
}

/* Mobile Breakpoint */
@media screen and (max-width: 768px) {
    html {
        font-size: 15px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    /* Header Mobile */
    .header-content {
        flex-wrap: wrap;
    }

    .nav {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0;
        background: var(--bg-secondary);
        border-radius: var(--radius-md);
        overflow: hidden;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 1rem;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .nav-links a:hover,
    .nav-links a.active {
        border-bottom: none;
        border-left-color: var(--primary-color);
        background: var(--bg-tertiary);
    }

    .menu-toggle {
        display: block;
    }

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

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

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

    .lang-switcher {
        order: -1;
        margin-left: auto;
        margin-right: 1rem;
    }

    /* Hero Mobile */
    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .search-box input {
        padding: 0.875rem 1rem 0.875rem 2.5rem;
        font-size: 0.875rem;
    }

    .categories {
        gap: 0.5rem;
    }

    .category-pill {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Section Mobile */
    .section {
        padding: 2.5rem 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Cards Mobile */
    .celebrity-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .celebrity-card {
        display: flex;
        flex-direction: row;
    }

    .celebrity-card-image {
        width: 120px;
        min-width: 120px;
        aspect-ratio: 1;
    }

    .celebrity-card-content {
        padding: 1rem;
        flex: 1;
    }

    .celebrity-card-name {
        font-size: 1rem;
    }

    .celebrity-card-bio {
        -webkit-line-clamp: 2;
    }

    /* Filters Mobile */
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
        justify-content: space-between;
    }

    .filter-select {
        flex: 1;
    }

    /* Profile Mobile */
    .profile-hero {
        padding: 2rem 0;
    }

    .profile-image {
        width: 150px;
        height: 180px;
    }

    .profile-info h1 {
        font-size: 1.5rem;
    }

    .profile-name-local {
        font-size: 1rem;
    }

    .profile-content {
        padding: 1.5rem 0;
        gap: 1.5rem;
    }

    .sidebar-card {
        min-width: 100%;
    }

    /* Footer Mobile */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .lang-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .celebrity-card {
        flex-direction: column;
    }

    .celebrity-card-image {
        width: 100%;
        aspect-ratio: 16/9;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination button {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Landscape Mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }

    .celebrity-card {
        flex-direction: row;
    }

    .celebrity-card-image {
        width: 150px;
        aspect-ratio: 1;
    }
}

/* High Resolution Screens */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .celebrity-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .filters,
    .search-box,
    .lang-switcher,
    .pagination,
    .btn {
        display: none !important;
    }

    .hero {
        background: white !important;
        color: black !important;
        padding: 1rem 0;
    }

    .hero h1 {
        color: black !important;
    }

    .celebrity-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .profile-hero {
        background: white !important;
        color: black !important;
    }

    .profile-info h1 {
        color: black !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f0f0f0;
        --text-secondary: #b0b0b0;
        --text-light: #808080;
        --bg-primary: #1a1a1a;
        --bg-secondary: #2a2a2a;
        --bg-tertiary: #3a3a3a;
        --border-color: #404040;
        --footer-bg: #111111;
    }

    .search-box input {
        background: var(--bg-secondary);
        color: var(--text-primary);
    }

    .filter-select {
        color: var(--text-primary);
    }

    .pagination button {
        color: var(--text-primary);
    }

    .celebrity-card a {
        color: var(--text-primary);
    }

    .about-content,
    .about-content li {
        color: var(--text-secondary);
    }
}
