/* Diapofy Common Styles - Shared across all pages */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sky-aqua: #47C7ED;
    --prussian-blue: #011936;
    --charcoal-blue: #465362;
    --muted-olive: #9FC490;
    --tea-green: #C0DFA1;
    --primary: #47C7ED;
    --primary-dark: #3AB0D3;
    --primary-glow: rgba(71, 199, 237, 0.3);
    --secondary: #9FC490;
    --bg-dark: #011936;
    --bg-card: #0a2540;
    --bg-surface: #0d2d4a;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --text-secondary: #465362;
    --success: #9FC490;
    --highlight: #C0DFA1;
    --border: rgba(71, 199, 237, 0.15);

    /* Organic easings */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Lexend Deca', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.75rem 1.5rem;
    background: rgba(1, 25, 54, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.logo-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
    max-height: 32px;
    border-radius: 6px;
    object-fit: contain;
}

.logo-text {
    height: 24px;
    max-height: 24px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
}

/* Navigation */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.35s var(--ease-spring), box-shadow 0.3s var(--ease-smooth), background 0.2s, color 0.2s, border-color 0.2s;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.96);
    transition-duration: 0.1s;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(71, 199, 237, 0.3);
}

.btn-outline:hover {
    background: rgba(71, 199, 237, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: var(--prussian-blue);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px var(--primary-glow);
    background: var(--primary-dark);
    text-decoration: none;
}

/* ===== FOOTER (Compact) ===== */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 1rem;
    }

    .logo {
        gap: 6px;
    }

    .logo-icon {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px;
        max-width: 28px !important;
        max-height: 28px !important;
    }

    .logo-text {
        height: 20px !important;
        max-height: 20px !important;
        max-width: 70px !important;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }

    footer {
        padding: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .footer-links {
        justify-content: center;
        gap: 1rem;
    }

    .footer-links a {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.5rem 0.75rem;
    }

    .logo-icon {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px;
        max-width: 24px !important;
        max-height: 24px !important;
    }

    .logo-text {
        height: 16px !important;
        max-height: 16px !important;
        max-width: 55px !important;
    }

    .nav-right {
        gap: 0.25rem;
    }

    .btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}
