﻿/* ========================================
   İslam Arşivi.COM - Responsive Styles
   Mobile-First Approach
   ======================================== */

/* ========================================
   MOBILE MENU
   ======================================== */

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav__list {
    list-style: none;
    text-align: center;
}

.mobile-nav__list li {
    margin-bottom: 1.5rem;
}

.mobile-nav__list a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.mobile-nav__list a:hover,
.mobile-nav__list a.active {
    color: var(--copper, #B87333);
}

.mobile-nav__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--gray-600);
    transition: all 0.2s ease;
}

.mobile-nav__close:hover {
    background: var(--gray-200);
}

/* ========================================
   TABLET (768px - 1024px)
   ======================================== */

@media (max-width: 1024px) {
    /* Header */
    .header-inner {
        padding: 1rem 1.5rem;
    }
    
    /* Hero */
    .hero {
        padding: 4rem 1.5rem 3rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-pillars {
        gap: 1.5rem;
    }
    
    .pillar {
        padding: 2rem;
    }
    
    .pillar__title {
        font-size: 1.75rem;
    }
    
    /* Sections */
    .daily-verse,
    .explore,
    .featured,
    .events,
    .newsletter {
        padding: 4rem 1.5rem;
    }
    
    .explore__title,
    .featured__title,
    .events__title {
        font-size: 2.5rem;
    }
    
    /* Explore Grid */
    .explore__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .explore__card--wide {
        grid-column: span 2;
    }
    
    /* Featured */
    .featured__grid {
        grid-template-columns: 1fr;
    }
    
    .featured__card--hero {
        grid-column: span 1;
    }
    
    /* Events */
    .events__track {
        grid-template-columns: 1fr;
    }
    
    /* Newsletter */
    .newsletter__inner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .newsletter__form {
        max-width: 100%;
        width: 100%;
    }
    
    /* Footer */
    .footer {
        padding: 4rem 1.5rem 2rem;
    }
    
    .footer__top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer__links {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   MOBILE (< 768px)
   ======================================== */

@media (max-width: 768px) {
    /* Header */
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero */
    .hero {
        padding: 3rem 1rem 2rem;
    }
    
    .hero-label {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.15;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-search {
        margin-bottom: 3rem;
    }
    
    .hero-search-box {
        flex-direction: column;
        padding: 0.5rem;
        border-radius: 1rem;
    }
    
    .hero-search-box i {
        display: none;
    }
    
    .hero-search-box input {
        width: 100%;
        padding: 1rem;
        text-align: center;
    }
    
    .hero-search-box button {
        width: 100%;
        padding: 1rem;
    }
    
    /* Pillars */
    .hero-pillars {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pillar {
        padding: 1.5rem;
    }
    
    .pillar__icon {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .pillar__title {
        font-size: 1.5rem;
    }
    
    .pillar__desc {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
    }
    
    .pillar__stats {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .pillar__arrow {
        position: static;
        margin-top: 1rem;
    }
    
    /* Daily Verse */
    .daily-verse {
        padding: 3rem 1rem;
    }
    
    .daily-verse__arabic {
        font-size: 2rem;
    }
    
    .daily-verse__translation {
        font-size: 1.25rem;
    }
    
    .daily-verse__actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-ghost {
        width: 100%;
        justify-content: center;
    }
    
    /* Explore */
    .explore {
        padding: 3rem 1rem;
    }
    
    .explore__title {
        font-size: 2rem;
    }
    
    .explore__desc {
        font-size: 1rem;
    }
    
    .explore__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .explore__card {
        padding: 1.25rem;
        min-height: auto;
    }
    
    .explore__card--wide {
        grid-column: span 1;
    }
    
    .explore__card-inner {
        gap: 1rem;
    }
    
    .explore__card-inner i {
        font-size: 1.75rem;
    }
    
    .explore__card-inner h3 {
        font-size: 1.125rem;
    }
    
    /* Featured */
    .featured {
        padding: 3rem 1rem;
    }
    
    .featured__title {
        font-size: 2rem;
    }
    
    .featured__grid {
        gap: 1.5rem;
    }
    
    .featured__card {
        padding: 1.5rem;
    }
    
    .featured__card-title {
        font-size: 1.25rem;
    }
    
    .featured__card--hero .featured__card-title {
        font-size: 1.5rem;
    }
    
    /* Events */
    .events {
        padding: 3rem 1rem;
    }
    
    .events__title {
        font-size: 2rem;
    }
    
    .events__track {
        gap: 1rem;
    }
    
    .events__card {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .events__date {
        width: 64px;
        height: 64px;
    }
    
    .events__day {
        font-size: 1.5rem;
    }
    
    .events__info h3 {
        font-size: 1rem;
    }
    
    .events__arrow {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    /* Newsletter */
    .newsletter {
        padding: 3rem 1rem;
    }
    
    .newsletter__content h2 {
        font-size: 1.75rem;
    }
    
    .newsletter__form {
        flex-direction: column;
    }
    
    .newsletter__form input,
    .newsletter__form button {
        width: 100%;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 1rem 1.5rem;
    }
    
    .footer__logo {
        font-size: 1.5rem;
    }
    
    .footer__links {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer__col h4 {
        font-size: 0.9375rem;
    }
}

/* ========================================
   SMALL MOBILE (< 480px)
   ======================================== */

@media (max-width: 480px) {
    /* Hero */
    .hero-title {
        font-size: 1.75rem;
    }
    
    /* Footer Links - Single Column */
    .footer__links {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__social {
        justify-content: center;
    }
}

/* ========================================
   LANDSCAPE MOBILE
   ======================================== */

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-search {
        margin-bottom: 1.5rem;
    }
    
    .hero-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   LARGE SCREENS (> 1400px)
   ======================================== */

@media (min-width: 1400px) {
    .hero-pillars {
        gap: 2rem;
    }
    
    .pillar {
        padding: 3rem;
    }
    
    .explore__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .explore__card:first-child {
        grid-column: span 2;
    }
    
    .explore__card:nth-child(5) {
        grid-column: span 2;
    }
    
    .featured__grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .featured__card--hero {
        grid-column: span 1;
        grid-row: span 2;
    }
    
    .events__track {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   ULTRA WIDE (> 1800px)
   ======================================== */

@media (min-width: 1800px) {
    .explore__grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .explore__card:first-child {
        grid-column: span 2;
    }
    
    .explore__card:nth-child(5) {
        grid-column: span 1;
    }
    
    .explore__card:nth-child(6) {
        grid-column: span 2;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .header,
    .search-bar,
    .hero-search,
    .newsletter,
    .footer__social,
    .btn-ghost,
    .events__arrow,
    .pillar__arrow {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .hero {
        padding: 2rem 0;
        background: none;
    }
    
    .daily-verse {
        background: none;
        color: #000;
        padding: 2rem 0;
    }
    
    .daily-verse__arabic {
        color: #000;
    }
    
    a {
        text-decoration: underline;
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   DARK MODE SUPPORT (Optional)
   ======================================== */

@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode
    :root {
        --gray-50: #171717;
        --gray-100: #262626;
        --gray-200: #404040;
        --gray-300: #525252;
        --gray-400: #737373;
        --gray-500: #A3A3A3;
        --gray-600: #D4D4D4;
        --gray-700: #E5E5E5;
        --gray-800: #F5F5F5;
        --gray-900: #FAFAFA;
    }
    
    body {
        background: #0A0A0A;
        color: var(--gray-800);
    }
    */
}
