/**
 * GDPR Cookie Consent Styles
 *
 * withandandiswithand andandand andfor:
 * - "Accept All" is isis, , prominent
 * - "Settings" is text link
 * - Banner is sticky and is ofinandfor in isof
 * - Smooth animations
 */

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
 background: rgba(255, 255, 255, 0.65); /* 65% opacity - */
 backdrop-filter: blur(20px); /* blur */
    -webkit-backdrop-filter: blur(20px); /* Safari support */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 24px 20px;
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
 border-radius: 24px 24px 0 0; /* only mobile */
 overflow: hidden; /* Important ! */
}

/* Desktop - center of isof, - and prominent */
@media (min-width: 769px) {
 /* backdrop for desktop */
    .cookie-consent-banner::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.55);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        z-index: -1;
        animation: fadeIn 0.4s ease-out;
    }

    .cookie-consent-banner {
        bottom: auto;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        max-width: 650px;
        width: 94%;
        padding: 42px 50px;
        border-radius: 31px;
        animation: fadeInScale 0.4s ease-out;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
        background: rgba(255, 255, 255, 0.58);
        border: 2px solid rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }

    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cookie-consent-text {
        max-width: 550px;
        margin: 0 auto;
    }

    .cookie-consent-actions {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Desktop fade-in scale animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
 background: transparent; /* background if */
    position: relative;
    z-index: 1;
}

.cookie-consent-text h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.cookie-consent-text p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: #666;
}

/* Desktop - - text */
@media (min-width: 769px) {
    .cookie-consent-text h3 {
        font-size: 28px;
        margin: 0 0 15px 0;
        font-weight: 700;
        color: #1a1a1a;
        letter-spacing: -0.5px;
    }

    .cookie-consent-text p {
        font-size: 16px;
        line-height: 1.8;
        color: #555;
        font-weight: 400;
    }

    .cookie-consent-text a {
        color: #28a745;
        font-weight: 600;
        text-decoration: none;
        border-bottom: 1px solid #28a745;
        transition: all 0.2s;
    }

    .cookie-consent-text a:hover {
        color: #218838;
        border-bottom-color: #218838;
    }
}

.cookie-consent-text a {
    color: #007bff;
    text-decoration: underline;
}

/* Promo message - of */
.cookie-promo-message {
    display: none !important;
}

/* Desktop - promo banner with 5% */
@media (min-width: 769px) {
    .cookie-promo-message {
        display: none !important;
    }
}

/* Pulse animation for promo */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Buttons */
.cookie-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Accept All Button - PROMINENT */
.cookie-btn-accept {
    background: #28a745;
    color: #fff;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.cookie-btn-accept:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

/* Desktop - -isand buttonand */
@media (min-width: 769px) {
    .cookie-btn {
        padding: 16px 40px;
        font-size: 18px;
        font-weight: 700;
        border-radius: 8px;
        letter-spacing: 0.2px;
    }

    .cookie-btn-accept {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        box-shadow: 0 4px 10px rgba(40, 167, 69, 0.35);
    }

    .cookie-btn-accept:hover {
        background: linear-gradient(135deg, #218838 0%, #1ea87a 100%);
        transform: translateY(-1px);
        box-shadow: 0 5px 14px rgba(40, 167, 69, 0.45);
    }

    .cookie-btn-settings {
        font-size: 16px;
        padding: 16px 32px;
        background: rgba(0, 0, 0, 0.04);
        color: #555;
        font-weight: 600;
        border-radius: 8px;
    }

    .cookie-btn-settings:hover {
        background: rgba(0, 0, 0, 0.08);
        color: #333;
    }
}

/* Settings Button - LESS PROMINENT */
.cookie-btn-settings {
    background: transparent;
    color: #666;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 400;
    text-decoration: underline;
}

.cookie-btn-settings:hover {
    color: #333;
    background: #f5f5f5;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-btn-settings {
 order: 2; /* Settings button after Accept */
    }
}

/* ========================================
   COOKIE SETTINGS MODAL
   ======================================== */

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

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

.cookie-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-intro {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Cookie Categories */
.cookie-category {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.cookie-category:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.cookie-category-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
}

.cookie-category-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.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: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #28a745;
}

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

/* Disabled toggle (necessary cookies) */
.cookie-toggle-disabled {
    background-color: #e0e0e0 !important;
    cursor: not-allowed !important;
}

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

/* Modal Footer */
.cookie-modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
}

.cookie-btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.cookie-btn-secondary:hover {
    background: #e0e0e0;
}

.cookie-modal-footer .cookie-btn {
    flex: 1;
}

/* Mobile modal adjustments */
@media (max-width: 480px) {
    .cookie-modal-content {
        max-height: 95vh;
    }

    .cookie-modal-header {
        padding: 20px 20px 12px;
    }

    .cookie-modal-header h2 {
        font-size: 20px;
    }

    .cookie-modal-body {
        padding: 20px;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-category-header {
        gap: 12px;
    }

    .cookie-category-info h4 {
        font-size: 15px;
    }

    .cookie-category-info p {
        font-size: 12px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.cookie-hidden {
    display: none !important;
}

/* Smooth scrolling when modal is open */
body.cookie-modal-open {
    overflow: hidden;
}
