/* 
   ==========================================================================
   3WCOOKIES - PREMIUM LOI 25 CONSENT BANNER & SETTINGS (GLASSMORPHISM)
   ========================================================================== 
*/

:root {
    --cookie-bg: rgba(255, 255, 255, 0.85);
    --cookie-border: rgba(255, 255, 255, 0.4);
    --cookie-text: #0a0a0a;
    --cookie-text-muted: #4b5563;
    --cookie-accent: #fb3838; /* R.G.S. Red */
    --cookie-accent-hover: #e02424;
    --cookie-btn-sec-bg: rgba(10, 10, 10, 0.05);
    --cookie-btn-sec-border: rgba(10, 10, 10, 0.1);
    --cookie-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1), 0 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* Base Banner Layout */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    z-index: 9999;
    background: var(--cookie-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--cookie-border);
    border-radius: 16px;
    box-shadow: var(--cookie-shadow);
    padding: 24px;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .cookie-banner {
        right: auto;
        left: 32px;
        bottom: 32px;
        max-width: 420px;
    }
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

/* Typography & Content */
.cookie-banner h4 {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cookie-text);
    font-family: 'Inter', sans-serif;
}

.cookie-banner p {
    margin: 0 0 20px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--cookie-text-muted);
    font-family: 'Inter', sans-serif;
}

.cookie-banner p a {
    color: var(--cookie-text);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner p a:hover {
    color: var(--cookie-accent);
}

/* Actions Buttons */
.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: var(--cookie-accent);
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background-color: var(--cookie-accent-hover);
    transform: translateY(-1px);
}

.cookie-btn-refuse {
    background-color: var(--cookie-btn-sec-bg);
    border-color: var(--cookie-btn-sec-border);
    color: var(--cookie-text);
}

.cookie-btn-refuse:hover {
    background-color: rgba(10, 10, 10, 0.1);
}

.cookie-btn-settings {
    background-color: transparent;
    color: var(--cookie-text);
    border-color: var(--cookie-btn-sec-border);
}

.cookie-btn-settings:hover {
    background-color: var(--cookie-btn-sec-bg);
}

/* Settings Modal/Panel */
.cookie-settings {
    display: none;
    margin-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 16px;
}

.cookie-settings.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.cookie-option-info {
    flex: 1;
    padding-right: 16px;
}

.cookie-option-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cookie-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cookie-option-desc {
    font-size: 0.75rem;
    color: var(--cookie-text-muted);
}

/* Switch Toggle Styling */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
    flex-shrink: 0;
}

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

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 10, 10, 0.1);
    transition: .3s;
    border-radius: 20px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

input:checked + .cookie-slider {
    background-color: var(--cookie-accent);
}

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

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

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

input:disabled + .cookie-slider:before {
    background-color: rgba(10, 10, 10, 0.2);
}

/* Floating Trigger Button */
.cookie-trigger {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9998;
    width: 44px;
    height: 44px;
    background: var(--cookie-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--cookie-border);
    border-radius: 50%;
    box-shadow: var(--cookie-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
    transform: scale(0);
    color: var(--cookie-text);
}

.cookie-trigger.show {
    opacity: 1;
    transform: scale(1);
}

.cookie-trigger:hover {
    transform: scale(1.1);
    color: var(--cookie-accent);
}

/* Toast Feedback Notification */
.cookie-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 150%);
    z-index: 10000;
    background: #0a0a0a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.cookie-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
