/* Luxury Design Overrides for BookLove */

/* --- 1. Typography & Global Settings --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Mulish:wght@300;400;600&display=swap');

:root {
    --gold-gradient: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    --gold-text-shine: linear-gradient(to right, #BF953F 20%, #FCF6BA 40%, #B38728 60%, #BF953F 80%);
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Varela Round', sans-serif;
    /* Cleaner modern sans-serif for body */
    background-color: #050505;
    /* Deep rich black */
}

/* Headings with Serif elegance */
h1,
h2,
h3,
h4,
.font-serif-luxury {
    font-family: 'Varela Round', sans-serif;
    letter-spacing: -0.02em;
}

/* --- 2. Metallic Gold Effects --- */

/* Text Shimmer Effect */
.text-gold-shimmer {
    background: var(--gold-text-shine);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 4s linear infinite;
    font-weight: 700;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Gold Gradient Borders */
.border-gold-luxury {
    border: 1px solid transparent;
    position: relative;
    background: linear-gradient(#050505, #050505) padding-box,
        linear-gradient(45deg, #BF953F, #FCF6BA, #AA771C) border-box;
}

/* --- 3. Hero Section Enhancements --- */

/* Cinematic Zoom Background */
.hero-bg-zoom {
    animation: cinematicZoom 20s ease-in-out infinite alternate;
}

@keyframes cinematicZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Fog/Mist Atmosphere */
.fog-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.fog-img {
    position: absolute;
    height: 100vh;
    width: 300vw;
    z-index: 1;
    opacity: 0.3;
    background: url('https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog1.png') repeat-x;
    background-size: contain;
    animation: fog 60s linear infinite;
}

.fog-img-2 {
    z-index: 2;
    opacity: 0.2;
    background: url('https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog2.png') repeat-x;
    background-size: contain;
    animation: fog 40s linear infinite;
    top: 30%;
}

@keyframes fog {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-200vw, 0, 0);
    }
}

/* --- 4. Glassmorphism Upgrades --- */

.luxury-glass {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
}

.review-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.95));
    border: 1px solid rgba(191, 149, 63, 0.2);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.review-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(191, 149, 63, 0.6);
    box-shadow: 0 20px 40px -5px rgba(191, 149, 63, 0.2);
}

/* --- 5. Interactive Elements --- */

/* Magnetic Button Base (JS handles movement) */
.btn-gold-luxury {
    background: var(--gold-gradient);
    color: #050505;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: transform 0.1s ease-out;
    /* Super fast for magnetic feel */
}

.btn-gold-luxury::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.btn-gold-luxury:hover::after {
    opacity: 0.3;
    transform: scale(1);
}

/* Selection Color */
::selection {
    background: #BF953F;
    color: white;
}

/* --- 6. Compliance & Accessibility --- */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(191, 149, 63, 0.3);
    border-radius: 12px;
    padding: 24px;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    direction: rtl;
    color: #e0e0e0;
    transition: all 0.5s ease;
}

.cookie-banner.fade-out {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.cookie-content h3 {
    font-family: 'Varela Round', sans-serif;
    color: #BF953F;
    margin-bottom: 12px;
    margin-top: 0;
}

.cookie-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cookie-content a {
    color: #FCF6BA;
    text-decoration: underline;
    transition: color 0.3s;
}

.cookie-content a:hover {
    color: #BF953F;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-luxury-filled {
    background: var(--gold-gradient);
    color: #050505;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-luxury-filled:hover {
    transform: translateY(-2px);
}

.btn-luxury-outline {
    background: transparent;
    color: #BF953F;
    border: 1px solid #BF953F;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-luxury-outline:hover {
    background: rgba(191, 149, 63, 0.1);
    color: #FCF6BA;
}

/* Cookie Settings Panel */
.cookie-settings-panel {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden {
    display: none !important;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.switch-container {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    flex-shrink: 0;
}

.switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 20px;
}

.checkmark:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .checkmark {
    background-color: #BF953F;
}

input:checked + .checkmark:before {
    transform: translateX(20px);
}

.checkmark.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.option-desc {
    font-size: 0.85rem;
    color: #aaa;
    margin: 0;
}

.option-label {
    margin-right: 12px;
    font-weight: bold;
    color: #e0e0e0;
}

/* Accessibility Modal */
.accessibility-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    direction: rtl;
}

.accessibility-content {
    background: #111;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(191, 149, 63, 0.3);
    position: relative;
    box-shadow: 0 0 50px rgba(191, 149, 63, 0.1);
    color: #e0e0e0;
}

.accessibility-content h2, .accessibility-content h3 {
    color: #BF953F;
    font-family: 'Varela Round', sans-serif;
    margin-top: 1.5rem;
}

.accessibility-content ul {
    padding-right: 20px;
    line-height: 1.8;
}

.close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #BF953F;
}

.full-width {
    width: 100%;
    margin-top: 15px;
}

/* Scrollbar for Modal */
.accessibility-content::-webkit-scrollbar {
    width: 8px;
}

.accessibility-content::-webkit-scrollbar-track {
    background: #050505; 
}
 
.accessibility-content::-webkit-scrollbar-thumb {
    background: #333; 
    border-radius: 4px;
}

.accessibility-content::-webkit-scrollbar-thumb:hover {
    background: #BF953F; 
}