/* Berialabs LOTR Effects - Clean & Subtle
/* Using original BeriaLabs color palette
/* ---------------------------------------------------------- */

/* === Rotating Text Animation (Clean like Claude.ai) === */
.claude-type {
    display: inline-block;
    position: relative;
    min-width: fit-content;
    text-align: left;
    color: var(--cc-accent-strong, #1e2a32);
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.claude-type.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Thinking Loader with LOTR Quotes (Terminal Style) === */
.gandalf-thinking {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f8fbff, #eef2f8);
    border: 1px solid rgba(163, 178, 201, 0.45);
    border-radius: 12px;
    font-family: 'JetBrains Mono', Menlo, Consolas, monospace;
    font-size: 13px;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(59, 87, 105, 0.08);
    margin-top: 16px;
}

.gandalf-thinking-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cc-accent, #3b5769);
    box-shadow: 0 0 0 0 rgba(59, 87, 105, 0.4);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 87, 105, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(59, 87, 105, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 87, 105, 0);
    }
}

.gandalf-thinking-text {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.gandalf-thinking-dots {
    display: inline-flex;
    gap: 2px;
    margin-left: 2px;
}

.gandalf-thinking-dots span {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--cc-accent, #3b5769);
    animation: dot-flashing 1.4s infinite;
}

.gandalf-thinking-dots span:nth-child(1) {
    animation-delay: 0s;
}

.gandalf-thinking-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.gandalf-thinking-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-flashing {
    0%, 50%, 100% {
        opacity: 0.2;
        transform: translateY(0);
    }
    25% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* === Subtle Grid Background (Optional, very light) === */
.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(59, 87, 105, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 87, 105, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* === Clean Button Styles === */
.claude-btn.primary {
    background: var(--cc-accent, #3b5769);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(59, 87, 105, 0.15);
}

.claude-btn.primary:hover {
    background: var(--cc-accent-strong, #1e2a32);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 87, 105, 0.25);
}

.claude-btn.ghost {
    background: transparent;
    color: var(--cc-accent, #3b5769);
    border: 1px solid rgba(59, 87, 105, 0.3);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.claude-btn.ghost:hover {
    background: rgba(59, 87, 105, 0.05);
    border-color: var(--cc-accent, #3b5769);
}

/* === Pills/Chips === */
.claude-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(59, 87, 105, 0.08);
    border: 1px solid rgba(59, 87, 105, 0.15);
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--cc-accent, #3b5769);
    transition: all 0.2s ease;
}

.claude-pill:hover {
    background: rgba(59, 87, 105, 0.12);
    border-color: rgba(59, 87, 105, 0.25);
}

.claude-pill.is-soft {
    background: rgba(67, 176, 170, 0.08);
    border-color: rgba(67, 176, 170, 0.15);
    color: var(--cc-success, #43b0aa);
}

/* === Cards === */
.claude-stack-card,
.claude-feature-card {
    background: var(--cc-surface, #ffffff);
    border: 1px solid var(--cc-border, rgba(20, 20, 20, 0.08));
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
}

.claude-stack-card:hover,
.claude-feature-card:hover {
    border-color: rgba(59, 87, 105, 0.2);
    box-shadow: 0 4px 12px rgba(59, 87, 105, 0.08);
    transform: translateY(-2px);
}

/* === Terminal/Code Window === */
.claude-window {
    position: relative;
    background: #1a1d23;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.claude-window:hover {
    box-shadow: 0 8px 24px rgba(59, 87, 105, 0.15);
}

.claude-window-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.claude-window-code {
    padding: 20px;
}

.claude-window-code code {
    color: var(--cc-success, #43b0aa);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
}

/* === Section Eyebrows === */
.claude-eyebrow {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cc-accent, #3b5769);
    margin-bottom: 12px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .claude-type {
        font-size: 0.9em;
    }

    .gandalf-thinking {
        font-size: 12px;
        padding: 8px 14px;
    }

    .claude-btn.primary,
    .claude-btn.ghost {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* === Remove heavy animations === */
.claude-hero::before {
    display: none;
}

.claude-window-glow {
    display: none;
}

/* === Clean, minimal animations only === */
@keyframes subtle-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* === Thinking Dots Animation (Claude Code style) === */
.thinking-dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 4px;
}

.thinking-dots span {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    animation: thinking-bounce 1.4s infinite ease-in-out;
}

.thinking-dots span:nth-child(1) {
    animation-delay: 0s;
}

.thinking-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes thinking-bounce {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-6px);
    }
}

/* === Smooth transitions for thinking text and icon === */
#gandalf-thinking-text,
#thinking-icon {
    transition: opacity 0.3s ease;
}
