/* Custom CSS for Creator Suite - Convatools Premium Theme */
:root {
    --bg-main: #060813;
    --bg-card: #0c0e25;
    --bg-sidebar: #060813;
    --border-color: rgba(123, 97, 255, 0.15);
    --text-primary: #FFFFFF;
    --text-secondary: #8e9bb4;
    --accent-color: #7b61ff;
    --accent-hover: #6347d9;
    --accent-glow: rgba(123, 97, 255, 0.2);
    --gold-color: #ffd000;
    --green-color: #00f09b;
    --purple-color: #7b61ff;
    --red-color: #ff3366;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-lg: 12px;
    --radius-md: 8px;
    --shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.5);
}

.light-theme {
    --bg-main: #F3F4F6;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-sidebar: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 0, 0, 0.08);
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --accent-color: #2563EB;
    --accent-hover: #1D4ED8;
    --accent-glow: rgba(37, 99, 230, 0.15);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(123, 97, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 51, 102, 0.06) 0%, transparent 40%);
}

.app-container {
    display: flex;
    flex-direction: column; /* Stack top-navbar, main content and footer vertically */
    min-height: 100vh;
}

/* Top Navbar Layout */
.top-navbar {
    width: 100%;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px; /* Reduce padding from 15px to 10px to shift up */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 60px; /* Force compact header height */
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    font-size: 20px;
    background: linear-gradient(135deg, #7b61ff, #ff3366);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-menu-top {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.menu-list-top {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.menu-item {
    padding: 6px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border-left: none; /* Reset sidebar border style */
}

.menu-item:hover, .menu-item.active {
    color: var(--text-primary);
    background: var(--accent-glow);
    border-bottom: 2px solid var(--accent-color);
    border-left: none;
}

/* Dropdown Menu styling matching Tubepilot */
.dropdown-trigger:hover > .dropdown-menu-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(-50%);
}

.dropdown-menu-list {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0f1626;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 0;
    width: 260px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 2000;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-menu-list::-webkit-scrollbar {
    width: 4px;
}

.dropdown-menu-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.dropdown-menu-list li {
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.dropdown-menu-list li:hover {
    color: var(--text-primary);
    background: rgba(123, 97, 255, 0.1);
}

/* Main Content Layout Adjustments for Top Navbar */
.main-content {
    flex-grow: 1;
    width: 100%;
    min-height: 100vh;
    padding: 110px 40px 40px 40px; /* Reduce padding space from 180px to 110px now that navbar is compact */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 0 !important; /* Reset sidebar left margin offset */
}

/* Legacy top-bar stylings */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin-bottom: 40px;
}

.tool-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-align: center;
    width: 100%;
}

.theme-switch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    position: absolute;
    right: 40px;
    top: 40px;
}

.theme-switch:hover {
    background: rgba(255, 255, 255, 0.08);
}

.content-body {
    flex-grow: 1;
    width: 100%;
    max-width: 1100px;
}

.tool-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tool-section.active {
    display: block;
}

/* Elements / Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.search-card {
    border: 1px solid var(--border-color); /* Remove top border accent line to match Flowshorts */
    max-width: 600px; /* Narrow centered form */
    margin: 0 auto 30px auto;
}

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

