/* ===================================
   COOKIE CONSENT BANNER
   Dark Tech Theme - HardLogic
   =================================== */

/* Banner Container */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 0 20px 20px 20px;
    pointer-events: none;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px 16px 0 0;
    padding: 24px 32px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Cookie Icon */
.cookie-icon {
    font-size: 48px;
    flex-shrink: 0;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Text Content */
.cookie-text {
    flex: 1;
    min-width: 0;
}

.cookie-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #10B981;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-description {
    font-size: 14px;
    line-height: 1.6;
    color: #E0E0E0;
    margin-bottom: 4px;
}

.cookie-description a {
    color: #A855F7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cookie-description a:hover {
    color: #7C3AED;
    text-decoration: underline;
}

/* Buttons Container */
.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Button Base Styles */
.cookie-btn {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.cookie-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cookie-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cookie-btn:active {
    transform: scale(0.98);
}

/* Accept Button */
.cookie-btn-accept {
    background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
}

/* Reject Button */
.cookie-btn-reject {
    background: transparent;
    color: #E0E0E0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Customize Button */
.cookie-btn-customize {
    background: rgba(168, 85, 247, 0.1);
    color: #A855F7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.cookie-btn-customize:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
}

/* ===================================
   CUSTOMIZATION MODAL
   =================================== */

.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-modal {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Modal Header */
.cookie-modal-header {
    margin-bottom: 24px;
}

.cookie-modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.cookie-modal-subtitle {
    font-size: 14px;
    color: #9CA3AF;
    line-height: 1.6;
}

/* Cookie Categories */
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.cookie-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(168, 85, 247, 0.3);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cookie-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-category-icon {
    font-size: 20px;
}

.cookie-category-description {
    font-size: 13px;
    color: #9CA3AF;
    line-height: 1.5;
    margin-left: 28px;
}

/* Custom Checkbox */
.cookie-toggle {
    position: relative;
    width: 48px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cookie-toggle.active {
    background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%);
}

.cookie-toggle.active::after {
    transform: translateX(24px);
}

.cookie-category-required {
    font-size: 11px;
    color: #10B981;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal Footer */
.cookie-modal-footer {
    display: flex;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-modal-footer .cookie-btn {
    flex: 1;
}

/* Hidden State */
.hidden {
    display: none !important;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    .cookie-icon {
        font-size: 36px;
    }

    .cookie-title {
        font-size: 18px;
    }

    .cookie-description {
        font-size: 13px;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        padding: 14px 20px;
    }

    .cookie-modal {
        padding: 24px;
        max-height: 90vh;
    }

    .cookie-modal-title {
        font-size: 20px;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 0;
    }

    .cookie-consent-content {
        border-radius: 0;
        padding: 16px;
    }

    .cookie-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* Scrollbar Styling for Modal */
.cookie-modal::-webkit-scrollbar {
    width: 8px;
}

.cookie-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.cookie-modal::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.5);
    border-radius: 4px;
}

.cookie-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.7);
}
