/*
Theme Name: FreeVideo Complete
Theme URI: https://freevideo.gr
Description: Professional video tools with server-side processing
Version: 3.0.0
Author: FreeVideo.gr
Text Domain: freevideo
*/

:root {
    --primary: #ef4444;
    --primary-dark: #dc2626;
    --secondary: #f97316;
    --gradient: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    --dark: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --lighter: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
    --success-bg: #d1fae5;
    --error: #ef4444;
    --error-bg: #fee2e2;
    --shadow: 0 10px 40px rgba(239,68,68,0.15);
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.08);
    --radius: 16px;
    --radius-sm: 8px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; 
    font-size: 16px; 
    line-height: 1.6; 
    color: var(--dark); 
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 700; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; }

/* ===== HEADER ===== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(239,68,68,0.3);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.main-nav ul {
    display: flex;
    gap: 35px;
}

.main-nav a {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}

.main-nav a:hover::after { width: 100%; }

.lang-switch {
    display: flex;
    gap: 5px;
    background: var(--light);
    padding: 4px;
    border-radius: 10px;
}

.lang-switch a {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
    transition: all 0.3s;
}

.lang-switch a.active,
.lang-switch a:hover {
    background: var(--gradient);
    color: white;
}

/* ===== HERO ===== */
.hero {
    background: var(--gradient);
    padding: 120px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: var(--primary-dark);
}

.btn-gradient {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(239,68,68,0.3);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239,68,68,0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ===== TOOLS GRID ===== */
.tools-section { background: var(--lighter); }

.category-title {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.tool-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.tool-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(239,68,68,0.25);
}

.tool-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.tool-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.tool-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.tool-card .btn {
    width: 100%;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 35px 25px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.feature-card:hover { transform: translateY(-5px); }

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--primary);
}

.feature-card h4 {
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--dark);
    color: white;
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    margin-top: 15px;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
}

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

.footer-col a {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.footer-col a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--gradient);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.page-header-icon {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.page-header-icon svg {
    width: 50px;
    height: 50px;
    fill: white;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== TOOL BOX ===== */
.tool-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.tool-box {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    margin-top: -50px;
    position: relative;
}

.upload-area {
    border: 3px dashed #e2e8f0;
    border-radius: var(--radius);
    padding: 60px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background: #fef2f2;
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--gray);
}

.upload-area h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.upload-area p {
    color: var(--gray);
}

.upload-formats {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light);
    font-size: 0.85rem;
    color: var(--gray-light);
}

/* File Info */
.file-info {
    background: var(--light);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-info-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.file-info-details h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--dark);
    word-break: break-all;
}

.file-info-details p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

/* Options Panel */
.options-panel {
    background: var(--lighter);
    border-radius: var(--radius);
    padding: 30px;
    margin: 25px 0;
}

.options-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.option-group {
    margin-bottom: 20px;
}

.option-group:last-of-type { margin-bottom: 0; }

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 0.95rem;
}

.option-group input[type="text"],
.option-group input[type="number"],
.option-group input[type="email"],
.option-group select,
.option-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.3s;
    background: white;
}

.option-group input:focus,
.option-group select:focus,
.option-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.option-group input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #e2e8f0;
    border-radius: 4px;
    outline: none;
}

.option-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--gradient);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(239,68,68,0.3);
}

/* Progress */
.progress-section {
    margin: 30px 0;
    text-align: center;
}

.progress-bar {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

.progress-text {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Result Section */
.result-section {
    background: var(--success-bg);
    border: 1px solid var(--success);
    border-radius: var(--radius);
    padding: 35px;
    text-align: center;
    margin-top: 25px;
}

.result-section h3 {
    color: #065f46;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.result-section p {
    color: #047857;
    margin-bottom: 20px;
}

.result-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Error/Success Messages */
.error-box {
    background: var(--error-bg);
    border: 1px solid var(--error);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 20px 0;
    color: #991b1b;
}

.success-box {
    background: var(--success-bg);
    border: 1px solid var(--success);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 20px 0;
    color: #065f46;
    text-align: center;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    padding: 60px 0;
}

.page-content .container {
    max-width: 800px;
}

.content-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 40px;
    margin-bottom: 30px;
}

.content-card h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light);
}

.content-card h3 {
    color: var(--dark);
    font-size: 1.2rem;
    margin: 25px 0 10px;
}

.content-card p {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.7;
}

.content-card ul {
    margin: 15px 0;
    padding-left: 25px;
    list-style: disc;
}

.content-card li {
    color: var(--gray);
    margin-bottom: 10px;
    line-height: 1.6;
}

/* FAQ */
.faq-list { margin-top: 30px; }

.faq-item {
    background: white;
    border-radius: var(--radius);
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.faq-item h3 {
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
}

/* How It Works */
.how-it-works {
    margin-top: 60px;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.step-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: white;
    padding: 20px;
    z-index: 9999;
    display: none;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.cookie-banner.show { display: block; }

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    color: rgba(255,255,255,0.8);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero { padding: 80px 0; }
    .main-nav { display: none; }
    .tools-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .tool-box { margin: 20px; padding: 25px; }
    .section { padding: 50px 0; }
    .section-title { font-size: 1.8rem; }
}
