/**
 * Cookie Consent Styles
 */

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark-bg-color);
    z-index: 9999;
    padding: 20px;
    box-shadow: 
        0 -8px 20px rgba(0, 0, 0, 0.35),
        0 -4px 10px rgba(255, 255, 255, 0.03);
    font-family: 'Exo 2', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUpWithOpacity 0.6s ease-out;
    opacity: 0.95;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.cookie-consent-banner:hover {
    opacity: 1;
}

@keyframes slideUpWithOpacity {
    from { 
        transform: translateY(100%); 
        opacity: 0;
    }
    to { 
        transform: translateY(0); 
        opacity: 0.95;
    }
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-consent-content {
    flex: 1;
    min-width: 280px;
}

.cookie-consent-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 600;
}

.cookie-consent-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
}

.cookie-consent-content p + p {
    margin-top: 8px;
}

.cookie-privacy-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.cookie-privacy-link:hover {
    color: #56ccf2;
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-consent-buttons button {
    padding: 10px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: auto;
}

.cookie-consent-buttons .cookie-accept-all {
    box-shadow: 0 5px 15px rgba(0, 149, 235, 0.25);
}

.cookie-consent-buttons .cookie-accept-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 149, 235, 0.35);
}

/* Cookie Settings Panel */
.cookie-settings-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Exo 2', sans-serif;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    visibility: hidden;
}

.cookie-settings-panel.visible {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-container {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background-color: var(--dark-bg-color);
    border-radius: 15px;
    box-shadow: 
        12px 12px 24px rgba(0, 0, 0, 0.5),
        -8px -8px 20px rgba(255, 255, 255, 0.03),
        inset 1px 1px 2px rgba(255, 255, 255, 0.05);
    padding: 30px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.cookie-settings-panel.visible .cookie-settings-container {
    transform: scale(1);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cookie-settings-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-color);
}

.cookie-close-settings {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-close-settings:hover {
    opacity: 1;
}

.cookie-settings-body {
    margin-bottom: 20px;
}

.cookie-setting-group {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: 
        inset 3px 3px 6px rgba(0, 0, 0, 0.2), 
        inset -2px -2px 5px rgba(255, 255, 255, 0.03),
        1px 1px 2px rgba(255, 255, 255, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-setting-group:hover {
    transform: translateY(-2px);
    box-shadow: 
        inset 3px 3px 6px rgba(0, 0, 0, 0.2), 
        inset -2px -2px 5px rgba(255, 255, 255, 0.03),
        2px 4px 8px rgba(0, 0, 0, 0.3);
}

.cookie-setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-setting-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.cookie-setting-group p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-light);
}

.cookie-settings-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Toggle Switch with enhanced neumorphism */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.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: rgba(30, 30, 40, 0.9);
    transition: .4s;
    border-radius: 34px;
    box-shadow: 
        inset 2px 2px 4px rgba(0, 0, 0, 0.5),
        inset -1px -1px 3px rgba(255, 255, 255, 0.05);
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    transition: .4s;
    border-radius: 50%;
    box-shadow: 
        2px 2px 5px rgba(0, 0, 0, 0.3),
        -1px -1px 3px rgba(255, 255, 255, 0.5);
}

input:checked + .cookie-toggle-slider {
    background: linear-gradient(145deg, var(--primary-color), rgba(0, 149, 235, 0.8));
    box-shadow: 
        inset 2px 2px 4px rgba(0, 0, 0, 0.3),
        inset -1px -1px 3px rgba(255, 255, 255, 0.1);
}

input:focus + .cookie-toggle-slider {
    box-shadow: 0 0 1px var(--primary-color);
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-buttons {
        justify-content: flex-start;
    }
    
    .cookie-settings-container {
        width: 95%;
        padding: 20px;
    }
    
    .cookie-setting-group {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 15px;
    }
    
    .cookie-consent-content h3 {
        font-size: 1.1rem;
    }
    
    .cookie-consent-content p {
        font-size: 0.85rem;
    }
} 