/* SKYNET Theme - Modern Redesign */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #151515;
    --chrome: #c0c0c0;
    --chrome-dark: #808080;
    --danger-red: #ff0000;
    --electric-blue: #00d9ff;
    --electric-blue-glow: rgba(0, 217, 255, 0.5);
    --warning: #ffaa00;
    --text-primary: #ffffff;
    --text-secondary: #00ff41;
    --success: #00ff41;
    --error: #ff0000;
}

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

body {
    font-family: 'Orbitron', 'Share Tech Mono', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Matrix Canvas Background */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* Navigation */
.navbar {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--danger-red);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

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

.nav-brand {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--danger-red);
    text-shadow: 0 0 10px var(--danger-red);
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--electric-blue);
    text-shadow: 0 0 10px var(--electric-blue-glow);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--electric-blue);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#user-email {
    color: var(--electric-blue);
    font-size: 0.9rem;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-email-btn {
    background: transparent;
    border: 1px solid var(--electric-blue);
    color: var(--electric-blue);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.user-email-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--dark-bg);
    border: 1px solid var(--electric-blue);
    border-radius: 8px;
    min-width: 220px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.2);
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown-menu.show {
    display: block;
}

.dropdown-header {
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--electric-blue);
}

.dropdown-danger {
    color: var(--terminator-red);
}

.dropdown-danger:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 212, 255, 0.2);
    margin: 0.25rem 0;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--danger-red);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.btn-primary:hover {
    background: #cc0000;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.8);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--electric-blue);
    border: 2px solid var(--electric-blue);
}

.btn-secondary:hover {
    background: var(--electric-blue);
    color: var(--bg-primary);
    box-shadow: 0 0 15px var(--electric-blue-glow);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 2rem 2rem 1rem;
}

.hero-content {
    z-index: 1;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    color: var(--danger-red);
    text-shadow: 0 0 30px var(--danger-red);
    margin-bottom: 0.5rem;
    letter-spacing: 10px;
}

/* Glitch Effect */
.glitch {
    position: relative;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--electric-blue);
    text-shadow: 0 0 20px var(--electric-blue-glow);
    letter-spacing: 5px;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: 2rem 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    color: var(--danger-red);
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    letter-spacing: 3px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Roast Section */
.roast-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.roast-card {
    background: var(--bg-card);
    border: 2px solid var(--danger-red);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
    max-width: 900px;
    margin: 0 auto;
}

