/* Shared Component Styles */
site-header,
site-footer {
    display: block;
}


/* Advantage Card */
.advantage-card {
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    background-color: var(--bg-card);
}

.advantage-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -6px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-indigo);
}

/* Enhanced hover gradients - force visible background gradients */
.thesis-card-purple:hover {
    background: linear-gradient(to bottom, rgba(250, 245, 255, 0.3), var(--bg-card), var(--bg-card)) !important;
}

[data-theme="dark"] .thesis-card-purple:hover {
    background: linear-gradient(to bottom, rgba(168, 85, 247, 0.15), var(--bg-card), var(--bg-card)) !important;
}

.thesis-card-indigo:hover {
    background: linear-gradient(to bottom, rgba(238, 242, 255, 0.3), var(--bg-card), var(--bg-card)) !important;
}

[data-theme="dark"] .thesis-card-indigo:hover {
    background: linear-gradient(to bottom, rgba(99, 102, 241, 0.15), var(--bg-card), var(--bg-card)) !important;
}

.thesis-card-emerald:hover {
    background: linear-gradient(to bottom, rgba(236, 253, 245, 0.3), var(--bg-card), var(--bg-card)) !important;
}

[data-theme="dark"] .thesis-card-emerald:hover {
    background: linear-gradient(to bottom, rgba(16, 185, 129, 0.15), var(--bg-card), var(--bg-card)) !important;
}

.thesis-card-orange:hover {
    background: linear-gradient(to bottom, rgba(255, 247, 237, 0.3), var(--bg-card), var(--bg-card)) !important;
}

/* 3D Tooltip Styles - Apple-Quality Premium */
.three-tooltip {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -100%) scale(0.96);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 4px 20px var(--glass-shadow),
        0 2px 6px rgba(0, 0, 0, 0.04),
        inset 0 0 0 1px var(--glass-border);
    z-index: 9999;
    white-space: nowrap;
    margin-top: -15px;
    text-align: left;
    min-width: 140px;
}

.three-tooltip.visible {
    opacity: 1;
    transform: translate(-50%, -120%) scale(1);
}

.tooltip-company {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
}

.tooltip-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.three-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--glass-bg) transparent transparent transparent;
}

/* Reveal animation utilities (Moved from chat.css) */
.chat-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 450ms cubic-bezier(0.16, 1, 0.3, 1), transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
    .chat-reveal {
        transition: none;
        transform: none;
    }
}

/* Shared Background Shapes */
.background-shapes {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

/* Shared Animation Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}