/* ==========================================================================
   SWAM 2026 Cookie Settings Page Styling
   ========================================================================== */

.cookie-settings-page-wrapper {
    background-color: var(--swam-navy-950, #040d21);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 120px 0 80px;
    font-family: var(--font-plus-jakarta-sans, 'Plus Jakarta Sans', sans-serif);
    color: #ffffff;
}

.cookie-settings-container {
    max-width: 960px;
    position: relative;
    z-index: 2;
}

/* Hero Header */
.cookie-hero-header {
    text-align: center;
    margin-bottom: 40px;
}

.cookie-hero-title {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    font-family: var(--font-plus-jakarta-sans, 'Plus Jakarta Sans', sans-serif);
    background: linear-gradient(180deg, #ffffff 30%, #d8e2f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cookie-hero-subtitle {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    max-width: 720px;
    margin: 0 auto;
}

/* Portal Main Card */
.cookie-portal-card {
    background: linear-gradient(160deg, rgba(8, 22, 54, 0.96) 0%, rgba(5, 14, 36, 0.98) 100%);
    border: 1px solid rgba(201, 160, 74, 0.28);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(201, 160, 74, 0.06);
    border-radius: 24px;
    padding: 36px 40px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

/* Status & Quick Action Bar */
.cookie-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 20px;
}

.cookie-status-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-status-label {
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.cookie-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 160, 74, 0.15);
    border: 1px solid rgba(201, 160, 74, 0.35);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #e8c878;
}

.cookie-status-pill .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 8px #2ecc71;
}

.cookie-quick-actions {
    display: flex;
    gap: 10px;
}

.cookie-btn-quick {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cookie-btn-quick:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-quick-accept {
    background: rgba(201, 160, 74, 0.15);
    border-color: rgba(201, 160, 74, 0.4);
    color: #e8c878;
}

.btn-quick-accept:hover {
    background: rgba(201, 160, 74, 0.25);
    border-color: #e8c878;
    color: #ffffff;
}

/* Categories Section */
.cookie-categories-header {
    margin-bottom: 24px;
}

.cookie-categories-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.cookie-categories-header p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.cookie-categories-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cookie-category-box {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.25s ease;
}

.cookie-category-box:hover {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(201, 160, 74, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.cookie-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.cookie-cat-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cookie-cat-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.cookie-cat-icon-badge.necessary {
    background: rgba(46, 204, 113, 0.12);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.25);
}

.cookie-cat-icon-badge.analytics {
    background: rgba(52, 152, 219, 0.12);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.25);
}

.cookie-cat-icon-badge.functional {
    background: rgba(155, 89, 182, 0.12);
    color: #af7ac5;
    border: 1px solid rgba(155, 89, 182, 0.25);
}

.cookie-cat-icon-badge.marketing {
    background: rgba(243, 156, 18, 0.12);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.25);
}

.cookie-cat-brand h4 {
    margin: 0;
    font-size: 16.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.cookie-cat-type {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-top: 2px;
}

.cookie-cat-control {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cookie-badge-always-active {
    font-size: 11px;
    font-weight: 700;
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cookie-badge-optional {
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 3px 10px;
    border-radius: 6px;
}

.cookie-cat-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 14px 0;
}

.cookie-tag-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-tag {
    font-size: 11.5px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.65);
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cookie-tag i {
    color: var(--swam-gold-500, #c9a04a);
    font-size: 12px;
}

/* Custom Portal Switches */
.cookie-portal-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    margin: 0;
    cursor: pointer;
}

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

.cookie-portal-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-portal-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.cookie-portal-switch input:checked+.cookie-portal-slider {
    background: linear-gradient(135deg, #e8c878 0%, #c9a04a 100%);
    border-color: rgba(201, 160, 74, 0.6);
    box-shadow: 0 0 14px rgba(201, 160, 74, 0.4);
}

.cookie-portal-switch input:checked+.cookie-portal-slider:before {
    transform: translateX(24px);
    background: #040d21;
}

.cookie-portal-slider.disabled {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-portal-slider.disabled:before {
    background: rgba(255, 255, 255, 0.5);
}

/* Footer & Actions */
.cookie-portal-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-portal-legal {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(201, 160, 74, 0.05);
    border: 1px solid rgba(201, 160, 74, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
}

.cookie-portal-legal i {
    color: #e8c878;
    font-size: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}

.cookie-portal-legal p {
    margin: 0;
    line-height: 1.5;
}

.cookie-gold-link {
    color: #e8c878;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-gold-link:hover {
    color: #ffffff;
}

.cookie-portal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.cookie-page-btn {
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    padding: 13px 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    border: 1px solid transparent;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-portal-accept {
    background: linear-gradient(135deg, #e8c878 0%, #c9a04a 50%, #9e721d 100%);
    color: #040d21;
    box-shadow: 0 4px 18px rgba(201, 160, 74, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    flex: 1;
    min-width: 200px;
}

.btn-portal-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 160, 74, 0.48);
    background: linear-gradient(135deg, #fff0ba 0%, #e8c878 60%, #c9a04a 100%);
}

.btn-portal-save {
    background: #ffffff;
    color: #040d21;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    flex: 1;
    min-width: 190px;
}

.btn-portal-save:hover {
    transform: translateY(-2px);
    background: #f1f5f9;
    box-shadow: 0 8px 22px rgba(255, 255, 255, 0.2);
}

.btn-portal-reject {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.btn-portal-reject:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

/* Custom Toast */
#cookie-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: linear-gradient(135deg, rgba(9, 24, 58, 0.98) 0%, rgba(4, 12, 32, 0.99) 100%);
    border: 1px solid rgba(201, 160, 74, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(201, 160, 74, 0.2);
    border-radius: 14px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 99999999;
    color: #ffffff;
    min-width: 320px;
    max-width: 90vw;
    backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#cookie-toast.cookie-toast-hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(50px);
    pointer-events: none;
}

.cookie-toast-icon {
    font-size: 26px;
    color: #2ecc71;
    flex-shrink: 0;
}

.cookie-toast-content h5 {
    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.cookie-toast-content p {
    margin: 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.75);
}

/* Responsive Layout */
@media (max-width: 767px) {
    .cookie-settings-page-wrapper {
        padding: 90px 0 60px;
    }

    .cookie-portal-card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .cookie-hero-title {
        font-size: 28px;
    }

    .cookie-status-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-quick-actions {
        justify-content: stretch;
    }

    .cookie-btn-quick {
        flex: 1;
        justify-content: center;
    }

    .cookie-cat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cookie-cat-control {
        width: 100%;
        justify-content: space-between;
    }

    .cookie-portal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-page-btn {
        width: 100%;
    }
}