/**
 * AppWT Transcribe - Premium Dark Theme
 *
 * @package AppWT_Transcribe
 * @version 2.0.0
 * @copyright 2026 AppWT Web & AI Solutions (AppWT LLC)
 */

/* CSS Variables - Premium Dark Theme */
:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --gold: #D4AF37;
    --gold-light: #e8c84a;
    --gold-dark: #b8962f;
    --silver: #c0c0c0;
    --silver-light: #e0e0e0;
    --text: #ffffff;
    --text-muted: #888888;
    --text-dim: #666666;
    --border: #2a2a2a;
    --border-light: #3a3a3a;
    --success: #4caf50;
    --error: #f44336;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 30px rgba(212, 175, 55, 0.3);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-dark);
    min-height: 100vh;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #000;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 40px rgba(212, 175, 55, 0.5);
    color: #000;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: #000;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-light);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
}

/* Header */
.site-header {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

/* MASSIVE LOGO on Desktop */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 271px;
    width: auto;
    border-radius: 8px;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.3);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    color: #c0c0c0; /* Silver */
    padding: 10px 18px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

/* User nav link with name */
.main-nav .user-nav-link {
    color: var(--gold);
    font-weight: 600;
}

.main-nav .user-nav-link .user-icon {
    margin-right: 4px;
}

.main-nav a:active {
    transform: scale(0.97);
}

/* Gold underline on hover */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.main-nav a:hover::after {
    width: 50%;
}

/* Nav buttons */
.main-nav .btn {
    padding: 10px 20px;
}

.main-nav .btn.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #000;
}

.main-nav .btn.btn-primary::after {
    display: none;
}

.main-nav .btn.btn-outline {
    border-color: var(--border-light);
    color: var(--text-muted);
}

.main-nav .btn.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle grid pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.share-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
    transform: translateY(-2px);
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

/* Upload Box */
.upload-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 40px;
    margin-top: 20px;
    border: 1px solid var(--border);
}

.upload-area {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.upload-icon {
    color: var(--gold);
    margin-bottom: 20px;
}

.upload-area h3 {
    margin-bottom: 8px;
    color: var(--text);
}

.upload-area p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn-upload {
    margin-bottom: 20px;
}

.upload-info {
    font-size: 0.875rem;
    color: var(--text-dim);
}

/* Upload Progress */
.upload-progress {
    padding: 30px;
}

.file-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.file-name {
    font-weight: 600;
    word-break: break-all;
    color: var(--text);
}

.file-size {
    color: var(--text-muted);
}

.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    color: var(--text-muted);
}

/* Processing Status */
.processing-status {
    text-align: center;
    padding: 60px 40px;
}

/* Progress Ring */
.progress-ring-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    stroke: var(--border);
}

.progress-ring-circle {
    stroke: var(--gold);
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.5s ease;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

.progress-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.processing-status h3 {
    margin-bottom: 8px;
    color: var(--text);
}

.processing-status p {
    color: var(--text-muted);
}

/* Result Box */
.result-box {
    padding: 30px;
}

.result-box h3 {
    color: var(--success);
    margin-bottom: 20px;
    text-align: center;
}

.result-preview {
    margin-bottom: 24px;
}

.result-preview textarea {
    width: 100%;
    height: 250px;
    padding: 16px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    line-height: 1.7;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    resize: vertical;
    background: var(--bg-darker);
    color: var(--text);
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Dropdown */
.download-options {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 180px;
    display: none;
    z-index: 100;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text);
}

.dropdown-menu a:hover {
    background: var(--bg-card-hover);
    color: var(--gold);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-dark);
}

.features h2 {
    text-align: center;
    margin-bottom: 60px;
    color: var(--gold);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 36px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.feature-icon {
    color: var(--gold);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--text);
}

.feature-card p {
    color: var(--text-muted);
}

/* Formats Section */
.formats {
    padding: 80px 0;
    background: var(--bg-darker);
}

.formats h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--gold);
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.format-group h3 {
    margin-bottom: 16px;
    text-align: center;
    color: var(--text);
}

.format-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.format-badge {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta h2 {
    color: var(--gold);
    margin-bottom: 16px;
    position: relative;
}

.cta p {
    margin-bottom: 30px;
    color: var(--text-muted);
    position: relative;
}

/* Footer */
.site-footer {
    background: var(--bg-darker);
    color: var(--text);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand img {
    margin-bottom: 16px;
    border-radius: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-contact p {
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--gold);
}

.footer-map iframe {
    border-radius: 12px;
    border: 1px solid var(--border);
}

.footer-links h4 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-certifications {
    margin-top: 10px;
}

.footer-certifications span {
    margin: 0 15px;
    color: var(--gold);
    opacity: 0.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    .hero h1 { font-size: 2rem; }

    /* Header scrolls with page on mobile */
    .site-header {
        position: relative !important;
        top: auto !important;
    }

    /* MASSIVE LOGO ON MOBILE - Top Center */
    .header-inner {
        flex-direction: column;
        gap: 16px;
        padding: 20px 0;
    }

    .logo {
        order: -1;
    }

    .logo img {
        height: auto;
        width: 100%;
        max-width: 300px;
        border-radius: 8px;
        display: block;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        margin: 0 auto;
    }

    .main-nav {
        display: none;
        width: 100%;
        background: var(--bg-card);
        padding: 20px;
        border-radius: var(--radius);
        margin-top: 10px;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 8px;
    }

    .main-nav a {
        display: block;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1100;
    }

    .hero {
        padding: 40px 0 60px;
    }

    .upload-box {
        padding: 20px;
    }

    .upload-area {
        padding: 40px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions .btn {
        width: 100%;
    }

    .share-buttons {
        flex-wrap: wrap;
    }
}

/* Large screens - even bigger logo */
@media (min-width: 1200px) {
    .logo img {
        height: 271px !important;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* Page Hero (for subpages) */
.page-hero {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero h1 {
    color: var(--gold);
    margin-bottom: 8px;
    position: relative;
}

.page-hero p {
    color: var(--text-muted);
    position: relative;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    color: #69f0ae;
    border: 1px solid rgba(76, 175, 80, 0.3);
}
