/*
 * Responsive CSS Framework for School Theme
 * Mobile-first approach with progressive enhancement
 */

/* ==========================================================================
   BASE MOBILE STYLES (320px and up)
   ========================================================================== */

/* Mobile-first foundation - already included in style.css */

/* Mobile specific adjustments */
@media screen and (max-width: 767px) {
    
    /* Typography adjustments for mobile */
    html {
        font-size: 14px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.2rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }
    
    /* Container adjustments */
    .container {
        padding: 0 10px;
        max-width: 100%;
    }
    
    /* Button adjustments */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .btn-sm {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    /* Grid system - mobile single column */
    .grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Header mobile styles */
    .top-contact-bar {
        padding: 5px 0;
        font-size: 0.75rem;
    }
    
    .top-contact-bar .contact-left {
        gap: 10px;
        justify-content: flex-start;
    }
    
    .top-contact-bar .social-links {
        gap: 5px;
    }
    
    .social-links a {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .top-contact-bar .contact-phone {
        gap: 5px;
        font-size: 1rem;
        font-weight: 600;
    }
    
    .top-contact-bar .contact-right {
        justify-content: flex-end;
    }
    
    .contact-right .btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .header-info {
        display: none; /* Hide on mobile */
    }
    
    .site-header {
        position: relative;
    }
    
    .header-content {
        padding: 10px 0;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .site-branding {
        flex: 1;
    }
    
    .site-brand-container {
        gap: 10px;
        justify-content: center;
    }
    
    .site-logo img {
        max-height: 50px;
    }
    
    .site-logo-text .site-title {
        font-size: 1.2rem;
    }
    
    .site-description {
        font-size: 0.8rem;
    }
    
    /* Mobile navigation */
    .main-navigation {
        flex: 0 0 auto;
        margin: 0;
    }
    
    .menu-toggle {
        display: flex;
        padding: 10px;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #6c757d;
        flex-direction: column;
        padding: 60px 0 20px;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #6c757d;
    }
    
    .nav-menu a {
        color: #fff;
        padding: 18px 20px;
        font-size: 1.1rem;
        border-bottom: none;
        background-color: transparent;
    }
    
    .nav-menu a:hover,
    .nav-menu .current-menu-item > a {
        color: #fff;
        background-color: #ff6b35;
        border-bottom-color: transparent;
    }
    
    /* Mobile dropdown menus */
    .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.3);
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 0;
        border-top: none;
    }
    
    .nav-menu .sub-menu a {
        padding: 15px 30px;
        font-size: 1rem;
        border-bottom: 1px solid #6c757d;
    }
    
    /* WhatsApp button mobile */
    .header-whatsapp {
        margin-left: 10px;
    }
    
    .whatsapp-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        gap: 5px;
    }
    
    .whatsapp-btn i {
        font-size: 1rem;
    }

    
    /* Hero slider mobile */
    .hero-slider-section {
        height: 350px;
        max-height: 350px;
    }
    
    .hero-slide-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero-slide-description {
        font-size: 1rem;
        margin-bottom: 20px;
        padding: 0 20px;
    }
    
    .hero-slide-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 20px;
    }
    
    .hero-slide-buttons .btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .hero-slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hero-slider-prev {
        left: 10px;
    }
    
    .hero-slider-next {
        right: 10px;
    }
    
    .hero-slider-indicators {
        bottom: 20px;
    }
    
    .hero-slider-indicator {
        width: 10px;
        height: 10px;
    }
    
    /* Section spacing mobile */
    .academic-levels-section,
    .news-section,
    .gallery-preview-section,
    .quick-actions-section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .section-description {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    /* Academic levels mobile */
    .academic-levels-grid {
        gap: 20px;
    }
    
    .level-content {
        padding: 20px;
    }
    
    .level-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    /* News section mobile */
    .news-grid {
        gap: 20px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    /* Gallery mobile */
    .gallery-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Quick actions mobile */
    .quick-actions-grid {
        gap: 20px;
    }
    
    .quick-action-item {
        padding: 30px 15px;
    }
    
    .action-title {
        font-size: 1.1rem;
    }
    
    /* Footer mobile */
    .footer-bottom {
        padding: 15px 0;
    }
    
    .copyright-info {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   SMALL MOBILE LANDSCAPE / LARGE MOBILE (480px and up)
   ========================================================================== */

@media screen and (min-width: 480px) {
    
    /* Container adjustments */
    .container {
        padding: 0 15px;
    }
    
    /* Grid improvements */
    .grid {
        gap: 20px;
    }
    
    /* Hero slider improvements */
    .hero-slider-section {
        height: 400px;
        max-height: 400px;
    }
    
    .hero-slide-title {
        font-size: 2.2rem;
    }
    
    .hero-slide-description {
        font-size: 1.1rem;
    }
    
    .hero-slide-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-slide-buttons .btn {
        width: auto;
        min-width: 150px;
    }
    
    /* Academic menu improvements */
    .academic-menu {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Gallery improvements */
    .gallery-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Quick actions improvements */
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   TABLET PORTRAIT (768px and up)
   ========================================================================== */

@media screen and (min-width: 768px) {
    
    /* Typography improvements */
    html {
        font-size: 16px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .container {
        padding: 0 30px;
    }
    
    /* Show contact bar on tablet */
    .top-contact-bar {
        display: block;
    }
    
    .contact-info {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .contact-left,
    .contact-right {
        flex: 1;
    }
    
    /* Header improvements */
    .header-content {
        flex-direction: row;
        align-items: center;
        padding: 15px 0;
    }
    
    .site-branding {
        text-align: left;
        order: 1;
        flex: 1;
    }
    
    .main-navigation {
        order: 2;
        width: auto;
    }
    
    .menu-toggle {
        display: flex; /* Still show on tablet for better UX */
        position: static;
    }
    
    .header-search {
        order: 3;
    }
    
    /* Academic navigation */
    .academic-nav {
        order: 4;
        width: 100%;
    }
    
    .academic-menu {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    /* Hero slider tablet */
    .hero-slider-section {
        height: 450px;
        max-height: 450px;
    }
    
    .hero-slide-title {
        font-size: 2.8rem;
    }
    
    .hero-slide-description {
        font-size: 1.2rem;
    }
    
    .hero-slide-buttons {
        gap: 20px;
    }
    
    .hero-slider-nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .hero-slider-prev {
        left: 20px;
    }
    
    .hero-slider-next {
        right: 20px;
    }
    
    /* Grid system enhancements */
    .grid-md-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-md-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-md-4 { grid-template-columns: repeat(4, 1fr); }
    
    /* Section spacing */
    .academic-levels-section,
    .news-section,
    .gallery-preview-section,
    .quick-actions-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    /* Academic levels */
    .academic-levels-grid {
        gap: 25px;
    }
    
    /* News section */
    .news-grid {
        gap: 25px;
    }
    
    /* Gallery */
    .gallery-preview-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Quick actions */
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-bottom {
        padding: 20px 0;
    }
}

/* ==========================================================================
   TABLET LANDSCAPE / SMALL DESKTOP (1024px and up)
   ========================================================================== */

@media screen and (min-width: 1024px) {
    
    .container {
        padding: 0 40px;
    }
    
    /* Header full desktop mode */
    .menu-toggle {
        display: none; /* Hide hamburger on desktop */
    }
    
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        flex-direction: row;
        padding: 0;
        left: 0;
        gap: 30px;
    }
    
    .nav-menu li {
        width: auto;
        border-bottom: none;
    }
    
    .nav-menu a {
        color: #fff;
        padding: 10px 0;
        font-size: 1rem;
    }
    
    .nav-menu a:hover {
        color: #3498db;
        background-color: transparent;
        padding-left: 0;
    }
    
    /* Dropdown menus desktop */
    .nav-menu .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        min-width: 200px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        margin-left: 0;
        margin-top: 0;
    }
    
    .nav-menu li:hover .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-menu .sub-menu a {
        color: #2c3e50;
        padding: 12px 20px;
        font-size: 0.9rem;
        border-bottom: 1px solid #f8f9fa;
    }
    
    /* Academic navigation desktop */
    .academic-menu {
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
    }
    
    /* Hero slider desktop */
    .hero-slider-section {
        height: 480px;
        max-height: 480px;
    }
    
    .hero-slide-title {
        font-size: 3.2rem;
    }
    
    .hero-slide-description {
        font-size: 1.3rem;
    }
    
    /* Grid system */
    .grid-lg-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-lg-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-lg-4 { grid-template-columns: repeat(4, 1fr); }
    .grid-lg-6 { grid-template-columns: repeat(6, 1fr); }
    
    /* Section spacing */
    .academic-levels-section,
    .news-section,
    .gallery-preview-section,
    .quick-actions-section {
        padding: 80px 0;
    }
    
    /* Academic levels */
    .academic-levels-grid {
        gap: 30px;
    }
    
    /* News section */
    .news-grid {
        gap: 30px;
    }
    
    /* Quick actions */
    .quick-actions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    

}

/* ==========================================================================
   LARGE DESKTOP (1200px and up)
   ========================================================================== */

@media screen and (min-width: 1200px) {
    
    .container {
        max-width: 1200px;
        padding: 0 50px;
    }
    
    /* Hero slider large desktop */
    .hero-slide-title {
        font-size: 3.5rem;
    }
    
    .hero-slide-description {
        font-size: 1.3rem;
    }
    
    /* Grid system */
    .grid-xl-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-xl-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-xl-4 { grid-template-columns: repeat(4, 1fr); }
    .grid-xl-6 { grid-template-columns: repeat(6, 1fr); }
    
    /* Section spacing */
    .section-header {
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-description {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   EXTRA LARGE DESKTOP (1440px and up)
   ========================================================================== */

@media screen and (min-width: 1440px) {
    
    .container {
        max-width: 1400px;
    }
    
    /* Hero section */
    .hero-title {
        font-size: 4rem;
    }
    
    /* Enhanced spacing for large screens */
    .academic-levels-section,
    .news-section,
    .gallery-preview-section,
    .quick-actions-section {
        padding: 100px 0;
    }
}

/* ==========================================================================
   RESPONSIVE UTILITIES
   ========================================================================== */

/* Visibility utilities */
.hide-mobile {
    display: none;
}

@media screen and (min-width: 768px) {
    .hide-mobile {
        display: block;
    }
    
    .hide-tablet {
        display: none;
    }
}

@media screen and (min-width: 1024px) {
    .hide-tablet {
        display: block;
    }
    
    .hide-desktop {
        display: none;
    }
}

.show-mobile {
    display: block;
}

@media screen and (min-width: 768px) {
    .show-mobile {
        display: none;
    }
}

/* Responsive text alignment */
.text-center-mobile {
    text-align: center;
}

@media screen and (min-width: 768px) {
    .text-center-mobile {
        text-align: left;
    }
}

/* Responsive spacing */
.mb-responsive {
    margin-bottom: 1rem;
}

@media screen and (min-width: 768px) {
    .mb-responsive {
        margin-bottom: 1.5rem;
    }
}

@media screen and (min-width: 1024px) {
    .mb-responsive {
        margin-bottom: 2rem;
    }
}

/* Print styles */
@media print {
    .top-contact-bar,
    .main-navigation,
    .academic-nav,
    .back-to-top,
    .social-links {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        padding: 20px 0;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a, a:visited {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    .btn {
        border: 1px solid black;
        padding: 10px;
        display: inline-block;
        width: auto;
    }
}

/* News Page Template Responsive Styles */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media screen and (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media screen and (max-width: 1023px) {
    .news-page .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .news-page .filter-left,
    .news-page .filter-right {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .news-page .news-hero-title {
        font-size: 2.5rem;
    }
    
    .news-page .news-hero-description {
        font-size: 1.1rem;
    }
    
    .news-page .search-field {
        width: 200px;
    }
    
    .news-page .news-card-content {
        padding: 20px;
    }
    
    .news-page .filter-left {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .news-page .filter-right {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .news-page .news-filters-section {
        padding: 25px;
    }
}

@media screen and (max-width: 480px) {
    .news-page .news-hero-title {
        font-size: 2rem;
    }
    
    .news-page .search-field {
        width: 150px;
    }
    
    .news-page .news-content-section {
        padding: 40px 0;
    }
    
    .news-page .filter-title {
        font-size: 1.5rem;
    }
}

/* About Page Responsive Styles */
@media screen and (max-width: 1023px) {
    .hakkimizda-page .about-hero-title {
        font-size: 2.5rem;
    }
    
    .hakkimizda-page .about-hero-description {
        font-size: 1.1rem;
    }
    
    .hakkimizda-page .about-content-section {
        padding: 60px 0;
    }
    
    .hakkimizda-page .about-section {
        margin-bottom: 60px;
    }
    
    .hakkimizda-page .mission-vision-section {
        padding: 40px 20px;
    }
    
    .hakkimizda-page .mission-card,
    .hakkimizda-page .vision-card {
        padding: 30px 20px;
    }
    
    .hakkimizda-page .card-title {
        font-size: 1.5rem;
    }
    
    .hakkimizda-page .values-section .section-title {
        font-size: 2rem;
    }
    
    .hakkimizda-page .value-item {
        padding: 30px 20px;
    }
    
    .hakkimizda-page .stats-section {
        padding: 40px 20px;
    }
    
    .hakkimizda-page .stat-number {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .hakkimizda-page .about-hero-section {
        padding: 80px 0 60px;
    }
    
    .hakkimizda-page .about-hero-title {
        font-size: 2rem;
    }
    
    .hakkimizda-page .about-hero-description {
        font-size: 1rem;
    }
    
    .hakkimizda-page .about-grid,
    .hakkimizda-page .mission-vision-grid,
    .hakkimizda-page .values-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hakkimizda-page .about-text h2 {
        font-size: 2rem;
    }
    
    .hakkimizda-page .about-text p {
        font-size: 1rem;
    }
    
    .hakkimizda-page .mission-vision-section {
        margin-bottom: 40px;
    }
    
    .hakkimizda-page .values-section .section-title {
        font-size: 1.8rem;
    }
    
    .hakkimizda-page .values-section .section-description {
        font-size: 1rem;
    }
    
    .hakkimizda-page .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .hakkimizda-page .stat-number {
        font-size: 2rem;
    }
    
    .hakkimizda-page .stat-label {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .hakkimizda-page .about-hero-title {
        font-size: 1.8rem;
    }
    
    .hakkimizda-page .about-text h2 {
        font-size: 1.8rem;
    }
    
    .hakkimizda-page .card-icon {
        font-size: 2.5rem;
    }
    
    .hakkimizda-page .card-title {
        font-size: 1.3rem;
    }
    
    .hakkimizda-page .value-icon {
        font-size: 2.5rem;
    }
    
    .hakkimizda-page .value-title {
        font-size: 1.3rem;
    }
    
    .hakkimizda-page .stats-section {
        padding: 30px 15px;
    }
    
    .hakkimizda-page .stat-number {
        font-size: 1.8rem;
    }
}

/* Error 404 Page Responsive Styles */
@media screen and (max-width: 1023px) {
    .error-404 .error-hero-section {
        padding: 80px 0 60px;
    }
    
    .error-404 .error-number {
        font-size: 6rem;
    }
    
    .error-404 .error-title {
        font-size: 2.5rem;
    }
    
    .error-404 .error-description {
        font-size: 1.1rem;
    }
    
    .error-404 .error-content-section {
        padding: 60px 0;
    }
    
    .error-404 .error-search-section {
        padding: 30px;
    }
    
    .error-404 .error-search-section h2 {
        font-size: 1.8rem;
    }
    
    .error-404 .error-section {
        padding: 25px;
    }
    
    .error-404 .error-section h3 {
        font-size: 1.3rem;
    }
    
    .error-404 .error-contact-section {
        padding: 40px 30px;
    }
    
    .error-404 .error-contact-section h3 {
        font-size: 1.8rem;
    }
    
    .error-404 .contact-options {
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .error-404 .error-hero-section {
        padding: 60px 0 40px;
    }
    
    .error-404 .error-number {
        font-size: 5rem;
    }
    
    .error-404 .error-title {
        font-size: 2rem;
    }
    
    .error-404 .error-description {
        font-size: 1rem;
    }
    
    .error-404 .error-content-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .error-404 .error-search-section {
        padding: 25px 20px;
    }
    
    .error-404 .error-search-section h2 {
        font-size: 1.5rem;
    }
    
    .error-404 .error-search-form .search-field {
        padding: 12px 15px;
    }
    
    .error-404 .error-search-form .search-submit {
        padding: 12px 20px;
    }
    
    .error-404 .error-section {
        padding: 20px;
    }
    
    .error-404 .error-contact-section {
        padding: 30px 20px;
    }
    
    .error-404 .error-contact-section h3 {
        font-size: 1.5rem;
    }
    
    .error-404 .contact-options {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .error-404 .contact-option h4 {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .error-404 .error-number {
        font-size: 4rem;
    }
    
    .error-404 .error-title {
        font-size: 1.8rem;
    }
    
    .error-404 .error-description {
        font-size: 0.9rem;
    }
    
    .error-404 .error-actions .btn-primary {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .error-404 .error-search-section h2 {
        font-size: 1.3rem;
    }
    
    .error-404 .error-search-section p {
        font-size: 1rem;
    }
    
    .error-404 .error-section h3 {
        font-size: 1.2rem;
    }
    
    .error-404 .popular-pages-list a,
    .error-404 .academic-levels-list a,
    .error-404 .recent-posts-list a {
        font-size: 0.95rem;
    }
}
