/* ==========================================================================
   AUDIOEXTRACT PRO - ULTRA-PREMIUM GLASSMORPHISM STYLESHEET
   ========================================================================== */

:root {
    --bg-main: #060911;
    --bg-card: rgba(14, 22, 36, 0.75);
    --border-card: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(0, 242, 254, 0.4);
    
    --primary: #00f2fe;
    --primary-glow: rgba(0, 242, 254, 0.4);
    --accent: #4facfe;
    --accent-purple: #7928ca;
    --accent-pink: #ff0080;
    --success: #00e676;
    --danger: #ff1744;

    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-main: 0 20px 50px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Animated Ambient Glows */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    top: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, var(--accent-purple) 100%);
}

.bg-glow-2 {
    bottom: -150px;
    right: -100px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-pink) 0%, var(--primary) 100%);
}

/* Container */
.app-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 20px 24px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main);
}

/* Header & Navigation */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.brand-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border-glow);
    box-shadow: 0 0 20px var(--primary-glow);
    transition: transform 0.3s ease;
}

.logo:hover .brand-logo-img {
    transform: scale(1.08) rotate(3deg);
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--primary);
}

.logo-text small {
    font-size: 0.65rem;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 4px;
    font-weight: 800;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 30px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-nav a:hover, .header-nav a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.privacy-badge {
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 35px;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #ffffff 50%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Settings Bar */
.settings-card {
    padding: 24px;
    margin-bottom: 30px;
}

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

}

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

.setting-item label i {
    color: var(--primary);
    margin-right: 4px;
}

.custom-select, .custom-input, .custom-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(6, 9, 17, 0.6);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.custom-select:focus, .custom-input:focus, .custom-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.unit-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 600;
}

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

.custom-range {
    flex: 1;
    accent-color: var(--primary);
}

/* Advanced Accordion Toggle */
.advanced-toggle-details {
    margin-top: 20px;
    border-top: 1px solid var(--border-card);
    padding-top: 16px;
}

.advanced-toggle-summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.advanced-toggle-summary::-webkit-details-marker {
    display: none;
}

.advanced-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

/* Upload Zone */
.upload-section {
    margin-bottom: 35px;
}

.drop-zone {
    padding: 50px 30px;
    text-align: center;
    border: 2px dashed rgba(0, 242, 254, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(0, 242, 254, 0.04);
    transform: translateY(-2px);
}

.file-input-hidden {
    display: none;
}

.upload-icon-pulse {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(0, 242, 254, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.2rem;
    box-shadow: 0 0 30px var(--primary-glow);
    animation: pulse 2.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 20px var(--primary-glow); }
    50% { transform: scale(1.08); box-shadow: 0 0 40px var(--primary-glow); }
    100% { transform: scale(1); box-shadow: 0 0 20px var(--primary-glow); }
}

.drop-zone h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.drop-zone p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.supported-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.supported-tags span {
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-card);
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--text-muted);
}

/* Buttons */
.btn-primary, .btn-success, .btn-outline-danger {
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #060911;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--primary-glow);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #00b0ff);
    color: #060911;
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 230, 118, 0.5);
}

.btn-outline-danger {
    background: rgba(255, 23, 68, 0.1);
    border: 1px solid rgba(255, 23, 68, 0.3);
    color: var(--danger);
}

.btn-outline-danger:hover {
    background: rgba(255, 23, 68, 0.2);
}

.btn-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-card);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-circle:hover {
    color: var(--danger);
    background: rgba(255, 23, 68, 0.15);
    border-color: rgba(255, 23, 68, 0.3);
}

/* Queue Section */
.queue-section {
    margin-bottom: 35px;
}

.queue-section.hidden {
    display: none;
}

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

.queue-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
}

.queue-actions {
    display: flex;
    gap: 12px;
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.queue-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.queue-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.file-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 242, 254, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
}

.file-meta h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.file-meta span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

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

.badge-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.status-ready { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }
.status-converting { background: rgba(0, 242, 254, 0.15); color: var(--primary); }
.status-done { background: rgba(0, 230, 118, 0.15); color: var(--success); }
.status-error { background: rgba(255, 23, 68, 0.15); color: var(--danger); }

/* Progress Bar */
.progress-container.hidden { display: none; }
.progress-info { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; }
.progress-bar-track { height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--success)); width: 0%; transition: width 0.2s ease; }

