/* Scarlett - MyScarlet.ai */
:root {
    --scarlett: #ff6b9d;
    --scarlett-dark: #ff4081;
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #2d2d4a;
    --bg-input: #252545;
    --text-primary: #e0e0e0;
    --text-secondary: #888;
    --text-muted: #666;
    --border: #333;
    --success: #4caf50;
    --error: #f44336;
    --warning: #ff9800;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
    color: var(--text-primary);
}

/* Landing Page */
.landing-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 40px 20px;
}

.landing-hero h1 {
    font-size: 4em;
    color: var(--scarlett);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.landing-hero .tagline {
    font-size: 1.4em;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
}

.tier-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    max-width: 1000px;
    width: 100%;
}

.landing-hero .price-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 30px 24px;
    flex: 1;
    max-width: 320px;
    position: relative;
}

.landing-hero .price-card.featured {
    border-color: var(--scarlett);
    box-shadow: 0 0 40px rgba(255, 107, 157, 0.15);
    transform: scale(1.04);
}

.featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--scarlett);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.price-card h2 {
    color: var(--scarlett);
    font-size: 1.8em;
    margin-bottom: 5px;
}

.price-card .tier-name {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.price-card .price {
    font-size: 3em;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.price-card .price span {
    font-size: 0.4em;
    color: var(--text-secondary);
}

.price-card .features {
    list-style: none;
    margin: 20px 0;
    text-align: left;
}

.price-card .features li {
    padding: 8px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.price-card .features li::before {
    content: "\2713  ";
    color: var(--scarlett);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--scarlett);
    color: white;
}

.btn-primary:hover {
    background: var(--scarlett-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--scarlett);
    border: 1px solid var(--scarlett);
}

.btn-secondary:hover {
    background: rgba(255, 107, 157, 0.1);
}

.btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Auth Forms */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-form {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
}

.auth-form h1 {
    color: var(--scarlett);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.9em;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--scarlett);
}

.form-group .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-group .checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    accent-color: var(--scarlett);
}

.form-group .checkbox-group label {
    margin-bottom: 0;
    font-size: 0.85em;
    line-height: 1.4;
}

.form-error {
    color: var(--error);
    font-size: 0.85em;
    margin-top: 5px;
    display: none;
}

.form-error.visible {
    display: block;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
}

.auth-links a {
    color: var(--scarlett);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Chat Interface */
.chat-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
}

.chat-header h1 {
    color: var(--scarlett);
    font-size: 1.5em;
}

.chat-header .user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.chat-header .logout-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.85em;
}

.chat-header .logout-btn:hover {
    border-color: var(--scarlett);
    color: var(--scarlett);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 15px 20px;
    border-radius: 20px;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-user {
    background: #4a4a8a;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message-assistant {
    background: var(--bg-card);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    border-left: 3px solid var(--scarlett);
}

.message-audio {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.audio-btn {
    background: var(--scarlett);
    border: none;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8em;
    width: fit-content;
}

.audio-btn:hover { background: var(--scarlett-dark); }
.audio-btn.playing { background: var(--success); }

.typing-indicator {
    display: none;
    align-self: flex-start;
    padding: 15px 20px;
    background: var(--bg-card);
    border-radius: 20px;
    border-left: 3px solid var(--scarlett);
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--scarlett);
    border-radius: 50%;
    margin: 0 2px;
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chat-input {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    align-items: center;
}

.chat-input input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1em;
    outline: none;
}

.chat-input input:focus {
    box-shadow: 0 0 0 2px var(--scarlett);
}

.chat-input button {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: var(--scarlett);
    color: white;
    font-size: 1em;
    cursor: pointer;
}

.chat-input button:hover { background: var(--scarlett-dark); }
.chat-input button:disabled { background: var(--text-muted); cursor: not-allowed; }

.chat-input .mic-btn.recording {
    background: var(--error);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Status bar */
.status-bar {
    text-align: center;
    padding: 5px;
    font-size: 0.8em;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 600px) {
    .landing-hero h1 { font-size: 2.5em; }
    .landing-hero .tagline { font-size: 1.1em; }
    .price-card { padding: 25px; }
    .price-card .price { font-size: 2.2em; }
    .landing-hero .price-card.featured { transform: none; }
    .tier-cards { flex-direction: column; align-items: center; }
    .landing-hero .price-card { max-width: 400px; }
    .auth-form { padding: 25px; }
    .message { max-width: 90%; }
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.85em;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer a:hover {
    color: var(--scarlett);
}
