/*
Theme Name: i-CDS 在线文件转换器
Theme URI: https://www.i-cds.com
Author: i-CDS Team
Author URI: https://www.i-cds.com
Description: 高级SaaS风格在线全能文件转换器WordPress主题，支持文档/图片/音频/视频批量转换，视频帧率自定义转换，Kard流体视觉风格，jitter弹性微交互动效。
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: i-cds
Tags: one-column, two-columns, custom-menu, featured-images, translation-ready, custom-logo, custom-colors
*/

/* ===== CSS Variables - Design System ===== */
:root {
    --color-primary: #6B26E8;
    --color-primary-light: #8B5CF6;
    --color-primary-dark: #5B21B6;
    --color-accent: #86E029;
    --color-accent-light: #A3E635;
    --color-bg-gradient: linear-gradient(135deg, #f7f5fc, #f0fcf8);
    --color-dark: #1C1B2E;
    --color-dark-light: #2D2B45;
    --color-text-heading: #111111;
    --color-text-body: #444444;
    --color-text-muted: #888899;
    --color-border: #E8E8F0;
    --color-success: #36D399;
    --color-warning: #FBBD23;
    --color-error: #F87272;
    --color-white: #FFFFFF;
    --color-bg-light: #F9FAFB;

    --font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-size-h1: clamp(32px, 5vw, 56px);
    --font-size-h2: clamp(28px, 4vw, 40px);
    --font-size-h3: clamp(22px, 3vw, 28px);
    --font-size-body: 16px;
    --font-size-small: 14px;

    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 16px 48px rgba(107, 38, 232, 0.12);
    --shadow-button: 0 4px 14px rgba(107, 38, 232, 0.3);

    --container-max: 1280px;
    --transition-fast: 220ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 320ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-elastic: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    line-height: 1.7;
    color: var(--color-text-body);
    background: var(--color-bg-gradient);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); font-weight: 600; }
h3 { font-size: var(--font-size-h3); font-weight: 600; }

p { margin-bottom: 1em; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--color-primary-dark); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol { padding-left: 1.5em; margin-bottom: 1em; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ===== Utility Classes ===== */
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-elastic);
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(107, 38, 232, 0.4);
}

.btn-primary:active {
    transform: translateY(0) scale(0.97);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px) scale(1.03);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-dark);
}

.btn-accent:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px) scale(1.03);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-heading);
}

.btn-ghost:hover {
    background: rgba(107, 38, 232, 0.08);
    color: var(--color-primary);
}

.btn-lg { padding: 18px 40px; font-size: 18px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

.btn:disabled, .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== Navigation ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-normal);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--color-border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text-heading);
    text-decoration: none;
}

.site-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 900;
}

.site-logo span { color: var(--color-primary); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 8px 16px;
    color: var(--color-text-body);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
    background: rgba(107, 38, 232, 0.06);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-heading);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Mobile Nav */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--color-white);
    z-index: 1001;
    padding: 80px 24px 24px;
    transition: right var(--transition-normal);
    overflow-y: auto;
}

.mobile-nav.active { right: 0; }

.mobile-nav a {
    display: block;
    padding: 14px 16px;
    color: var(--color-text-body);
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--radius-md);
    margin-bottom: 4px;
    transition: all var(--transition-fast);
}

.mobile-nav a:hover {
    background: rgba(107, 38, 232, 0.06);
    color: var(--color-primary);
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-text-body);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.mobile-nav-close:hover { background: var(--color-bg-light); }

