/* ============================================
   CrowGenBot — Components Stylesheet
   Reusable UI Component Styles
   ============================================ */

/* ---------- Tooltip ---------- */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-glow);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--border-glow);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 101;
}

.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tooltip:hover::before {
    opacity: 1;
}

/* ---------- Badge ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-blurple {
    background: rgba(88, 101, 242, 0.1);
    color: var(--blurple);
    border: 1px solid rgba(88, 101, 242, 0.2);
}

.badge-cyan {
    background: rgba(88, 101, 242, 0.08);
    color: var(--blurple-light);
    border: 1px solid rgba(88, 101, 242, 0.2);
}

.badge-violet {
    background: rgba(54, 25, 253, 0.1);
    color: var(--violet);
    border: 1px solid rgba(54, 25, 253, 0.2);
}

.badge-yellow {
    background: rgba(247, 226, 45, 0.08);
    color: var(--yellow);
    border: 1px solid rgba(247, 226, 45, 0.2);
}

.badge-green {
    background: rgba(67, 181, 129, 0.1);
    color: #43B581;
    border: 1px solid rgba(67, 181, 129, 0.2);
}

/* ---------- Divider ---------- */
.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
    margin: 40px 0;
}

.divider-glow {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blurple), transparent);
    margin: 40px 0;
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.2);
}

/* ---------- Code Block ---------- */
.code-block {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: var(--bg-primary);
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    color: var(--blurple-light);
    overflow-x: auto;
    white-space: pre;
}

.code-inline {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: rgba(88, 101, 242, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--blurple-light);
    border: 1px solid rgba(88, 101, 242, 0.1);
}

/* ---------- Neon Text ---------- */
.neon-text {
    color: var(--blurple-light);
    text-shadow:
        0 0 7px rgba(88, 101, 242, 0.5),
        0 0 10px rgba(88, 101, 242, 0.3),
        0 0 21px rgba(88, 101, 242, 0.2),
        0 0 42px rgba(88, 101, 242, 0.1);
}

.neon-text-blurple {
    color: var(--blurple);
    text-shadow:
        0 0 7px rgba(88, 101, 242, 0.5),
        0 0 10px rgba(88, 101, 242, 0.3),
        0 0 21px rgba(88, 101, 242, 0.2);
}

.neon-text-violet {
    color: var(--violet);
    text-shadow:
        0 0 7px rgba(54, 25, 253, 0.5),
        0 0 10px rgba(54, 25, 253, 0.3),
        0 0 21px rgba(54, 25, 253, 0.2);
}

/* ---------- Neon Box ---------- */
.neon-box {
    border: 1px solid rgba(88, 101, 242, 0.2);
    box-shadow:
        inset 0 0 20px rgba(88, 101, 242, 0.03),
        0 0 15px rgba(88, 101, 242, 0.05);
    transition: all var(--transition-normal);
}

.neon-box:hover {
    border-color: rgba(88, 101, 242, 0.4);
    box-shadow:
        inset 0 0 20px rgba(88, 101, 242, 0.05),
        0 0 30px rgba(88, 101, 242, 0.1);
}

/* ---------- Gradient Box Border ---------- */
.gradient-border {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--gradient-primary);
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gradient-border:hover::before {
    opacity: 1;
}

/* ---------- Skeleton Loader ---------- */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* ---------- Pulse Indicator ---------- */
.pulse-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #43B581;
    position: relative;
}

.pulse-indicator::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid #43B581;
    animation: pulse-ring 1.5s ease-in-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- Tag ---------- */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

/* ---------- Counter Animation ---------- */
.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ---------- Section Separator ---------- */
.section-separator {
    position: relative;
    height: 80px;
    overflow: hidden;
}

.section-separator::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, var(--border-glow) 50%, transparent 95%);
}

/* ---------- Footer Disabled Links ---------- */
.footer-link-disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
    display: block;
    padding: 4px 0;
    font-size: inherit;
}

/* ---------- Footer Legal Links ---------- */
.footer-legal {
    margin-top: 8px;
    font-size: 0.85rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-legal-sep {
    margin: 0 8px;
    color: var(--text-muted);
    opacity: 0.4;
}

/* ============================================
   Cookie Consent Banner (RGPD)
   ============================================ */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(10, 10, 15, 0.97);
    border-top: 1px solid rgba(88, 101, 242, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 24px;
    animation: cookieSlideUp 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes cookieSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cookie-banner-icon {
    flex-shrink: 0;
    color: var(--accent, #5865F2);
}

.cookie-banner-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ccc;
}

.cookie-banner-text strong {
    color: #fff;
    font-size: 0.95rem;
}

.cookie-banner-text a {
    color: var(--accent, #5865F2);
    text-decoration: none;
}

.cookie-banner-text a:hover {
    text-decoration: underline;
}

.cookie-banner-actions {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-btn-accept {
    background: var(--accent, #5865F2);
    color: #fff;
}

.cookie-btn-accept:hover {
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

@media (max-width: 640px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-icon {
        display: none;
    }
}
