/**
 * Cookie Consent Banner Styles
 * Bastilities Website
 * Version: 1.0
 */

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    z-index: 9999;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.3s ease-in-out;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-consent-header {
    text-align: center;
    margin-bottom: 20px;
}

.cookie-consent-header h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 600;
}

.cookie-consent-header p {
    color: #ccc;
    margin: 0;
    font-size: 0.95rem;
}

.cookie-consent-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.cookie-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.cookie-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.cookie-option h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.cookie-option p {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-option ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cookie-option li {
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.cookie-option li:before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    max-width: 100%;
}

.cookie-consent-actions .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.cookie-consent-actions .btn i {
    margin-right: 8px;
}

.cookie-consent-actions .btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.cookie-consent-actions .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

.cookie-consent-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0099cc);
    border: 2px solid var(--primary-color);
    color: white;
}

.cookie-consent-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.4);
}

.cookie-consent-links {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.cookie-consent-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.cookie-consent-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Cookie Consent Notifications */
.cookie-consent-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-width: 350px;
    animation: slideInRight 0.3s ease-out;
}

.cookie-consent-notification.success {
    border-left: 4px solid #28a745;
}

.cookie-consent-notification.error {
    border-left: 4px solid #dc3545;
}

.notification-content {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-content.success i {
    color: #28a745;
}

.notification-content.error i {
    color: #dc3545;
}

.notification-content span {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
}

.notification-content button {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.notification-content button:hover {
    color: #333;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 15px;
    }
    
    .cookie-consent-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cookie-option {
        padding: 15px;
    }
    
    .cookie-consent-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cookie-consent-actions .btn {
        width: 100%;
    }
    
    .cookie-consent-header h3 {
        font-size: 1.3rem;
    }
    
    .cookie-consent-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 12px;
    }
    
    .cookie-consent-header h3 {
        font-size: 1.2rem;
    }
    
    .cookie-consent-header p {
        font-size: 0.9rem;
    }
    
    .cookie-option h4 {
        font-size: 1rem;
    }
    
    .cookie-option p {
        font-size: 0.85rem;
    }
    
    .cookie-option li {
        font-size: 0.8rem;
    }
    
    .cookie-consent-actions .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-consent-banner {
        background: #000;
        border-top: 2px solid #fff;
    }
    
    .cookie-option {
        background: #333;
        border: 2px solid #fff;
    }
    
    .cookie-consent-actions .btn {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    .cookie-option,
    .cookie-consent-actions .btn,
    .cookie-consent-notification {
        transition: none;
    }
    
    .cookie-consent-notification {
        animation: none;
    }
} 