/* Cookie Consent Modal Styles */

/* ================================
   FLOATING COOKIE SETTINGS BUTTON
   ================================ */

.cookie-settings-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cookie-settings-btn.active {
    display: flex;
}

.cookie-settings-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(228, 50, 39, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(228, 50, 39, 0.2);
}

.cookie-settings-btn i {
    font-size: 16px;
}

/* ================================
   MINIMAL COOKIE BANNER (Bottom)
   ================================ */

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13, 13, 14, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideUpBanner 0.4s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner.active {
    display: block;
}

.cookie-banner-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    z-index: 10;
}

.cookie-banner-close:hover {
    color: #ffffff;
}

.cookie-banner-content {
    padding: 25px 40px 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.cookie-banner-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
    padding-right: 40px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cookie-banner-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.cookie-banner-content a {
    color: #E43227;
    text-decoration: underline;
}

.cookie-banner-content a:hover {
    color: #ff4a3d;
}

/* Cookie Checkboxes in Banner */
.cookie-banner-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 15px 0;
    align-items: center;
}

.cookie-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.cookie-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
    cursor: pointer;
    accent-color: #E43227;
}

.cookie-checkbox input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-checkbox span {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Show Details Button */
.cookie-show-details {
    background: none;
    border: none;
    color: #E43227;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cookie-show-details:hover {
    color: #ff4a3d;
}

.cookie-show-details i {
    font-size: 12px;
}

/* Banner Action Buttons */
.cookie-banner-actions {
    display: flex;
    gap: 15px;
    padding: 20px 40px;
    background: rgba(7, 7, 8, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: flex-end;
}

.cookie-banner-btn {
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cookie-banner-btn-accept {
    background: linear-gradient(135deg, #E43227 0%, #944221 100%);
    color: #ffffff;
    border: 1px solid transparent;
}

.cookie-banner-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(228, 50, 39, 0.4);
}

.cookie-banner-btn-decline {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cookie-banner-btn-decline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Banner Animation */
@keyframes slideUpBanner {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ================================
   DETAILED MODAL (Opened from Banner)
   ================================ */

/* Overlay */
.cookie-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

.cookie-overlay.active {
    display: block;
}

/* Modal Container */
.cookie-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(13, 13, 14, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.cookie-modal.active {
    display: block;
}

/* Close Button */
.cookie-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    z-index: 10;
}

.cookie-close:hover {
    color: #ffffff;
}

/* Modal Content */
.cookie-content {
    padding: 40px;
    overflow-y: auto;
    max-height: calc(85vh - 100px);
}

.cookie-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
    padding-right: 40px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cookie-intro {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 25px;
}

.cookie-intro a {
    color: #E43227;
    text-decoration: underline;
}

.cookie-intro a:hover {
    color: #ff4a3d;
}

/* Tabs */
.cookie-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
    gap: 10px;
}

.cookie-tab {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.cookie-tab:hover {
    color: #E43227;
}

.cookie-tab.active {
    color: #ffffff;
    border-bottom-color: #E43227;
}

/* Tab Panels */
.cookie-tab-panel {
    display: none;
}

.cookie-tab-panel.active {
    display: block;
}

/* Cookie Options */
.cookie-options {
    margin: 20px 0;
}

.cookie-option {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-option:last-child {
    border-bottom: none;
}

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

.cookie-option-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

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

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, #E43227 0%, #944221 100%);
}

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

.cookie-toggle input:disabled + .toggle-slider {
    background-color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.cookie-option-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 8px 0 0 0;
}

/* Show Details Link */
.show-details-btn {
    background: none;
    border: none;
    color: #E43227;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.show-details-btn:hover {
    color: #ff4a3d;
}

.show-details-btn i {
    transition: transform 0.3s ease;
}

.show-details-btn.active i {
    transform: rotate(180deg);
}

/* Cookie Details */
.cookie-details {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-details.active {
    display: block;
}

/* About Cookies Content */
.about-cookies-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 15px;
}

.about-cookies-content a {
    color: #E43227;
    text-decoration: underline;
}

.about-cookies-content a:hover {
    color: #ff4a3d;
}

/* Action Buttons */
.cookie-actions {
    display: flex;
    gap: 15px;
    padding: 20px 40px;
    background: rgba(7, 7, 8, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: flex-end;
}

.cookie-btn {
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #E43227 0%, #944221 100%);
    color: #ffffff;
}

.cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(228, 50, 39, 0.4);
}

.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.cookie-btn-tertiary {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-btn-tertiary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Footer Attribution */
.cookie-footer {
    text-align: center;
    padding: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-footer a {
    color: #E43227;
    text-decoration: none;
}

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-settings-btn {
        bottom: 15px;
        left: 15px;
        padding: 10px 16px;
        font-size: 12px;
    }

    .cookie-settings-btn i {
        font-size: 14px;
    }

    .cookie-banner-content {
        padding: 20px 20px 15px 20px;
    }

    .cookie-banner-content h3 {
        font-size: 18px;
        padding-right: 35px;
    }

    .cookie-banner-content p {
        font-size: 13px;
    }

    .cookie-banner-options {
        gap: 15px;
    }

    .cookie-checkbox span {
        font-size: 12px;
    }

    .cookie-banner-actions {
        flex-direction: column;
        padding: 15px 20px;
    }

    .cookie-banner-btn {
        width: 100%;
        padding: 12px 20px;
    }

    .cookie-modal {
        width: 95%;
        max-height: 90vh;
    }

    .cookie-content {
        padding: 25px 20px;
        max-height: calc(90vh - 80px);
    }

    .cookie-content h2 {
        font-size: 22px;
        padding-right: 30px;
    }

    .cookie-intro {
        font-size: 14px;
    }

    .cookie-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cookie-tab {
        padding: 10px 16px;
        font-size: 14px;
        white-space: nowrap;
    }

    .cookie-actions {
        flex-direction: column;
        padding: 15px 20px;
    }

    .cookie-btn {
        width: 100%;
        padding: 12px 20px;
    }

    .cookie-option-header {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .cookie-content h2 {
        font-size: 20px;
    }

    .cookie-tab {
        font-size: 13px;
        padding: 8px 12px;
    }

    .cookie-btn {
        font-size: 14px;
    }
}
