/* EU-DSGVO Cookie Banner Styling */

#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.98);
    color: #EAEAEA;
    padding: 25px 20px;
    box-shadow: 0 -4px 20px rgba(212, 175, 55, 0.3);
    z-index: 10000;
    border-top: 3px solid #D4AF37;
    display: none;
    font-family: 'Georgia', 'Times New Roman', serif;
}

#cookieBanner.show {
    display: block;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content {
    margin-bottom: 20px;
}

.cookie-content h3 {
    color: #D4AF37;
    margin: 0 0 15px 0;
    font-size: 1.5em;
    font-weight: bold;
}

.cookie-content p {
    margin: 0 0 15px 0;
    line-height: 1.6;
    font-size: 0.95em;
}

.cookie-preferences {
    display: none;
    margin: 20px 0;
    padding: 20px;
    background: rgba(18, 18, 18, 0.8);
    border-radius: 8px;
    border: 1px solid #D4AF37;
}

.cookie-preferences.show {
    display: block;
}

.cookie-option {
    margin: 15px 0;
    padding: 15px;
    background: rgba(30, 30, 30, 0.9);
    border-radius: 5px;
    border-left: 3px solid #D4AF37;
}

.cookie-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    color: #D4AF37;
    font-size: 1.1em;
}

.cookie-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #D4AF37;
}

.cookie-option p {
    margin: 10px 0 0 30px;
    font-size: 0.9em;
    color: #EAEAEA;
    font-style: italic;
}

.cookie-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.cookie-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'Georgia', 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cookie-btn-primary {
    background: #D4AF37;
    color: #121212;
}

.cookie-btn-primary:hover {
    background: #B8860B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.cookie-btn-secondary {
    background: transparent;
    color: #D4AF37;
    border: 2px solid #D4AF37;
}

.cookie-btn-secondary:hover {
    background: #D4AF37;
    color: #121212;
    transform: translateY(-2px);
}

.cookie-btn-reject {
    background: transparent;
    color: #999;
    border: 2px solid #555;
}

.cookie-btn-reject:hover {
    background: #555;
    color: #fff;
    border-color: #777;
}

.cookie-link {
    color: #D4AF37;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: #B8860B;
}

/* RTL Support for Arabic and Persian */
body.rtl #cookieBanner {
    direction: rtl;
    text-align: right;
}

body.rtl .cookie-option label {
    flex-direction: row-reverse;
}

body.rtl .cookie-option input[type="checkbox"] {
    margin-right: 0;
    margin-left: 10px;
}

body.rtl .cookie-option p {
    margin: 10px 30px 0 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    #cookieBanner {
        padding: 20px 15px;
    }

    .cookie-content h3 {
        font-size: 1.2em;
    }

    .cookie-content p {
        font-size: 0.85em;
    }

    .cookie-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .cookie-btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* Privacy Policy Badge - Always Visible */
.privacy-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(30, 30, 30, 0.95);
    padding: 10px 15px;
    border-radius: 5px;
    border: 2px solid #D4AF37;
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85em;
}

.privacy-badge:hover {
    background: #D4AF37;
    color: #121212;
    transform: scale(1.05);
}

.privacy-badge a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
}

body.rtl .privacy-badge {
    left: auto;
    right: 20px;
}
