/* ==========================================================================
   Cookie Banner & Cookie Policy Modal Styles
   ========================================================================== */

/* Floating Cookie / Storage Banner Card */
.fh-consent-banner {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    max-width: 440px;
    width: calc(100% - 3rem);
    background: rgba(30, 27, 46, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(162, 155, 254, 0.35);
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 25px rgba(108, 92, 231, 0.2);
    padding: 1.35rem 1.5rem;
    z-index: 995;
    color: #f5f6fa;
    animation: cookieSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.fh-consent-banner.exiting {
    opacity: 0;
    transform: translateY(25px) scale(0.95);
    pointer-events: none;
}

@keyframes cookieSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fh-consent-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.fh-consent-banner-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.cookie-badge-icon {
    font-size: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(108, 92, 231, 0.28);
    border: 1px solid rgba(162, 155, 254, 0.4);
    flex-shrink: 0;
}

.fh-consent-banner-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.fh-consent-banner-close {
    background: none;
    border: none;
    color: rgba(245, 246, 250, 0.6);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
}

.fh-consent-banner-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.fh-consent-banner-text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(245, 246, 250, 0.88);
    margin-bottom: 1.15rem;
}

.fh-consent-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.55);
}

.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #a29bfe;
    border: 1px solid rgba(162, 155, 254, 0.35);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cookie-btn-secondary:hover {
    background: rgba(162, 155, 254, 0.2);
    color: #ffffff;
    border-color: rgba(162, 155, 254, 0.6);
}

/* ==========================================================================
   Cookie Policy Modal Enhancements
   ========================================================================== */

.cookie-modal-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: #f5f6fa;
}

.cookie-modal-intro {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(245, 246, 250, 0.92);
}

.cookie-modal-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cookie-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #a29bfe;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-section-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(245, 246, 250, 0.8);
    margin-bottom: 0.25rem;
}

/* Storage cards list */
.cookie-storage-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cookie-storage-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cookie-storage-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(162, 155, 254, 0.3);
}

.cookie-storage-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.cookie-storage-key {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(108, 92, 231, 0.35);
    border: 1px solid rgba(162, 155, 254, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.cookie-storage-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    background: rgba(0, 184, 148, 0.2);
    color: #55efc4;
    border: 1px solid rgba(85, 239, 196, 0.35);
}

.cookie-storage-purpose {
    font-size: 0.86rem;
    color: rgba(245, 246, 250, 0.85);
    line-height: 1.45;
}

/* What we do not use list */
.cookie-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cookie-checklist-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: rgba(245, 246, 250, 0.9);
}

.cookie-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 184, 148, 0.2);
    color: #55efc4;
    font-weight: bold;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Management & Clear Data Box */
.cookie-manage-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(162, 155, 254, 0.35);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cookie-manage-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-reset-btn {
    background: transparent;
    color: #fd79a8;
    border: 1px solid #fd79a8;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-reset-btn:hover {
    background: rgba(253, 121, 168, 0.15);
    transform: translateY(-1px);
}

.cookie-reset-alert {
    font-size: 0.82rem;
    color: #55efc4;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .fh-consent-banner {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        width: auto;
        max-width: none;
        padding: 1.15rem 1.25rem;
        border-radius: 16px;
    }

    .fh-consent-banner-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-btn-primary,
    .cookie-btn-secondary {
        width: 100%;
        text-align: center;
    }

    .cookie-manage-action-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   GDPR Modal Styles
   ========================================================================== */

.gdpr-modal-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: #f5f6fa;
}

.gdpr-modal-intro {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(245, 246, 250, 0.92);
}

.gdpr-card-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.gdpr-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.gdpr-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(162, 155, 254, 0.35);
}

.gdpr-card-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.45rem;
}

.gdpr-card-icon {
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(108, 92, 231, 0.25);
    border: 1px solid rgba(162, 155, 254, 0.3);
    flex-shrink: 0;
}

.gdpr-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.gdpr-card-desc {
    font-size: 0.88rem;
    color: rgba(245, 246, 250, 0.88);
    line-height: 1.5;
}

.gdpr-contact-card {
    background: rgba(108, 92, 231, 0.12);
    border: 1px solid rgba(162, 155, 254, 0.28);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.gdpr-contact-btn {
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #ffffff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.35);
}

.gdpr-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.55);
}

.gdpr-contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.gdpr-contact-btn-secondary {
    background: transparent;
    border: 1px solid rgba(162, 155, 254, 0.55);
    box-shadow: none;
    color: #ffffff !important;
}

.gdpr-contact-btn-secondary:hover {
    background: rgba(162, 155, 254, 0.15);
    box-shadow: none;
}

