
/* === CLIPWAVE - MAIN STYLESHEET === */

:root {
    --primary-orange: #ff6b00;
    --primary-hover: #ff8c33;
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-sidebar: #0e0e16;
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #888;
    --text-dim: #555;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* === TOP NAV === */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ff6b00, #ff8c33);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.text-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
}

.text-link:hover {
    color: var(--text-main);
}

.nav-cta {
    background: linear-gradient(135deg, #ff6b00, #ff8c33);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.4);
}

/* === PAGE SECTIONS === */
.page-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 100px 20px 60px;
}

/* === HERO / LANDING === */
.hero-container {
    max-width: 800px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.3);
    color: var(--primary-orange);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 18px;
}

.orange-glow {
    background: linear-gradient(135deg, #ff6b00, #ff8c33);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* === HERO ACTION BOX === */
.hero-action-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 60px;
}

.hero-form {
    display: flex;
    gap: 10px;
}

.hero-form input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.hero-form input:focus {
    border-color: var(--primary-orange);
}

.or-divider {
    text-align: center;
    margin: 18px 0;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.upload-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.upload-btn.mini {
    width: auto;
    padding: 12px 16px;
    white-space: nowrap;
}

/* === CTA BUTTON === */
.cta-button {
    background: linear-gradient(135deg, #ff6b00, #ff8c33);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.cta-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.large-cta {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    margin-top: 20px;
}

.pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.4); }
    50% { box-shadow: 0 0 20px 4px rgba(255, 107, 0, 0.2); }
}

/* === HOW IT WORKS === */
.how-it-works {
    margin-top: 60px;
}

.how-it-works h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    text-align: left;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-orange);
    color: white;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.step-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* === SIGNUP PAGE === */
#signup {
    max-width: 420px;
    margin: 0 auto;
}

#signup h2 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-btn {
    display: block;
    padding: 14px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.auth-btn:hover {
    transform: translateY(-1px);
}

.auth-btn.google {
    background: #fff;
    color: #333;
}

.auth-btn.twitch {
    background: #9146ff;
    color: #fff;
}

.auth-btn.github {
    background: #333;
    color: #fff;
    border: 1px solid #555;
}

#signup form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#signup input {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    outline: none;
}

#signup input:focus {
    border-color: var(--primary-orange);
}

/* === DASHBOARD === */
.dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 60px);
}

.sidebar {
    width: 240px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 60px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
}

#sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 10px;
}

#sidebar-nav button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s, color 0.2s;
}

#sidebar-nav button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

#sidebar-nav button.active {
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary-orange);
    font-weight: 600;
}

.sidebar-footer {
    padding: 10px;
}

.sidebar-footer button {
    width: 100%;
    padding: 10px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: border-color 0.2s, color 0.2s;
}

.sidebar-footer button:hover {
    border-color: #ff4d4d;
    color: #ff4d4d;
}

.dash-content-area {
    margin-left: 240px;
    flex: 1;
    padding: 30px 40px;
}

.dash-tab {
    display: none;
}

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

.dash-header h2 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.dash-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* === FORM STYLES === */
.pro-form {
    max-width: 800px;
}

.setting-box {
    margin-bottom: 20px;
}

.setting-box label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary-orange);
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 10px;
}

.setting-box.half {
    margin-bottom: 0;
}

.dark-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.dark-select option {
    background: #1a1a24;
    color: white;
}

/* === LIBRARY === */
.clips-container {
    margin-top: 20px;
}

.hint-text {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* === CHAT === */
.chat-box {
    max-width: 700px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.chat-history {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
}

.chat-msg {
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ai-msg {
    background: rgba(255, 107, 0, 0.08);
    border: 1px solid rgba(255, 107, 0, 0.15);
}

.user-msg {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}

.chat-input-area input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    outline: none;
}

.chat-input-area input:focus {
    border-color: var(--primary-orange);
}

.small-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* === PRICING === */
.pricing-container {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 35px 30px;
    width: 300px;
    text-align: center;
    position: relative;
}

.price-card.featured {
    border-color: var(--primary-orange);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.15);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b00, #ff8c33);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.price-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.price {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 25px;
}

.price-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

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

.price-btn {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.price-btn.primary-btn {
    background: linear-gradient(135deg, #ff6b00, #ff8c33);
    color: white;
}

.price-btn.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.price-btn.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* === ANIMATIONS === */
.animate-fade-in {
    animation: fadeIn 0.4s ease;
}

.animate-slide-up {
    animation: slideUp 0.3s ease;
}

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

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .top-nav {
        padding: 12px 20px;
    }

    h1 {
        font-size: 2rem;
    }

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

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

    .sidebar {
        display: none;
    }

    .dash-content-area {
        margin-left: 0;
        padding: 20px;
    }

    .pricing-container {
        flex-direction: column;
        align-items: center;
    }

    .dashboard-wrapper {
        flex-direction: column;
    }
}