.audio-player-preview audio { width: 100%; height: 38px; border-radius: 20px; }

/* SEO Guide & Features Grid */
.seo-guide-section, .features-grid, .faq-section { margin-bottom: 35px; }
.seo-guide-section { padding: 30px; }
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700; margin-bottom: 24px; }
.section-title i { color: var(--primary); margin-right: 8px; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step-card { background: rgba(6, 9, 17, 0.5); border: 1px solid var(--border-card); padding: 20px; border-radius: var(--radius-md); position: relative; }
.step-number { width: 32px; height: 32px; background: var(--primary); color: #060911; font-weight: 800; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-card { padding: 24px; }
.feature-icon { font-size: 1.8rem; color: var(--primary); margin-bottom: 14px; }
.feature-card h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); }

/* FAQ Accordion */
.faq-section { padding: 30px; }
.faq-container { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: rgba(6, 9, 17, 0.5); border: 1px solid var(--border-card); border-radius: var(--radius-md); padding: 16px 20px; }
.faq-question { font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { margin-top: 10px; font-size: 0.9rem; color: var(--text-muted); border-top: 1px solid var(--border-card); padding-top: 10px; }

/* In-Depth Educational Article Section */
.article-section { padding: 35px; margin-bottom: 35px; }
.article-content h2 { font-size: 1.5rem; font-weight: 700; margin: 24px 0 12px; color: var(--primary); }
.article-content h3 { font-size: 1.2rem; font-weight: 600; margin: 18px 0 8px; }
.article-content p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 14px; }
.article-content ul, .article-content ol { margin-left: 20px; color: var(--text-muted); margin-bottom: 14px; }
.article-content li { margin-bottom: 6px; }

.tech-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.9rem; }
.tech-table th, .tech-table td { padding: 12px 16px; border: 1px solid var(--border-card); text-align: left; }
.tech-table th { background: rgba(0, 242, 254, 0.1); color: var(--primary); font-weight: 700; }
.tech-table td { background: rgba(6, 9, 17, 0.4); color: var(--text-muted); }

.info-callout { background: rgba(0, 242, 254, 0.08); border-left: 4px solid var(--primary); padding: 16px; border-radius: 8px; margin: 20px 0; color: var(--text-muted); font-size: 0.92rem; }

/* Legal Pages & Forms */
.legal-content { padding: 40px; margin-bottom: 35px; }
.legal-content h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; }
.legal-section { margin-top: 28px; }
.legal-section h2 { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.legal-section p, .legal-section ul { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 12px; }
.legal-section ul { margin-left: 20px; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 24px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-group label i { color: var(--primary); }

.contact-info-card { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.contact-meta-item { display: flex; align-items: flex-start; gap: 14px; font-size: 0.9rem; }
.contact-meta-item i { color: var(--primary); font-size: 1.2rem; margin-top: 3px; }
.contact-meta-item strong { display: block; color: #ffffff; }
.contact-meta-item span { color: var(--text-muted); }

/* About Page Highlights */
.about-highlights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 20px; }
.about-card { background: rgba(6, 9, 17, 0.5); border: 1px solid var(--border-card); padding: 18px; border-radius: var(--radius-md); text-align: center; }
.about-card i { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }
.about-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.about-card p { font-size: 0.82rem; color: var(--text-muted); }

/* AdSense Slot Containers */
.ad-container { margin: 25px 0; text-align: center; overflow: hidden; }
.ad-placeholder { background: rgba(255, 255, 255, 0.03); border: 1px dashed rgba(255, 255, 255, 0.15); border-radius: var(--radius-md); padding: 16px; min-height: 90px; display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 700px; padding: 18px 24px; z-index: 9999; }
.cookie-banner-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-banner-content p { font-size: 0.85rem; color: var(--text-muted); flex: 1; }
.cookie-banner-content a { color: var(--primary); text-decoration: underline; }

/* Footer */
.app-footer { margin-top: auto; padding: 30px 0 10px; text-align: center; font-size: 0.85rem; color: var(--text-dim); border-top: 1px solid var(--border-card); }
.footer-links { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); text-decoration: none; margin: 0 6px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--primary); }

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .app-header { flex-direction: column; align-items: flex-start; }
    .queue-card-top { flex-direction: column; align-items: flex-start; gap: 12px; }
    .card-actions { width: 100%; justify-content: space-between; }
    .legal-content, .article-section { padding: 20px; }
}
