/* SYNAPTECHIA SHARED DESIGN SYSTEM */
/* Enforced by Frontend Artist Agent */

:root {
    --syn-neon: #D6FF2A;
    /* The Signature Green */
    --syn-dark: #0a0e18;
    /* Deep Space Black */
    --syn-glass: rgba(255, 255, 255, 0.03);
    --syn-border: rgba(255, 255, 255, 0.1);
    --syn-text: #ffffff;
}

body {
    background-color: var(--syn-dark);
    color: var(--syn-text);
}

/* Enforce Button Styles */
.syn-cta,
button,
.btn {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    transition: all 0.2s ease;
}

/* Hover Effects */
.syn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(214, 255, 42, 0.2);
}

/* Universal Footer Fix */
.syn-footer {
    border-top: 1px solid var(--syn-border);
    margin-top: 60px;
    padding: 40px 20px;
    background: linear-gradient(to bottom, var(--syn-dark), #000);
}

.syn-footer a:hover {
    opacity: 1;
    color: var(--syn-neon);
}

/* --- HIGH-FIDELITY HEADER REPLICA --- */
.syn-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    padding: 20px 0;
    background: transparent;
    /* Seamless integration */
}

.syn-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.syn-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
}

.syn-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.syn-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.syn-nav a:hover {
    color: white;
}

/* Dropdown fix */
.syn-dropdown {
    position: relative;
    display: inline-block;
}

.syn-dropmenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0a0e18;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    min-width: 180px;
    z-index: 1001;
}

.syn-dropdown:hover .syn-dropmenu {
    display: block;
}

.syn-dropmenu a {
    display: block;
    padding: 8px 12px;
}

/* Blue Admin Button */
.btn-admin-blue {
    background: #00C2FF !important;
    color: #000 !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.btn-admin-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 194, 255, 0.3);
}

/* Hide React Header strictly */
#root header,
#root .header,
#root nav {
    display: none !important;
}

.syn-footer a:hover {
    opacity: 1;
    color: var(--syn-neon);
}

/* --- GABARIT RESTORATION (Gold Standard) --- */
.syn-brand img {
    height: 32px !important;
    width: auto !important;
}

.hero-media {
    border-radius: 24px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.hero-media img,
.hero-media iframe {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Force cards to respect the grid gabarit */
.syn-aside-card {
    border-radius: 20px !important;
    padding: 20px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* --- FOOTER GRID FIX --- */
.syn-footer .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .syn-footer .grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* --- HIDE DUPLICATE REACT STRUCTURES --- */
/* The user wants the static 'Blue' header and 'Professional' footer. */
/* We hide the duplicates that might be generated by the #root app. */
#root .syn-header,
#root .syn-nav,
#root footer,
#root .syn-footer,
#root .syn-hero-image {
    display: none !important;
}

/* --- ADMIN BLUE BUTTON --- */
.btn-admin-blue {
    background: #00C2FF !important;
    color: #000 !important;
    /* Black text on bright blue */
    border: none !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: transform 0.2s;
}

.btn-admin-blue:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 194, 255, 0.4);
}