/* =====================================================
   COOKIE CONSENT BANNER
   ===================================================== */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    padding: 1.5rem 2rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: #2C3E50;
}

.cookie-consent-text p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

.cookie-consent-text a {
    color: #D4AF37;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #2C3E50;
    color: white;
}

.cookie-btn-accept:hover {
    background: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.cookie-btn-settings {
    background: transparent;
    color: #2C3E50;
    border: 2px solid #2C3E50;
}

.cookie-btn-settings:hover {
    background: #f8f9fa;
}

.cookie-btn-decline {
    background: transparent;
    color: #6c757d;
    padding: 0.75rem 1rem;
}

.cookie-btn-decline:hover {
    color: #2C3E50;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-content {
    background: white;
    max-width: 600px;
    width: 100%;
    border-radius: 16px;
    padding: 2rem;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cookie-settings-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #2C3E50;
}

.cookie-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.cookie-close-btn:hover {
    color: #2C3E50;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-category-info {
    flex: 1;
    min-width: 0;
}

.cookie-category h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #2C3E50;
}

.cookie-category p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 28px;
    flex-shrink: 0;
    margin-left: auto;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #D4AF37;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(32px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-settings-actions,
.cookie-settings-footer {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

.cookie-policy-link {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.cookie-policy-link p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.cookie-policy-link a {
    color: #D4AF37;
    text-decoration: none;
}

.cookie-policy-link a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-settings-modal {
        padding: 1rem;
    }
    
    .cookie-settings-content {
        padding: 1.5rem;
    }
}
