/* Cookie Banner Styles - Corrected and Improved */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top: 3px solid #FF8C00;
    padding: 20px 25px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-banner-header i {
    font-size: 32px;
    color: #FF8C00;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cookie-banner-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.cookie-banner-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #d0d0d0;
    margin: 5px 0 0 0;
}

.cookie-banner-text a {
    color: #FF8C00;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    border-bottom: 1px solid transparent;
}

.cookie-banner-text a:hover {
    color: #ffaa33;
    border-bottom-color: #ffaa33;
}

.cookie-banner-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cookie-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cookie-btn:active {
    transform: translateY(-1px);
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #FF8C00 0%, #e67e00 100%);
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #ff9f1a 0%, #FF8C00 100%);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5);
}

.cookie-btn-accept-all {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    color: #ffffff;
}

.cookie-btn-accept-all:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5);
}

.cookie-btn-customize {
    background: transparent;
    color: #ffffff;
    border: 2px solid #6c757d;
}

.cookie-btn-customize:hover {
    border-color: #FF8C00;
    color: #FF8C00;
    background: rgba(255, 140, 0, 0.1);
}

.cookie-btn-reject {
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.cookie-btn-reject:hover {
    background: #e74c3c;
    color: #ffffff;
}

.cookie-banner-links {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
}

.cookie-banner-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cookie-banner-links a:hover {
    color: #FF8C00;
}

.cookie-banner-links i {
    font-size: 12px;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.cookie-settings-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-settings-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 550px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-settings-header {
    background: linear-gradient(135deg, #FF8C00 0%, #e67e00 100%);
    color: #ffffff;
    padding: 22px 28px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1;
}

.cookie-settings-header h3 {
    margin: 0;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.cookie-settings-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.cookie-settings-body {
    padding: 28px;
}

.cookie-settings-intro {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.cookie-option {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}

.cookie-option:hover {
    border-color: #FF8C00;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.1);
}

.cookie-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cookie-option-title {
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.cookie-option-title i {
    color: #FF8C00;
    font-size: 1.1rem;
}

.cookie-option-description {
    font-size: 0.875rem;
    color: #7f8c8d;
    margin: 0;
    padding-left: 32px;
    line-height: 1.5;
}

/* Toggle Switch - Improved */
.cookie-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.4s;
    border-radius: 28px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-slider {
    background: linear-gradient(135deg, #FF8C00 0%, #e67e00 100%);
}

.cookie-toggle input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:focus + .cookie-slider {
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.3);
}

.cookie-toggle input:disabled + .cookie-slider {
    background-color: #e2e8f0;
    cursor: not-allowed;
}

.cookie-toggle input:disabled + .cookie-slider:before {
    background-color: #cbd5e0;
}

.cookie-settings-footer {
    padding: 20px 28px;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e9ecef;
}

.cookie-btn-save {
    background: linear-gradient(135deg, #FF8C00 0%, #e67e00 100%);
    color: #ffffff;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.cookie-btn-save:hover {
    background: linear-gradient(135deg, #ff9f1a 0%, #FF8C00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

.cookie-btn-cancel {
    background: #6c757d;
    color: #ffffff;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Mobile Responsive - Enhanced */
@media (max-width: 900px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: left;
    }
    
    .cookie-banner-left {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-banner-right {
        align-items: stretch;
        width: 100%;
    }
    
    .cookie-banner-actions {
        justify-content: stretch;
    }
    
    .cookie-banner-actions .cookie-btn {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 18px;
    }

    .cookie-banner-header {
        margin-bottom: 8px;
    }

    .cookie-banner-header i {
        font-size: 26px;
    }

    .cookie-banner-header h3 {
        font-size: 1.15rem;
    }

    .cookie-banner-text {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        min-width: unset;
        padding: 14px 20px;
    }

    .cookie-banner-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .cookie-settings-content {
        max-height: 90vh;
        margin: 10px;
    }

    .cookie-settings-footer {
        flex-direction: column;
        position: sticky;
        bottom: 0;
        background: #f8f9fa;
        padding: 16px;
    }

    .cookie-settings-footer button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }

    .cookie-banner-header i {
        font-size: 24px;
    }

    .cookie-banner-header h3 {
        font-size: 1.05rem;
    }

    .cookie-banner-text {
        font-size: 0.8rem;
    }

    .cookie-option {
        padding: 14px;
    }

    .cookie-option-title {
        font-size: 0.95rem;
    }

    .cookie-option-description {
        font-size: 0.8rem;
        padding-left: 28px;
    }

    .cookie-settings-header {
        padding: 18px 20px;
    }

    .cookie-settings-header h3 {
        font-size: 1.15rem;
    }

    .cookie-settings-body {
        padding: 20px;
    }
}