input[type="text"], input[type="url"], input[type="number"], select, textarea {
    width: 100%;
    background: #060813; /* Deep black inside form controls */
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #ff3366);
    color: #ffffff;
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(123, 97, 255, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-success {
    background: var(--green-color);
    color: #ffffff;
}

.btn-success:hover {
    background: #059669;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.block-btn {
    display: flex;
    width: 100%;
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}

.gap-10 {
    gap: 10px;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
}

.margin-top { margin-top: 24px; }
.hidden { display: none !important; }

/* Colors */
.text-gold { color: var(--gold-color); }
.text-blue { color: var(--accent-color); }
.text-green { color: var(--green-color); }
.text-purple { color: var(--purple-color); }

/* Keyword UI */
.keyword-list, .tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.keyword-item {
    background: rgba(123, 97, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.keyword-item:hover {
    background: var(--accent-glow);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

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

/* File Upload */
.file-upload-wrapper {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s;
}

.file-upload-wrapper:hover {
    border-color: var(--accent-color);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 40px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.img-preview, .thumb-preview {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-top: 14px;
}

/* Text area & items */
.premium-textarea {
    width: 100%;
    background: #060813;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    resize: vertical;
}

.list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.list-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Stat Box */
.stat-box {
    background: #0c0e25;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.stat-val {
    display: block;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-color);
}

.stat-lbl {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    display: block;
}

/* SEO Checker */
.seo-score-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.seo-gauge {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 8px solid var(--border-color);
    border-top-color: var(--accent-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.seo-percentage {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
}

.seo-label {
    font-size: 9px;
    color: var(--text-secondary);
}

.seo-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
}

.checklist-item.pass i { color: var(--green-color); }
.checklist-item.fail i { color: var(--red-color); }

/* Title Analyzer score display */
.score-circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.score-display {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--accent-glow);
    border: 4px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.analysis-feedback h3 {
    font-family: var(--font-heading);
    margin-bottom: 14px;
}

.analysis-feedback ul {
    padding-left: 20px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Channel Header */
.channel-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.channel-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #0F1626;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 20px;
}

.close-btn {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
}

.api-key-help {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-top: 12px;
}

.api-key-help a {
    color: var(--accent-color);
    text-decoration: none;
}

.api-key-help a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Mobile Layout */
/* Responsive Mobile Layout */
.mobile-menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
}

/* Split-screen Authentication Styling (OneUp Replica) */
.split-auth-container {
    display: flex;
    min-height: 550px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #1e293b;
    margin: 40px auto;
}

.auth-graphic-side {
    flex: 1.1;
    background: linear-gradient(135deg, #0e1e47, #060e26);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.auth-graphic-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

.auth-graphic-content h1 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 40px;
}

.floating-icons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
}

.icon-hexagon {
    width: 60px;
    height: 60px;
    background: #1e293b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.icon-hexagon:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Hexagon social colors */
.red-hex { background: #e60023; }
.blue-hex { background: #0077b5; }
.cyan-hex { background: #1da1f2; }
.dark-hex { background: #010101; }
.red-light-hex { background: #c13584; }
.blue-dark-hex { background: #1877f2; }
.red-bright-hex { background: #ff0000; }

.auth-form-side {
    flex: 0.9;
    background: #ffffff;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}

.auth-subtitle {
    color: #64748b;
    font-size: 13.5px;
    margin-bottom: 24px;
}

.auth-input-label {
    color: #334155;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.auth-styled-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    background: #f8fafc;
    color: #1e293b;
    transition: border-color 0.2s, background-color 0.2s;
}

.auth-styled-input:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

@media (max-width: 992px) {
    .split-auth-container {
        flex-direction: column;
        margin: 20px auto;
    }
    .auth-graphic-side {
        padding: 30px;
    }
    .auth-graphic-content h1 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    .auth-form-side {
        padding: 30px;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    .mobile-menu-toggle {
        display: block;
    }
}

/* Footer Section Styling */
.app-footer {
    width: 100%;
    background: #090d16;
    border-top: 1px solid var(--border-color);
    padding: 60px 40px 30px 40px;
    margin-top: auto;
    color: var(--text-primary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.8fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Infinite Marquee Scrolling Animation */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    display: flex;
    position: relative;
    padding: 10px 0;
}

.marquee-content {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scrollMarquee 25s linear infinite;
}

/* Pause moving on hover */
.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

.testimonial-card {
    flex-shrink: 0;
    width: 320px;
    background: #ffffff;
    color: #1e293b;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    text-align: left;
}

@keyframes scrollMarquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        /* Shift left by half the contents width (since we duplicated) */
        transform: translate3d(-50%, 0, 0);
    }
}
