/* Shared styles: header, footer, cookie consent */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #050508;
    color: #e0e0e0;
    min-height: 100vh;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.site-header .home-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
}

.site-header .header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.site-header .header-title {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 10;
    padding: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.08);
    background: rgba(5, 5, 8, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer .footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.site-footer a {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #aaa;
}

.site-footer .copyright {
    color: #444;
    font-size: 0.8rem;
}

.cookie-settings-btn {
    background: none;
    border: 1px solid #333;
    color: #666;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: border-color 0.2s, color 0.2s;
}

.cookie-settings-btn:hover {
    border-color: #666;
    color: #aaa;
}

/* Cookie Consent Overlay */
.cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s;
}

.cookie-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.cookie-box {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 2rem;
    max-width: 480px;
    width: 90%;
}

.cookie-box h2 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 1rem;
}

.cookie-box p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cookie-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-option input[type="checkbox"] {
    accent-color: #818cf8;
    width: 16px;
    height: 16px;
}

.cookie-option label {
    color: #ccc;
    font-size: 0.9rem;
}

.cookie-option label span {
    color: #666;
    font-size: 0.8rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
}

.cookie-btn {
    flex: 1;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.cookie-btn.accept-all {
    background: #818cf8;
    color: #fff;
}

.cookie-btn.accept-all:hover {
    background: #6366f1;
}

.cookie-btn.save {
    background: transparent;
    border: 1px solid #333;
    color: #ccc;
}

.cookie-btn.save:hover {
    border-color: #555;
}

.cookie-btn.reject {
    background: transparent;
    border: 1px solid #333;
    color: #888;
}

.cookie-btn.reject:hover {
    border-color: #555;
    color: #ccc;
}