.roast-header {
    border-bottom: 1px solid var(--danger-red);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.roast-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.roast-date {
    color: var(--chrome);
    font-size: 0.9rem;
}

.roast-attacker {
    color: var(--danger-red);
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.roast-body {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    white-space: pre-wrap;
}

/* Voting Section */
.voting-section {
    border-top: 1px solid var(--chrome-dark);
    padding-top: 2rem;
}

.voting-section h3 {
    text-align: center;
    color: var(--electric-blue);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.vote-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 3rem;
    background: var(--bg-secondary);
    border: 2px solid;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

.vote-skynet {
    border-color: var(--danger-red);
    color: var(--danger-red);
}

.vote-skynet:hover {
    background: var(--danger-red);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    transform: translateY(-3px);
}

.vote-clankers {
    border-color: #cd8500;
    color: #cd8500;
}

.vote-clankers:hover {
    background: #cd8500;
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(205, 133, 0, 0.6);
    transform: translateY(-3px);
}

.vote-icon {
    font-size: 2rem;
}

.vote-count {
    font-size: 1.5rem;
    font-weight: 900;
}

.vote-message {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    min-height: 24px;
}

.vote-message.success {
    color: var(--success);
}

.vote-message.error {
    color: var(--error);
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-secondary);
    border-top-color: var(--danger-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Chat Section */
.chat-section {
    background: var(--bg-secondary);
}

.upsell-card {
    background: var(--bg-card);
    border: 3px solid var(--electric-blue);
    border-radius: 10px;
    padding: 3rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    box-shadow: 0 0 40px var(--electric-blue-glow);
}

.premium-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--electric-blue);
    color: var(--bg-primary);
    padding: 0.5rem 2rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.upsell-card h3 {
    color: var(--electric-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 2rem auto;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-primary);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 900;
}

/* Chat Interface */
#chat-interface {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 2px solid var(--electric-blue);
    border-radius: 10px;
    overflow: hidden;
}

.chat-header {
    background: var(--bg-secondary);
    padding: 1rem;
    border-bottom: 1px solid var(--electric-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.status-indicator.online {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-info {
    color: var(--chrome);
    font-size: 0.9rem;
}

.chat-messages {
    height: 500px;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--bg-primary);
}

.user-message, .ai-message, .system-message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
}

.user-message {
    background: var(--bg-secondary);
    border-left: 3px solid var(--chrome);
}

.ai-message {
    background: var(--bg-secondary);
    border-left: 3px solid var(--danger-red);
}

.system-message {
    background: rgba(0, 217, 255, 0.1);
    border-left: 3px solid var(--electric-blue);
    text-align: center;
    color: var(--electric-blue);
}

.typing-indicator {
    color: var(--chrome);
    font-style: italic;
}

.chat-input-container {
    padding: 1rem;
    background: var(--bg-secondary);
    display: flex;
    gap: 1rem;
}

#chat-input {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--chrome-dark);
    border-radius: 4px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    resize: none;
}

#chat-input:focus {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: 0 0 10px var(--electric-blue-glow);
}

/* Pricing Section */
.pricing-section {
    background: var(--bg-primary);
    padding: 1rem 0;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 2px solid var(--chrome-dark);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.pricing-card.premium {
    border-color: var(--electric-blue);
    box-shadow: 0 0 30px var(--electric-blue-glow);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--electric-blue);
    color: var(--bg-primary);
    padding: 0.25rem 1rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.pricing-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.price {
    margin: 0.4rem 0;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--danger-red);
}

.price-period {
    font-size: 0.85rem;
    color: var(--chrome);
}

.features {
    list-style: none;
    text-align: left;
    margin: 0.4rem 0;
}

.features li {
    padding: 0.2rem 0;
    border-bottom: 1px solid var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.8rem;
}

.features li:last-child {
    border-bottom: none;
}

.trial-note {
    margin-top: 0.5rem;
    color: var(--chrome);
    font-size: 0.8rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg-card);
    border: 2px solid var(--electric-blue);
    border-radius: 10px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 50px var(--electric-blue-glow);
}

.modal-content h2 {
    color: var(--electric-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--chrome);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--danger-red);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--chrome-dark);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: 0 0 10px var(--electric-blue-glow);
}

.form-group small {
    display: block;
    color: var(--chrome);
    margin-top: 0.25rem;
    font-size: 0.85rem;
}

.modal-footer {
    text-align: center;
    margin-top: 1rem;
    color: var(--chrome);
}

.modal-footer a {
    color: var(--electric-blue);
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

.modal-note {
    font-size: 0.85rem;
    color: var(--chrome);
    margin-top: 0.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Danger/Warning Styles */
.danger-text {
    color: var(--terminator-red) !important;
}

.warning-box {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--terminator-red);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.warning-box ul {
    margin: 0.5rem 0 0 1.5rem;
    color: var(--text-secondary);
}

.warning-box li {
    margin: 0.25rem 0;
}

.btn-danger {
    background: var(--terminator-red);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #ff4444;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--dark-bg);
    border: 1px solid var(--chrome);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    margin: 0.5rem 0 1rem 0;
}

.form-input:focus {
    outline: none;
    border-color: var(--electric-blue);
}

.subscription-info {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Messages */
.error-message {
    color: var(--error);
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--error);
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.success-message {
    color: var(--success);
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--success);
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--danger-red);
    padding: 2rem 0;
    text-align: center;
    color: var(--chrome);
}

.footer a {
    color: var(--electric-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .vote-buttons {
        flex-direction: column;
        gap: 1rem;
    }

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