/* Shared responsive and navigation improvements for migrated Blade pages */

html {
    scroll-behavior: smooth;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #c9a961;
    outline-offset: 2px;
}

.app-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.app-nav-toggle:active {
    transform: translateY(1px);
}

.app-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.app-theme-toggle:hover {
    transform: translateY(-1px);
}

.app-theme-icon {
    font-size: 0.95rem;
    line-height: 1;
}

html[data-theme='light'] {
    color-scheme: light;
    --bg: #f4f7fb;
    --bg2: #e7eef8;
    --white: #0d1b2a;
    --text: #44586f;
    --glass: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(13, 27, 42, 0.14);
    --shadow: 0 20px 46px rgba(13, 27, 42, 0.12);
}

html[data-theme='light'] body {
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, 0.12), transparent 32%),
        radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.1), transparent 30%),
        linear-gradient(135deg, #f8fafc, #eef3fa, #e7eef8) !important;
    color: var(--white) !important;
}

html[data-theme='light'] body::before {
    background-image:
        linear-gradient(rgba(13, 27, 42, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 27, 42, 0.05) 1px, transparent 1px) !important;
}

html[data-theme='light'] .navbar,
html[data-theme='light'] .pc-navbar,
html[data-theme='light'] .mk-navbar,
html[data-theme='light'] .ve-nav-wrap,
html[data-theme='light'] .glass-card,
html[data-theme='light'] .form-card,
html[data-theme='light'] .stats-panel,
html[data-theme='light'] .feature-card,
html[data-theme='light'] .platform-card,
html[data-theme='light'] .timeline-card {
    border-color: rgba(13, 27, 42, 0.14) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 16px 36px rgba(13, 27, 42, 0.1) !important;
}

html[data-theme='light'] .logo,
html[data-theme='light'] .logo-text,
html[data-theme='light'] .hero h1,
html[data-theme='light'] .hero-tag,
html[data-theme='light'] h1,
html[data-theme='light'] h2,
html[data-theme='light'] h3,
html[data-theme='light'] h4,
html[data-theme='light'] h5,
html[data-theme='light'] h6 {
    color: #0d1b2a !important;
}

html[data-theme='light'] .nav-links a,
html[data-theme='light'] .pc-nav-links a,
html[data-theme='light'] .mk-nav-links a,
html[data-theme='light'] .ve-nav a,
html[data-theme='light'] p,
html[data-theme='light'] .hero p {
    color: #44586f !important;
}

html[data-theme='light'] .nav-links a.active,
html[data-theme='light'] .nav-links a:hover,
html[data-theme='light'] .pc-nav-links a.active,
html[data-theme='light'] .pc-nav-links a:hover,
html[data-theme='light'] .mk-nav-links a.active,
html[data-theme='light'] .mk-nav-links a:hover,
html[data-theme='light'] .ve-nav a.active,
html[data-theme='light'] .ve-nav a:hover {
    color: #c9a961 !important;
}

html[data-theme='light'] .btn-secondary,
html[data-theme='light'] .app-nav-toggle,
html[data-theme='light'] .app-responsive-nav {
    background: rgba(247, 250, 253, 0.96) !important;
    color: #0d1b2a !important;
    border-color: rgba(13, 27, 42, 0.16) !important;
}

html[data-theme='light'] .app-theme-toggle {
    background: rgba(255, 255, 255, 0.96);
    color: #0d1b2a;
    border-color: rgba(13, 27, 42, 0.2);
}

@media (max-width: 1024px) {
    .pc-navbar,
    .mk-navbar,
    .ve-nav-wrap,
    .navbar {
        gap: 12px;
        align-items: center;
    }

    .pc-navbar,
    .mk-navbar,
    .navbar {
        flex-wrap: wrap;
    }

    .app-nav-toggle {
        display: inline-flex;
    }

    .pc-user,
    .mk-user,
    .ve-cta,
    .nav-cta {
        margin-left: auto;
    }

    .navbar {
        position: relative;
    }

    .navbar .logo {
        order: 1;
    }

    .navbar .app-nav-toggle {
        order: 3;
        margin-left: 8px;
    }

    .navbar .app-theme-toggle {
        order: 2;
        margin-left: auto;
    }

    .ve-nav-wrap .app-theme-toggle,
    .pc-navbar .app-theme-toggle,
    .mk-navbar .app-theme-toggle {
        margin-left: auto;
    }

    .navbar .nav-cta {
        display: none !important;
    }

    .app-responsive-nav {
        width: 100%;
        order: 10;
        display: none !important;
        border-radius: 16px;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(7, 16, 25, 0.92);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .app-responsive-nav.is-open {
        display: block !important;
    }

    .navbar .nav-links.app-responsive-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        margin: 0;
        width: 100%;
        z-index: 1002;
        display: none !important;
    }

    .navbar .nav-links.app-responsive-nav.is-open {
        display: flex !important;
    }

    .navbar .nav-links.app-responsive-nav li {
        width: 100%;
    }

    .pc-nav-links,
    .mk-nav-links,
    .nav-links {
        gap: 8px;
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .pc-nav-links a,
    .mk-nav-links a,
    .ve-nav a,
    .nav-links a {
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 12px 14px;
        border-radius: 12px;
    }

    .ve-nav ul {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .pc-dashboard,
    .mk-dashboard-page,
    .pc-page {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .pc-user-info,
    .mk-user h5,
    .mk-user span {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .pc-navbar,
    .mk-navbar,
    .header {
        left: 10px;
        right: 10px;
        top: 10px;
    }

    .pc-navbar,
    .mk-navbar,
    .navbar {
        padding: 12px;
        border-radius: 16px;
    }

    .mk-logo-text,
    .pc-logo-text,
    .ve-logo a,
    .logo-text {
        font-size: 1.05rem !important;
    }

    .pc-user,
    .mk-user {
        padding: 8px;
        border-radius: 14px;
    }

    .pc-user img,
    .mk-user img {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .pc-user-info,
    .mk-user div {
        display: none;
    }

    .pc-dashboard,
    .mk-dashboard-page,
    .pc-page {
        padding-top: 150px !important;
    }
}
