/**
 * CLANSAY Responsive Styles
 *
 * Breakpoints:
 * - Mobile: 320px - 767px (base styles)
 * - Tablet: 768px+
 * - Laptop: 1024px+
 * - Desktop: 1280px+
 *
 * @package CLANSAY
 * @since 1.0.0
 */

/* ================================================
   MOBILE BASE (320px+)
   All base styles in other CSS files are mobile-first
   ================================================ */

/* ================================================
   SITE HERO RESPONSIVE
   ================================================ */

/* Tablet & Small Desktop */
@media (max-width: 1100px) {
    .site-hero h1 {
        font-size: 36px;
    }

    .site-hero-stats {
        gap: 32px;
        flex-wrap: wrap;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .site-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
    }

    .site-hero p {
        margin: 0 auto 32px;
        max-width: 500px;
    }

    .site-hero-cta {
        justify-content: center;
    }

    .site-hero-stats {
        justify-content: center;
    }

    .hero-stat {
        text-align: center;
    }

    .hero-visual {
        height: 350px;
    }

    .hero-central {
        width: 220px;
        height: 220px;
    }

    .hero-central-inner {
        width: 160px;
        height: 160px;
    }

    .hero-central-icon {
        font-size: 36px;
    }

    .hero-card {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .site-hero h1 {
        font-size: 32px;
    }

    .site-hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .hero-visual {
        height: 280px;
    }

    .site-hero {
        min-height: 500px;
    }

    .site-hero-inner {
        padding: 40px 16px;
    }

    .site-hero-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .hero-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .site-hero h1 {
        font-size: 26px;
        line-height: 1.2;
    }

    .site-hero p {
        font-size: 15px;
    }

    .site-hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }

    .site-hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .hero-stat-value {
        font-size: 24px;
    }

    .hero-stat-label {
        font-size: 12px;
    }

    .hero-visual {
        height: 240px;
    }

    .hero-central {
        width: 180px;
        height: 180px;
    }

    .hero-central-inner {
        width: 130px;
        height: 130px;
    }

    .hero-central-icon {
        font-size: 28px;
    }

    .hero-central-text {
        font-size: 14px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .site-hero h1 {
        font-size: 22px;
    }

    .site-hero p {
        font-size: 14px;
    }

    .hero-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ================================================
   ABOUT PAGE RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
    .values-grid,
    .values-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-hero h1 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 32px 20px 24px;
    }

    .about-hero h1 {
        font-size: 28px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about-section {
        padding: 32px 0;
    }

    .section-title {
        font-size: 22px;
    }

    .values-grid,
    .values-grid-4 {
        grid-template-columns: 1fr;
    }

    .process-step {
        flex-direction: column;
        gap: 12px;
    }

    .about-cta {
        padding: 32px 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .about-hero h1 {
        font-size: 24px;
    }

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

    .stat-value {
        font-size: 20px;
    }

    .value-card {
        padding: 16px;
    }
}

/* Mobile Navigation */
@media (max-width: 767px) {
    .nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-light);
        padding: var(--space-4);
        flex-direction: column;
        gap: var(--space-2);
        box-shadow: var(--shadow-lg);
    }

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

    .nav-link {
        width: 100%;
        padding: var(--space-3) var(--space-4);
    }

    .menu-toggle {
        display: flex;
    }

    .search-box {
        display: none;
    }

    .subscribe-btn span {
        display: none;
    }

    .subscribe-btn {
        width: 42px;
        height: 42px;
        padding: 0;
        justify-content: center;
    }

    /* Grids */
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .grid-2,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* Featured Card */
    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-image {
        height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .featured-content {
        padding: var(--space-5);
    }

    .featured-title {
        font-size: var(--font-size-xl);
    }

    /* Content + Sidebar */
    .content-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    /* Page Header */
    .page-header h1 {
        font-size: var(--font-size-3xl);
    }

    /* Article Hero */
    .article-hero {
        height: 320px;
    }

    .article-hero h1 {
        font-size: 24px;
    }

    .article-meta {
        flex-wrap: wrap;
    }

    .article-content {
        padding: 20px;
    }

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

    .post-nav-grid {
        grid-template-columns: 1fr;
    }

    .post-nav-next {
        text-align: left;
    }

    /* Hero */
    .hero h1 {
        font-size: var(--font-size-3xl);
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Error 404 */
    .error-404 h1 {
        font-size: 80px;
    }

    /* Search Form */
    .search-form-large {
        flex-direction: column;
    }

    /* Author Box */
    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin: 0 auto;
    }
}

/* ================================================
   TABLET (768px+)
   ================================================ */
@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================================
   LAPTOP (1024px+)
   ================================================ */
@media (min-width: 1024px) {
    .nav {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .search-box {
        display: flex;
    }

    .subscribe-btn {
        width: auto;
        padding: 10px 20px;
    }

    .subscribe-btn span {
        display: inline;
    }

    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .content-sidebar {
        grid-template-columns: 1fr 320px;
    }

    .footer-top {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .featured-card {
        grid-template-columns: 1.2fr 1fr;
    }

    .featured-image {
        height: 340px;
        border-right: 1px solid var(--border-light);
        border-bottom: none;
    }

    .featured-content {
        padding: var(--space-8) var(--space-8) var(--space-8) 0;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================================================
   DESKTOP (1280px+)
   ================================================ */
@media (min-width: 1280px) {
    .hero h1 {
        font-size: 56px;
    }

    .page-header h1 {
        font-size: var(--font-size-5xl);
    }

    .article-hero {
        height: 450px;
    }

    .article-hero h1 {
        font-size: 44px;
    }
}

/* ================================================
   LARGE DESKTOP (1440px+)
   ================================================ */
@media (min-width: 1440px) {
    .content-sidebar {
        grid-template-columns: 1fr 360px;
    }
}

/* ================================================
   PRINT STYLES
   ================================================ */
@media print {
    .header,
    .footer,
    .sidebar,
    .share-bar,
    .related-posts,
    .menu-toggle {
        display: none !important;
    }

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

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .prose a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ================================================
   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;
    }
}

/* ================================================
   HIGH CONTRAST MODE
   ================================================ */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --border-light: #000000;
        --text-muted: #333333;
        --text-secondary: #222222;
    }
}
