/* Think Different IL - Cookie Consent Popup Styles */

:root {
    --td-gold: #D4AF37;
    --td-gold-dark: #B8941F;
    --td-gold-light: #E5C565;
    --td-gray: #888888;
    --td-gray-dark: #2A2A2A;
    --td-gray-light: #D3D3D3;
    --td-bg-dark: #1A1A1A;
    --td-bg-overlay: rgba(26, 26, 26, 0.98);
}

/* Cookie Popup Overlay */
.td-cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 0;
}

.td-cookie-overlay.td-active {
    display: flex;
    animation: tdFadeIn 0.4s ease forwards;
}

@keyframes tdFadeIn {
    to {
        opacity: 1;
    }
}

/* Cookie Popup Container */
.td-cookie-popup {
    background: var(--td-bg-overlay);
    border-top: 3px solid var(--td-gold);
    width: 100%;
    max-width: 100%;
    padding: 30px 40px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(100%);
    animation: tdSlideUp 0.5s ease 0.2s forwards;
    font-family: 'Assistant', 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
}

@keyframes tdSlideUp {
    to {
        transform: translateY(0);
    }
}

/* Decorative accent */
.td-cookie-popup::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.05) 100%);
    pointer-events: none;
}

.td-cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.td-cookie-text {
    flex: 1;
    min-width: 300px;
}

.td-cookie-text h3 {
    color: var(--td-gold);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.td-cookie-text p {
    color: var(--td-gray-light);
    font-size: 15px;
    line-height: 1.7;
    font-weight: 300;
    margin: 0;
}

.td-cookie-text a {
    color: var(--td-gold-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.td-cookie-text a:hover {
    border-bottom-color: var(--td-gold-light);
}

/* Buttons */
.td-cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.td-cookie-btn {
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Assistant', 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
    white-space: nowrap;
}

.td-cookie-btn-accept {
    background: var(--td-gold);
    color: var(--td-bg-dark);
}

.td-cookie-btn-accept:hover {
    background: var(--td-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.td-cookie-btn-decline {
    background: transparent;
    color: var(--td-gray-light);
    border: 2px solid var(--td-gray);
}

.td-cookie-btn-decline:hover {
    background: var(--td-gray);
    color: white;
    border-color: var(--td-gray);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .td-cookie-popup {
        padding: 25px 20px;
    }

    .td-cookie-content {
        flex-direction: column;
        gap: 25px;
    }

    .td-cookie-text {
        min-width: 100%;
    }

    .td-cookie-text h3 {
        font-size: 18px;
    }

    .td-cookie-text p {
        font-size: 14px;
    }

    .td-cookie-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .td-cookie-btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .td-cookie-buttons {
        flex-direction: column;
    }

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

/* Close animation */
.td-cookie-overlay.td-closing {
    animation: tdFadeOut 0.3s ease forwards;
}

.td-cookie-overlay.td-closing .td-cookie-popup {
    animation: tdSlideDown 0.3s ease forwards;
}

@keyframes tdFadeOut {
    to {
        opacity: 0;
    }
}

@keyframes tdSlideDown {
    to {
        transform: translateY(100%);
    }
}

/* RTL Support */
html[dir="rtl"] .td-cookie-popup::before {
    right: auto;
    left: 0;
    background: linear-gradient(225deg, transparent 0%, rgba(212, 175, 55, 0.05) 100%);
}
