/* ===== ContentCreatorAI — Premium Orange Theme ===== */
:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8C5E;
    --primary-glow: rgba(255, 107, 53, 0.25);
    --bg-dark: #0A0A0F;
    --bg-card: #12121A;
    --bg-card-hover: #1A1A25;
    --bg-input: #16161F;
    --text: #F0F0F5;
    --text-muted: #8888A0;
    --text-dim: #555570;
    --border: #2A2A3A;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.5);
    --transition: all 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
}
.navbar-brand {
    font-size: 1.35rem; font-weight: 800; color: var(--text);
    display: flex; align-items: center; gap: 0.5rem;
}
.navbar-brand span { color: var(--primary); }
.navbar-links { display: flex; align-items: center; gap: 1.25rem; }
.navbar-links a {
    color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
    padding: 0.4rem 0; border-bottom: 2px solid transparent;
}
.navbar-links a:hover, .navbar-links a.active { color: var(--text); border-bottom-color: var(--primary); }
.nav-cta {
    background: var(--primary); color: #fff !important; padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm); font-weight: 600; border: none;
}
.nav-cta:hover { background: var(--primary-dark); color: #fff !important; }
.mobile-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ===== LAYOUT ===== */
.page-wrapper { padding-top: 64px; min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
.container-sm { max-width: 600px; margin: 0 auto; padding: 2rem 1.5rem; }
.container-md { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem; }

/* ===== HERO ===== */
.hero {
    text-align: center; padding: 6rem 1.5rem 4rem;
    background: radial-gradient(ellipse at top, rgba(255,107,53,0.08) 0%, transparent 60%);
}
.hero h1 { font-size: 3.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 1.25rem; }
.hero h1 .gradient {
    background: linear-gradient(135deg, var(--primary), #FFB088);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 640px; margin: 0 auto 2.5rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.75rem; border-radius: var(--radius-sm); font-weight: 600;
    font-size: 0.95rem; border: none; cursor: pointer; transition: var(--transition);
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 20px var(--primary-glow); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; border-radius: var(--radius); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }

/* ===== CARDS ===== */
.card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2rem; transition: var(--transition);
}
.card:hover { border-color: rgba(255,107,53,0.3); background: var(--bg-card-hover); }
.card-header { margin-bottom: 1.5rem; }
.card-header h2 { font-size: 1.5rem; font-weight: 700; }
.card-header p { color: var(--text-muted); margin-top: 0.25rem; }

/* ===== FEATURES GRID ===== */
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.25rem; font-weight: 800; margin-bottom: 0.5rem; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; }

.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
    padding: 0 1.5rem; max-width: 1200px; margin: 0 auto 4rem;
}
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2rem; text-align: center; transition: var(--transition);
    text-decoration: none; color: var(--text);
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 32px var(--primary-glow); color: var(--text); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--text); }
.form-control {
    width: 100%; padding: 0.75rem 1rem; background: var(--bg-input); border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text); font-size: 0.95rem;
    transition: var(--transition); font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-control::placeholder { color: var(--text-dim); }
select.form-control { cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238888A0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center;
}
textarea.form-control { resize: vertical; min-height: 100px; }

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

/* ===== AUTH PAGES ===== */
.auth-container {
    min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center;
    padding: 2rem 1.5rem;
}
.auth-card { width: 100%; max-width: 440px; }
.auth-card .card { padding: 2.5rem; }
.auth-title { font-size: 1.75rem; font-weight: 800; text-align: center; margin-bottom: 0.5rem; }
.auth-subtitle { color: var(--text-muted); text-align: center; margin-bottom: 2rem; font-size: 0.95rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; color: var(--text-muted); font-size: 0.9rem; }

/* ===== DASHBOARD ===== */
.dash-header { margin-bottom: 2rem; }
.dash-header h1 { font-size: 2rem; font-weight: 800; }
.dash-header p { color: var(--text-muted); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem; text-align: center;
}
.stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.25rem; }

.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.tool-card {
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem; text-decoration: none; color: var(--text); transition: var(--transition); text-align: center;
}
.tool-card:hover { border-color: var(--primary); transform: translateY(-2px); color: var(--text); }
.tool-card .icon { font-size: 2rem; }
.tool-card h3 { font-size: 1rem; font-weight: 700; }

/* ===== RESULT BOX ===== */
.result-box {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2rem; margin-top: 2rem; position: relative;
}
.result-box pre {
    white-space: pre-wrap; word-wrap: break-word; font-family: inherit;
    font-size: 0.95rem; line-height: 1.7; color: var(--text);
}
.copy-btn {
    position: absolute; top: 1rem; right: 1rem;
    background: var(--primary); color: #fff; border: none; padding: 0.4rem 1rem;
    border-radius: var(--radius-sm); cursor: pointer; font-size: 0.8rem; font-weight: 600;
}
.copy-btn:hover { background: var(--primary-dark); }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 3rem; }
.price-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2.5rem 2rem; text-align: center; position: relative; transition: var(--transition);
}
.price-card.popular { border-color: var(--primary); }
.price-card.popular::before {
    content: 'MOST POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 0.25rem 1rem;
    border-radius: 20px; letter-spacing: 0.05em;
}
.price-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.price-amount { font-size: 3rem; font-weight: 900; }
.price-amount span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.price-period { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.price-features { list-style: none; margin-bottom: 2rem; text-align: left; }
.price-features li { padding: 0.5rem 0; color: var(--text-muted); font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.price-features li::before { content: '\2713'; color: var(--primary); font-weight: 700; }

/* ===== RECENT TABLE ===== */
.recent-table { width: 100%; border-collapse: collapse; }
.recent-table th, .recent-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.recent-table th { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.recent-table td { font-size: 0.9rem; }
.badge {
    display: inline-block; padding: 0.2rem 0.65rem; border-radius: 20px; font-size: 0.75rem;
    font-weight: 600; background: rgba(255,107,53,0.15); color: var(--primary);
}

/* ===== TOOL PAGE LAYOUT ===== */
.tool-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.tool-layout.full { grid-template-columns: 1fr; }

.page-title { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.75rem; }
.page-subtitle { color: var(--text-muted); margin-bottom: 2rem; }

/* ===== FLASH MESSAGES ===== */
.flash { padding: 1rem 1.5rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-size: 0.9rem; font-weight: 500; }
.flash-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: var(--success); }
.flash-danger { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--danger); }
.flash-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: var(--warning); }
.flash-info { background: rgba(255,107,53,0.1); border: 1px solid rgba(255,107,53,0.3); color: var(--primary); }

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border); padding: 3rem 1.5rem; text-align: center;
    color: var(--text-muted); font-size: 0.85rem;
}

/* ===== LOADING SPINNER ===== */
.spinner { display: none; text-align: center; padding: 2rem; }
.spinner.active { display: block; }
.spinner::after {
    content: ''; display: inline-block; width: 32px; height: 32px;
    border: 3px solid var(--border); border-top-color: var(--primary);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .features-grid, .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .tool-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.25rem; }
    .hero p { font-size: 1.05rem; }
    .navbar-links { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--bg-dark); border-bottom: 1px solid var(--border); flex-direction: column; padding: 1.5rem; gap: 1rem; }
    .navbar-links.open { display: flex; }
    .mobile-toggle { display: block; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .container, .container-sm, .container-md { padding: 1.5rem 1rem; }
}

@media (max-width: 480px) {
    .hero { padding: 3rem 1rem 2rem; }
    .hero h1 { font-size: 1.85rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr; }
}
