/* ============================================================
   RESPONSIVE MOBILE-FIRST CSS
   Desktop (769px+): No changes, looks exactly the same
   Mobile (max 768px): Hamburger menu + optimized layout
   ============================================================ */

/* MOBILE ONLY: Hamburger Menu Styles */
@media (max-width: 768px) {
    /* Hide hamburger button on desktop */
    .hamburger-btn {
        display: block !important;
    }

    .hamburger-btn {
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        margin-left: auto;
    }

    .hamburger-btn span {
        width: 25px;
        height: 3px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Mobile Navigation */
    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-radius: 0 0 10px 10px;
    }

    nav.active {
        display: flex;
    }

    nav a, nav button {
        padding: 12px 0;
        border: none;
        background: none;
        text-align: left;
        cursor: pointer;
        font-size: 16px;
        color: #333;
        border-bottom: 1px solid #eee;
    }

    nav a:last-child, nav button:last-child {
        border-bottom: none;
    }

    /* Mobile Header */
    header {
        display: flex;
        align-items: center;
        padding: 10px 15px !important;
        height: auto;
    }

    .header-logo {
        font-size: 18px !important;
        flex: 1;
    }

    .header-buttons {
        display: none;
    }

    /* Mobile Typography */
    h1 {
        font-size: 20px !important;
        margin: 15px 0 10px !important;
    }

    h2 {
        font-size: 18px !important;
    }

    h3 {
        font-size: 16px !important;
    }

    p, a, button, input, textarea, select {
        font-size: 14px !important;
    }

    /* Mobile Spacing */
    body {
        padding: 0 10px !important;
    }

    .container {
        padding: 15px !important;
        margin: 10px 0 !important;
    }

    section {
        padding: 15px !important;
        margin: 10px 0 !important;
    }

    /* Mobile Banner - Responsive Sizing */
    .banner, .ad-banner, [class*="banner"], [class*="ad"] {
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0 !important;
        padding: 8px !important;
    }

    /* Mobile Form Elements */
    input, textarea, select {
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    button {
        padding: 10px 15px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Mobile Grid to Stack */
    .grid, .row, [class*="grid"], [class*="row"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .grid > *, .row > *, [class*="grid"] > *, [class*="row"] > * {
        width: 100% !important;
    }

    /* Mobile Images */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Mobile Navbar */
    nav ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    nav li {
        width: 100% !important;
    }

    /* Mobile Footer */
    footer {
        padding: 15px !important;
        font-size: 12px !important;
    }

    /* Mobile Cards */
    .card, [class*="card"] {
        padding: 15px !important;
        margin: 10px 0 !important;
    }

    /* Mobile Modals */
    .modal-content, [class*="modal"] {
        width: 95% !important;
        max-height: 90vh !important;
        padding: 20px !important;
    }

    /* Touch-friendly buttons */
    button, a[role="button"], input[type="button"], input[type="submit"] {
        min-height: 44px !important;
        min-width: 44px !important;
    }

    /* Mobile Flex */
    .flex {
        flex-direction: column !important;
    }

    /* Mobile Sidebar/Aside */
    aside, .sidebar {
        display: none !important;
    }
}

/* DESKTOP (769px+): Keep everything as is - NO CHANGES */
@media (min-width: 769px) {
    .hamburger-btn {
        display: none !important;
    }

    nav {
        display: flex !important;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    /* Keep desktop styles intact - no overrides needed */
}

/* Utility Classes */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}
