/* ==============================================
   RESPONSIVE DESIGN - 4 BREAKPOINTS
   ============================================== */

/* ============================================== 
   DESKTOP - 1001px and above 
   ============================================== */
@media (min-width: 1001px) {
    .container {
        max-width: 1200px;
    }

    .header-container {
        max-width: 1400px;
    }
}

/* ============================================== 
   TABLET - 701px to 1000px 
   ============================================== */
@media (max-width: 1000px) and (min-width: 701px) {
    .container {
        max-width: 900px;
    }

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

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

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

/* ============================================== 
   MOBILE LARGE / SMALL TABLET - 401px to 700px 
   ============================================== */
@media (max-width: 700px) and (min-width: 401px) {
    .container {
        padding: 0 1rem;
    }

    .header-container {
        padding: 0.75rem 1rem;
    }

    .logo-img {
        height: 45px;
    }

    /* Mobile Menu Visible */
    .mobile-menu-btn {
        display: flex;
        z-index: 1100;
    }

    .nav {
        display: none !important;
        position: fixed !important;
        top: 68px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        min-height: calc(100vh - 68px) !important;
        height: auto !important;
        background-color: #0A1628 !important;
        backdrop-filter: blur(10px);
        padding: 2rem 1.5rem !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        z-index: 9999 !important;
    }

    .nav.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

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

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 1.1rem;
        justify-content: space-between;
        border-radius: 8px;
        background-color: rgba(255, 255, 255, 0.05);
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Dropdown in mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        margin-top: 0.5rem;
        margin-left: 1rem;
        display: none;
    }

    .dropdown-menu.active {
        display: block;
    }

    .dropdown-menu a {
        color: var(--color-white);
        opacity: 0.9;
        padding: 0.75rem 1rem;
    }

    .dropdown-menu a:hover {
        opacity: 1;
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Hide search button on smaller screens */
    .search-btn {
        display: none;
    }

    /* Language switcher smaller */
    .language-switcher {
        gap: 3px;
        margin-right: 0.5rem;
    }

    .lang-btn {
        padding: 5px 8px;
        font-size: 0.7rem;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    /* Hero adjustments */
    .hero {
        min-height: 550px;
    }

    .hero-title {
        font-size: clamp(2rem, 7vw, 3.5rem);
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
        letter-spacing: 2px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

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

    /* News grid */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* About stats */
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* techniques, weapons grids */
    .techniques-grid,
    .weapons-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* ============================================== 
   MOBILE SMALL - 0px to 400px 
   ============================================== */
@media (max-width: 400px) {
    .container {
        padding: 0 0.75rem;
    }

    .header-container {
        padding: 0.5rem 0.75rem;
    }

    .logo-img {
        height: 40px;
    }

    /* Very compact mobile menu button */
    .mobile-menu-btn {
        display: flex;
        padding: 0.4rem;
        z-index: 1100;
    }

    .mobile-menu-btn span {
        width: 20px;
        height: 2px;
    }

    /* Full screen mobile menu */
    .nav {
        display: none !important;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        min-height: calc(100vh - 60px) !important;
        height: auto !important;
        background-color: #0A1628 !important;
        backdrop-filter: blur(10px);
        padding: 1.5rem 1rem !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        z-index: 9999 !important;
    }

    .nav.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

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

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 0.9rem 1rem;
        font-size: 1rem;
        justify-content: space-between;
        border-radius: 6px;
        background-color: rgba(255, 255, 255, 0.05);
    }

    .nav-link .arrow {
        font-size: 0.5rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.08);
        border-radius: 6px;
        margin-top: 0.4rem;
        margin-left: 0.75rem;
        display: none;
    }

    .dropdown-menu.active {
        display: block;
    }

    .dropdown-menu a {
        color: var(--color-white);
        opacity: 0.9;
        padding: 0.65rem 0.85rem;
        font-size: 0.9rem;
    }

    /* Hide search and theme buttons on very small screens */
    .search-btn {
        display: none;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
    }

    /* Compact language switcher */
    .language-switcher {
        gap: 2px;
        margin-right: 0.4rem;
    }

    .lang-btn {
        padding: 4px 6px;
        font-size: 0.65rem;
    }

    /* Hero very compact */
    .hero {
        min-height: 450px;
        padding-top: 60px;
    }

    .hero-content {
        padding: 1rem 0.75rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        letter-spacing: 2px;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: clamp(0.75rem, 2vw, 1rem);
        letter-spacing: 1px;
        margin-bottom: 0.75rem;
    }

    .hero-tagline {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }

    .hero-scroll {
        bottom: 20px;
        font-size: 0.75rem;
    }

    /* Sections very compact padding */
    .about-section,
    .philosophy-section,
    .techniques-section,
    .weapons-section,
    .exercises-section,
    .news-section,
    .events-section,
    .history-section,
    .partners-section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* News grid single column */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .news-card {
        max-width: 100%;
    }

    /* About stats single column */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* techniques, weapons single column */
    .techniques-grid,
    .weapons-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .philosophy-card,
    .technique-card,
    .weapon-card {
        padding: 1.25rem;
    }

    .philosophy-icon,
    .technique-icon,
    .weapon-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    /* Events compact */
    .event-card {
        flex-direction: column;
        padding: 1rem;
    }

    .event-date-block {
        margin-bottom: 1rem;
    }

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

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

    .footer-logo-img {
        height: 60px;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }

    .social-links {
        justify-content: center;
        gap: 0.75rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        font-size: 0.8rem;
    }

    /* News modal mobile friendly */
    .news-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .news-slider-container {
        height: 250px;
    }

    .news-modal-title {
        font-size: 1.25rem;
    }

    .news-modal-text {
        font-size: 0.95rem;
    }

    .slider-control {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    .slider-control.prev {
        left: 10px;
    }

    .slider-control.next {
        right: 10px;
    }
}