/* ===== Hero Section ===== */
.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(107, 38, 232, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(134, 224, 41, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: var(--font-size-h1);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content h1 .highlight {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.hero-content h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 12px;
    background: rgba(134, 224, 41, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.hero-content p {
    font-size: 18px;
    color: var(--color-text-body);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    width: 100%;
    max-width: 460px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 32px;
    position: relative;
    transform: rotate(-2deg);
    transition: transform var(--transition-elastic);
}

.hero-card:hover { transform: rotate(0deg) translateY(-8px); }

.hero-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.6;
    z-index: -1;
}

.hero-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.15;
    z-index: -1;
}

.upload-preview {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: 40px 20px;
    text-align: center;
    background: var(--color-bg-light);
    margin-bottom: 20px;
}

.upload-preview-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.upload-preview p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}

.format-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.format-chip {
    padding: 6px 14px;
    background: rgba(107, 38, 232, 0.08);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Floating decorations */
.float-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.float-star {
    width: 24px;
    height: 24px;
    background: var(--color-accent);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: float 6s ease-in-out infinite;
}

.float-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* ===== Stats Section ===== */
.stats-section {
    padding: 40px 0;
    position: relative;
}

.stats-bar {
    background: var(--color-dark);
    border-radius: var(--radius-lg);
    padding: 40px 48px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(107, 38, 232, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 4px;
}

.stat-number .accent { color: var(--color-accent); }

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== Section Common ===== */
.section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-header h2 {
    font-size: var(--font-size-h2);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header h2 .highlight { color: var(--color-primary); }

.section-header p {
    font-size: 17px;
    color: var(--color-text-muted);
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(107, 38, 232, 0.08);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Tools Cards ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tool-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-elastic);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.tool-card:hover::before { transform: scaleX(1); }

.tool-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.tool-icon.doc { background: linear-gradient(135deg, #EEF2FF, #E0E7FF); color: #6366F1; }
.tool-icon.image { background: linear-gradient(135deg, #ECFDF5, #D1FAE5); color: #10B981; }
.tool-icon.audio { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); color: #F59E0B; }
.tool-icon.video { background: linear-gradient(135deg, #FDF2F8, #FCE7F3); color: #EC4899; }

.tool-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--color-text-heading);
}

.tool-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.tool-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(134, 224, 41, 0.15);
    color: #65A30D;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.tool-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.tool-card:hover .tool-arrow {
    background: var(--color-primary);
    color: white;
    transform: translateX(4px);
}

/* ===== Features Section ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 32px 20px;
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-elastic);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 80px 0;
}

.cta-card {
    background: var(--color-dark);
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(107, 38, 232, 0.4) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(134, 224, 41, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-card h2 {
    color: var(--color-white);
    font-size: var(--font-size-h2);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-card h2 .highlight { color: var(--color-accent); }

.cta-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-card .btn { position: relative; z-index: 1; }

/* ===== Footer ===== */
.site-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand .site-logo {
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links a:hover { color: var(--color-accent); }

/* ===== Converter Pages ===== */
.converter-page {
    padding: 120px 0 80px;
}

.converter-header {
    text-align: center;
    margin-bottom: 48px;
}

.converter-header h1 {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 12px;
}

.converter-header h1 .highlight { color: var(--color-primary); }

.converter-header p {
    font-size: 17px;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.converter-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.converter-main {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 32px;
}

.converter-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--color-bg-light);
    position: relative;
    overflow: hidden;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--color-primary);
    background: rgba(107, 38, 232, 0.03);
}

.upload-zone.drag-over::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(107, 38, 232, 0.08) 0%, transparent 70%);
    animation: pulse-bg 1.5s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.upload-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    transition: transform var(--transition-elastic);
}

.upload-zone:hover .upload-icon { transform: scale(1.1); }

.upload-zone h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.upload-zone p {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.upload-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.upload-format-tag {
    padding: 4px 10px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-body);
}

/* File List */
.file-list {
    margin-top: 24px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.file-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.file-icon.pdf { background: #FEE2E2; color: #DC2626; }
.file-icon.doc { background: #DBEAFE; color: #2563EB; }
.file-icon.img { background: #D1FAE5; color: #059669; }
.file-icon.audio { background: #FEF3C7; color: #D97706; }
.file-icon.video { background: #FCE7F3; color: #DB2777; }

.file-info { flex: 1; min-width: 0; }

.file-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.file-meta {
    font-size: 12px;
    color: var(--color-text-muted);
}

.file-status {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.file-status.pending { background: #FEF3C7; color: #92400E; }
.file-status.processing { background: #DBEAFE; color: #1E40AF; }
.file-status.success { background: #D1FAE5; color: #065F46; }
.file-status.error { background: #FEE2E2; color: #991B1B; }

.file-progress {
    width: 100%;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.file-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
    transition: width 0.3s ease;
    animation: progress-glow 2s ease-in-out infinite;
}

@keyframes progress-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.file-remove {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all var(--transition-fast);
    font-size: 18px;
    line-height: 1;
}

.file-remove:hover {
    background: #FEE2E2;
    color: #DC2626;
}

/* Parameter Panel */
.param-panel {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 24px;
}

.param-panel h3 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.param-group {
    margin-bottom: 20px;
}

.param-group:last-child { margin-bottom: 0; }

.param-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: 8px;
}

.param-select,
.param-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    color: var(--color-text-heading);
    background: var(--color-white);
    transition: all var(--transition-fast);
    outline: none;
}

.param-select:focus,
.param-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(107, 38, 232, 0.1);
}

.param-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.param-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    outline: none;
}

.param-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(107, 38, 232, 0.3);
    transition: transform var(--transition-fast);
}

.param-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.param-slider-value {
    min-width: 48px;
    text-align: center;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 14px;
}

/* Toggle Switch */
.param-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--color-border);
    border-radius: 12px;
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--color-white);
    border-radius: 50%;
    transition: transform var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.param-toggle input:checked + .toggle-switch {
    background: var(--color-primary);
}

.param-toggle input:checked + .toggle-switch::after {
    transform: translateX(20px);
}

.param-toggle input { display: none; }

/* FPS Presets */
.fps-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.fps-preset {
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-body);
    transition: all var(--transition-fast);
}

.fps-preset:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.fps-preset.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* Convert Button */
.convert-btn-wrap {
    margin-top: 24px;
}

.convert-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

/* Download Actions */
.download-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.download-actions .btn { flex: 1; min-width: 140px; }

/* Info Box */
.info-box {
    background: rgba(107, 38, 232, 0.05);
    border: 1px solid rgba(107, 38, 232, 0.15);
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 13px;
    color: var(--color-text-body);
    line-height: 1.6;
}

.info-box strong { color: var(--color-primary); }

/* ===== Pricing Page ===== */
.pricing-page {
    padding: 120px 0 80px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-elastic);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.pricing-card.featured {
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover { transform: scale(1.05) translateY(-8px); }

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--color-dark);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-text-heading);
    margin-bottom: 4px;
}

.pricing-price .currency { font-size: 24px; vertical-align: super; }
.pricing-price .period { font-size: 16px; color: var(--color-text-muted); font-weight: 400; }

.pricing-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features .check {
    color: var(--color-success);
    font-weight: 700;
}

.pricing-features .cross {
    color: var(--color-text-muted);
}

/* ===== FAQ Page ===== */
.faq-page {
    padding: 120px 0 80px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--color-text-heading);
    transition: color var(--transition-fast);
}

.faq-question:hover { color: var(--color-primary); }

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-icon {
    background: var(--color-primary);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 15px;
    color: var(--color-text-body);
    line-height: 1.7;
    margin: 0;
}

/* ===== Dashboard ===== */
.dashboard-page {
    padding: 120px 0 80px;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
}

.dashboard-sidebar {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    height: fit-content;
}

.dashboard-user {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
}

.dashboard-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 12px;
}

.dashboard-username {
    font-weight: 600;
    color: var(--color-text-heading);
}

.dashboard-role {
    font-size: 12px;
    color: var(--color-text-muted);
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--color-text-body);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    transition: all var(--transition-fast);
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    background: rgba(107, 38, 232, 0.06);
    color: var(--color-primary);
}

.dashboard-main {
    min-width: 0;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.dashboard-stat-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.dashboard-stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text-heading);
    margin-bottom: 4px;
}

.dashboard-stat-label {
    font-size: 13px;
    color: var(--color-text-muted);
}

.dashboard-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.dashboard-card h2 {
    font-size: 22px;
    margin-bottom: 24px;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
}

.task-table th,
.task-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.task-table th {
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-table tr:last-child td { border-bottom: none; }

/* ===== Toast ===== */
.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 4px solid var(--color-primary);
}

.toast.success { border-left-color: var(--color-success); }
.toast.error { border-left-color: var(--color-error); }
.toast.warning { border-left-color: var(--color-warning); }

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.toast.success .toast-icon { background: #D1FAE5; color: #065F46; }
.toast.error .toast-icon { background: #FEE2E2; color: #991B1B; }
.toast.warning .toast-icon { background: #FEF3C7; color: #92400E; }
.toast.info .toast-icon { background: #DBEAFE; color: #1E40AF; }

.toast-message {
    font-size: 14px;
    color: var(--color-text-heading);
    font-weight: 500;
}

.toast.hide {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .tools-grid,
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .converter-layout { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-8px); }
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-stats { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav,
    .header-actions .btn-ghost { display: none; }
    .menu-toggle { display: flex; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { order: -1; }
    .hero { padding: 100px 0 60px; }
    .section { padding: 60px 0; }
    .stats-bar { padding: 32px 24px; }
    .stat-number { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cta-card { padding: 40px 24px; }
    .converter-main { padding: 20px; }
    .upload-zone { padding: 32px 16px; }
    .tools-grid,
    .features-grid { grid-template-columns: 1fr; }
    .hero-actions { justify-content: center; }
    .hero-content { text-align: center; }
    .hero-content p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .btn { padding: 12px 24px; font-size: 14px; }
    .btn-lg { padding: 14px 28px; font-size: 16px; }
    .header-inner { height: 60px; }
    .hero { padding: 90px 0 40px; }
}

/* ===== WordPress Core Styles ===== */
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--color-text-muted); text-align: center; margin-top: 8px; }
.sticky { display: block; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
