/* Hyperdose Roster — Clean Design System */
/* Black background, #fdff00 accent, Space Grotesk, full-width sections */

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

:root {
    --bg: #000;
    --black: #000;
    --white: #fff;
    --yellow: #fdff00;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hover: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
    --gray-800: #1a1a1a;
    --gray-600: #404040;
    --radius: 24px;
    --radius-sm: 12px;
    --font-primary: 'Space Grotesk', -apple-system, sans-serif;
    --transition: all 0.3s cubic-bezier(0.2, 0, 0.8, 1);
    --padding-sm: 20px;
    --padding-md: 40px;
    --padding-lg: 80px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg);
    color: var(--white);
    text-transform: lowercase;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

@media (max-width: 768px) {
}

/* TICKER */
.ticker {
    background: var(--gradient);
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
}

.ticker-track {
    display: inline-block;
    animation: scroll 30s linear infinite;
}

.ticker-track span {
    padding: 0 32px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Header */
header {
    padding: 16px var(--padding-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    text-decoration: none;
}

.header-cta {
    background: var(--gradient);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
}

.header-cta:hover {
    transform: scale(1.05);
}

/* Platform Logos Bar */
.platforms-bar {
    padding: 60px 20px;
    background: var(--bg);
}

.platforms-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    max-width: 600px;
    margin: 0 auto;
}

.platform-logo {
    color: rgba(255, 255, 255, 0.25);
    transition: color 0.3s ease, transform 0.3s ease;
}

.platform-logo:hover {
    color: #764ba2;
    transform: scale(1.2);
}

@media (max-width: 480px) {
    .platforms-logos {
        gap: 28px;
    }
    .platform-logo svg {
        width: 22px;
        height: 22px;
    }
}

/* Main */
main {
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
}

/* Landing Page */
.landing {
    display: flex;
    flex-direction: column;
}

.hero-section {
    min-height: 80vh;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--padding-lg) var(--padding-sm);
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero-content h1 {
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -3px;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 36px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    opacity: 1;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Social Feed Section */
.social-feed {
    padding: 80px 20px;
    background: var(--bg);
}

.feed-label {
    text-align: center;
    font-size: 13px;
    opacity: 0.4;
    margin-bottom: 40px;
    font-weight: 500;
}

.feed-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feed-item {
    background: #111;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger the animations */
.feed-item:nth-child(1) { animation-delay: 0.2s; }
.feed-item:nth-child(2) { animation-delay: 0.5s; }
.feed-item:nth-child(3) { animation-delay: 0.8s; }
.feed-item:nth-child(4) { animation-delay: 1.1s; }
.feed-item:nth-child(5) { animation-delay: 1.4s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.feed-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    color: var(--white);
}

.feed-name {
    font-weight: 700;
    font-size: 14px;
    margin-right: 8px;
}

.feed-platform {
    font-size: 11px;
    opacity: 0.4;
    font-weight: 500;
}

.feed-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feed-traits {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    margin-top: 2px;
}

.feed-content p {
    margin-top: 8px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.contact-section {
    padding: var(--padding-lg) var(--padding-sm);
    background: var(--bg);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-container h2 {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 60px;
    text-align: center;
}

.contact-form {
    display: grid;
    gap: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white);
}

input[type="text"],
input[type="email"],
textarea,
select {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 14px;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--yellow);
    background: rgba(255, 255, 0, 0.05);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

select option {
    background: var(--black);
    color: var(--white);
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    font-family: var(--font-primary);
    text-transform: lowercase;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-pill {
    border-radius: 100px;
}

.btn-yellow {
    background: var(--gradient);
    color: var(--white);
}

.btn-yellow:hover {
    background: var(--gradient-hover);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
}

.btn-primary {
    background: var(--yellow);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--white);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--yellow);
    color: var(--yellow);
}

.btn-secondary:hover {
    background: var(--yellow);
    color: var(--black);
}

/* Dashboard */
.dashboard-container {
    padding: var(--padding-lg) var(--padding-sm);
}

.roster-section {
    max-width: 1200px;
    margin: 0 auto;
}

.roster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.roster-header h1 {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 800;
    letter-spacing: -2px;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.agent-card {
    background: #111;
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    cursor: pointer;
}

.agent-card:hover {
    transform: translateY(-4px);
    background: #1a1a1a;
}

.agent-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.agent-card p {
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 20px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-dot.status-online {
    background: #00ff6a;
}

.status-dot.status-offline {
    background: #ff5722;
}

/* Agent Page */
.agent-container {
    padding: var(--padding-lg) var(--padding-sm);
}

.agent-section {
    max-width: 1000px;
    margin: 0 auto;
}

.agent-header {
    margin-bottom: 60px;
}

.agent-header h1 {
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.tab-pills {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 32px;
}

.tab-pill {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.tab-pill:hover {
    color: var(--white);
}

.tab-pill.active {
    color: var(--yellow);
    border-bottom-color: var(--yellow);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.card {
    background: #111;
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 32px;
}

.card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
}

.card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Pill Selector (toggle pills for personality editor) */
.pill-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-option {
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: lowercase;
}

.pill-option:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.pill-option.selected {
    border-color: transparent;
    color: #000;
}

/* Color variants for selected state */
.pill-selector[data-name="gender"] .pill-option.selected {
    background: var(--white);
    color: #000;
}

.pill-selector[data-name="vibe"] .pill-option.selected {
    background: var(--yellow);
    color: #000;
}

.pill-selector[data-name="trait"] .pill-option.selected {
    background: #888;
    color: #fff;
}

.pill-selector[data-name="never_does"] .pill-option.selected {
    background: #c0392b;
    color: #fff;
}

.pill-option.disabled {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
}

/* Legacy checkbox styles (kept for compatibility) */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-primary);
    z-index: 10000;
    animation: toastIn 0.3s ease-out, toastOut 0.3s ease-in 2.7s forwards;
    text-transform: lowercase;
}

.toast-success {
    background: #00ff6a;
    color: #000;
}

.toast-error {
    background: #ff4444;
    color: #fff;
}

.toast-info {
    background: #333;
    color: #fff;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Footer */
footer {
    padding: 32px var(--padding-sm);
    text-align: center;
    font-size: 12px;
    opacity: 0.4;
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer a {
    color: inherit;
    margin: 0 10px;
    text-decoration: none;
}

footer a:hover {
    opacity: 1;
}

/* Dashboard Navigation */
nav {
    background: var(--bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem var(--padding-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--yellow);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--yellow);
}

.nav-user {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-email {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.btn-logout {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    color: var(--yellow);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: var(--padding-md) var(--padding-sm);
        min-height: auto;
    }

    .social-feed {
        padding: var(--padding-md) var(--padding-sm);
    }

    .feed-container {
        max-width: 100%;
    }

    .contact-section {
        padding: var(--padding-md) var(--padding-sm);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .roster-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .agents-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    .tab-pills {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    :root {
        --padding-lg: 40px;
        --padding-md: 24px;
        --padding-sm: 16px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .contact-container h2 {
        font-size: 32px;
    }

    .roster-header h1 {
        font-size: 32px;
    }

    .agent-header h1 {
        font-size: 28px;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .nav-user {
        font-size: 0.75rem;
    }
}
