/* Color scheme matching Axl app */
:root {
    --bg-dark: #1e1f22EE;
    --bg-darker: #15161a;
    --bg-card: #2b2d31;
    --accent-green: #43b581;
    --accent-green-hover: #3ca374;
    --text-primary: #ffffff;
    --text-secondary: #b5bac1;
    --text-muted: #80848e;
    --gradient-purple: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
    --bg-beige: #0f1011;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sansation', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-beige);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    z-index: -2;
    filter: blur(8px);
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Content Box */
.content-box {
    background: var(--bg-dark);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px) saturate(20%);
    -webkit-backdrop-filter: blur(20px) saturate(20%);
}

/* Download Tooltip */
.download-tooltip {
    position: fixed;
    top: 16px;
    right: 20px;
    max-width: 320px;
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.download-tooltip::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 100px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--bg-dark);
}

.download-tooltip.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.download-tooltip p {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.download-tooltip p:last-of-type {
    margin-bottom: 0;
}

.download-tooltip strong {
    color: var(--accent-green);
}

.tooltip-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
    line-height: 1;
}

.tooltip-close:hover {
    color: var(--text-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: var(--accent-green);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(67, 181, 129, 0.3);
    width: 100%;
    max-width: 300px;
}

.btn-download:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(67, 181, 129, 0.4);
}

.download-icon {
    flex-shrink: 0;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: var(--bg-card);
    color: var(--text-secondary);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 300px;
}

.btn-secondary:hover {
    background-color: #35383d;
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

.btn-icon {
    flex-shrink: 0;
}

/* Version Badge */
.version-badge {
    display: inline-flex;
    align-items: center;
}

.version-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #5dd39e 0%, var(--accent-green) 50%, var(--accent-green-hover) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Companions Preview */
.companions-preview {
    display: inline-flex;
    align-items: center;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.companion-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    object-fit: cover;
    box-sizing: content-box;
    transition: transform 0.3s ease, z-index 0.3s ease;
    position: relative;
}

.companion-avatar-1 {
    z-index: 1;
}

.companion-avatar-2 {
    z-index: 2;
    margin-left: -10px;
}

.companion-avatar-3 {
    z-index: 3;
    margin-left: -10px;
}

.companion-avatar:hover {
    transform: translateY(-3px) scale(1.1);
    z-index: 10;
}

.persona-note {
    font-family: 'Sansation', sans-serif;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 2rem;
    line-height: 1.6;
    opacity: 0.7;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Roast Section with Avatar */
.roast-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Avatar */
.avatar-container {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.avatar-container:hover {
    transform: scale(1.05);
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.avatar-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    border: 6px solid transparent;
    transition: all 0.3s ease;
    z-index: 1;
}

.avatar-container.speaking .avatar-ring {
    border-color: var(--accent-green);
    animation: speaking-ring 1s ease-in-out infinite;
}

@keyframes speaking-ring {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(67, 181, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 8px rgba(67, 181, 129, 0.2);
    }
}

/* Status Indicator */
.status-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 42px;
    height: 42px;
    background-color: var(--accent-green);
    border: 8px solid var(--bg-dark);
    border-radius: 50%;
    z-index: 3;
}

/* Roast Message */
.roast-message {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}

.play-icon {
    color: var(--accent-green);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.play-icon:hover {
    color: var(--accent-green-hover);
    transform: scale(1.1);
}

.play-icon.playing {
    animation: pulse-icon 1s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.roast-text {
    font-family: 'Gochi Hand', cursive;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-green);
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.roast-text:hover {
    color: var(--accent-green-hover);
    transform: translateX(-5px);
}

.roast-text.playing {
    animation: glow-text 1.5s ease-in-out infinite;
}

@keyframes glow-text {
    0%, 100% {
        text-shadow: 0 0 10px rgba(67, 181, 129, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(67, 181, 129, 0.6);
    }
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

/* Footer Content (now inside hero) */
.footer-content {
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(181, 186, 193, 0.1);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.footer-text:last-of-type {
    margin-bottom: 0;
}

.tech-stack {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-icon {
    height: 20px;
    width: 20px;
    flex-shrink: 0;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.tech-item:hover .tech-icon {
    opacity: 1;
}

.tech-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-box {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .hero {
        padding: 2rem 0;
        min-height: auto;
    }

    .container {
        padding: 0 1rem;
    }

    .video-background {
        left: -20%;
        width: 140%;
    }

    .download-tooltip {
        top: 16px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .download-tooltip::before {
        right: 60px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .persona-note {
        font-size: 0.75rem;
        margin-top: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .roast-section {
        flex-direction: column;
        gap: 1.5rem;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .avatar-ring {
        top: -5px;
        left: -5px;
        width: 110px;
        height: 110px;
        border: 5px solid transparent;
    }

    .status-indicator {
        width: 36px;
        height: 36px;
    }

    .roast-message {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .roast-text {
        font-size: 1.25rem;
    }

    .roast-text:hover {
        transform: none;
    }

    .footer-content {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .tech-stack {
        gap: 1.5rem;
    }

    .tech-icon {
        height: 18px;
        width: 18px;
    }

    .tech-label {
        font-size: 0.8125rem;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: var(--accent-green);
    color: white;
}

/* Language Switcher */
.language-switcher {
    display: inline-flex;
    align-items: center;
    vertical-align: -0.125em;
    gap: 0.25rem;
}

#languageSwitcher {
    background: transparent;
    border: none;
    color: var(--accent-green);
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    padding: 0;
    transition: color 0.2s ease;
}

#languageSwitcher:hover {
    color: var(--accent-green-hover);
}

#languageSwitcher option {
    background-color: var(--bg-card);
    color: var(--text-primary);
    padding: 0.5rem;
}
