/* anthropic.css – styles used by anthropic.html (and shared by vibe-projects) */
/* Load after style.css for base layout/typography. */

/* ─── Floating audio player ─── */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(8, 8, 8, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(254, 252, 221, 0.1);
    z-index: 500;
    padding: 1rem 2rem;
}

.audio-player-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.audio-player-info {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    min-width: 0;
}

.audio-player-title {
    font-family: "ivypresto-headline", Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 0.85rem;
    color: #fefcdd;
    white-space: nowrap;
}

.audio-player-subtitle {
    font-size: 0.7rem;
    color: rgba(254, 252, 221, 0.38);
    white-space: nowrap;
    margin-top: 0.15rem;
}

.audio-btn {
    background: none;
    border: 1px solid rgba(254, 252, 221, 0.18);
    border-radius: 100px;
    color: #fefcdd;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.65rem;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

#audioPlayPause i.fa-play {
    margin-left: 2px;
}

.audio-btn:hover {
    background: rgba(254, 252, 221, 0.1);
    border-color: rgba(254, 252, 221, 0.35);
}

.audio-btn--sm {
    width: auto;
    height: 1.6rem;
    padding: 0 0.55rem;
    gap: 0.25rem;
    font-size: 0.58rem;
    letter-spacing: 0.3px;
}

.audio-btn--sm i {
    font-size: 0.55rem;
}

.audio-timeline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.audio-time {
    font-size: 0.68rem;
    color: rgba(254, 252, 221, 0.4);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    min-width: 2.25rem;
}

.audio-scrubber {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 2px;
    background: rgba(254, 252, 221, 0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.audio-scrubber::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fefcdd;
    cursor: pointer;
}

.audio-scrubber::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fefcdd;
    border: none;
    cursor: pointer;
}

.audio-speed {
    background: rgba(254, 252, 221, 0.05);
    border: 1px solid rgba(254, 252, 221, 0.14);
    border-radius: 100px;
    color: #fefcdd;
    font-size: 0.7rem;
    padding: 0.25rem 0.65rem;
    cursor: pointer;
    outline: none;
    font-family: inherit;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
}

@media (max-width: 640px) {
    .audio-player {
        padding: 0.75rem 1.25rem 1rem;
    }

    .audio-player-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "info     speed"
            "ctrls    ctrls"
            "timeline timeline";
        gap: 0.6rem 0.5rem;
        align-items: center;
    }

    .audio-player-info {
        grid-area: info;
        min-width: 0;
    }

    .audio-player-title {
        font-size: 0.78rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .audio-speed {
        grid-area: speed;
        justify-self: end;
    }

    .audio-controls {
        grid-area: ctrls;
        justify-content: center;
        gap: 0.75rem;
    }

    .audio-timeline {
        grid-area: timeline;
        min-width: 0;
        justify-content: center;
    }

    .audio-scrubber::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
    }

    .audio-scrubber::-moz-range-thumb {
        width: 14px;
        height: 14px;
    }
}

/* ─── Typewriter cursor ─── */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

#typewriterText.typing::after,
#typewriterText.typed::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 0.75em;
    background: currentColor;
    margin-left: 4px;
    vertical-align: middle;
    border-radius: 1px;
}

#typewriterText.typing::after {
    animation: blink 0.6s step-end infinite;
}

#typewriterText.typed::after {
    animation: blink 0.6s step-end 4;
}

/* ─── Single column text ─── */
.anthropic-one-col {
    max-width: 900px;
    margin: 0 auto 2rem;
}

.anthropic-one-col .copy-text {
    margin-top: 0;
}

@media (max-width: 1024px) {
    .anthropic-one-col {
        padding: 0 3rem;
    }
}

@media (max-width: 640px) {
    .anthropic-one-col {
        padding: 0 3rem;
    }
}

@media (max-width: 480px) {
    .anthropic-one-col {
        padding: 0 3rem;
    }
}

/* ─── Image + text layout ─── */
.anthropic-img-text {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto 2rem;
    align-items: start;
}

.anthropic-img-col img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.anthropic-text-col .copy-text {
    margin-top: 0;
}

.anthropic-text-col .copy-text + .copy-text {
    margin-top: 1.25rem;
}

.anthropic-btn-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.anthropic-email-btn {
    display: inline-block;
    font-family: "ivypresto-headline", Georgia, "Times New Roman", serif;
    font-style: normal;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: #fefcdd;
    background: rgba(254, 252, 221, 0.06);
    border: 1px solid rgba(254, 252, 221, 0.16);
    border-radius: 100px;
    padding: 0.4rem 1.25rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.anthropic-email-btn:hover {
    background: rgba(254, 252, 221, 0.12);
    border-color: rgba(254, 252, 221, 0.35);
}

@media (max-width: 1024px) {
    .anthropic-img-text {
        padding: 0 3rem;
    }
}

@media (max-width: 768px) {
    .anthropic-img-text {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 3rem;
    }

    .anthropic-img-col img {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 480px) {
    .anthropic-img-text {
        padding: 0 3rem;
    }
}

/* ─── Two-column grid & link list ─── */
.anthropic-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.anthropic-two-col .copy-text {
    margin-top: 0;
}

.anthropic-two-col .section-label {
    margin: 0 0 1rem;
}

@media (max-width: 1024px) {
    .anthropic-two-col {
        padding: 0 3rem;
    }
}

@media (max-width: 768px) {
    .anthropic-two-col {
        grid-template-columns: 1fr;
        padding: 0 3rem;
    }
}

@media (max-width: 480px) {
    .anthropic-two-col {
        padding: 0 3rem;
    }
}

.anthropic-three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.anthropic-three-col .copy-text {
    margin-top: 0;
}

@media (max-width: 1024px) {
    .anthropic-three-col {
        padding: 0 3rem;
    }
}

@media (max-width: 768px) {
    .anthropic-three-col {
        grid-template-columns: 1fr 1fr;
        padding: 0 3rem;
    }
}

@media (max-width: 480px) {
    .anthropic-three-col {
        grid-template-columns: 1fr;
        padding: 0 3rem;
    }
}

.anthropic-copy-grid {
    grid-template-columns: 2fr 1fr;
}

.anthropic-link-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.anthropic-link-list li {
    line-height: 2;
}

.anthropic-link-list li::before {
    content: '→';
    margin-right: 0.6rem;
    opacity: 0.4;
    font-size: 0.85em;
}

.anthropic-link-list li a {
    color: #fefcdd;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 0.5px;
    text-decoration-color: rgba(254, 252, 221, 0.5);
}

.anthropic-link-list li a:hover {
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .anthropic-copy-grid {
        grid-template-columns: 1fr;
    }
}
