/*
Theme Name: OmniLoad
Theme URI: https://omniload.com
Author: OmniLoad Team
Author URI: https://omniload.com
Description: A modern WordPress theme for OmniLoad media downloader. Features premium design with dark mode, glassmorphism effects, and responsive layout.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: omniload
Tags: video-downloader, media, modern, dark-mode, responsive

This theme, like WordPress, is licensed under the GPL.
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* CSS Variables for theming */
:root {
    /* Light Mode Colors */
    --omni-primary: #667eea;
    --omni-primary-dark: #5568d3;
    --omni-secondary: #764ba2;
    --omni-accent: #f093fb;

    --omni-bg-primary: #ffffff;
    --omni-bg-secondary: #f8f9fa;
    --omni-bg-card: rgba(255, 255, 255, 0.95);
    --omni-bg-input: #ffffff;

    --omni-text-primary: #1a202c;
    --omni-text-secondary: #4a5568;
    --omni-text-muted: #718096;

    --omni-border: #e2e8f0;
    --omni-shadow: rgba(0, 0, 0, 0.1);
    --omni-shadow-lg: rgba(0, 0, 0, 0.15);

    --omni-success: #48bb78;
    --omni-error: #f56565;
    --omni-warning: #ed8936;

    /* Gradients */
    --omni-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --omni-gradient-bg: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --omni-bg-primary: #1a1a2e;
    --omni-bg-secondary: #16213e;
    --omni-bg-card: rgba(30, 30, 46, 0.95);
    --omni-bg-input: #16213e;

    --omni-text-primary: #f1f5f9;
    --omni-text-secondary: #cbd5e1;
    --omni-text-muted: #94a3b8;

    --omni-border: #334155;
    --omni-shadow: rgba(0, 0, 0, 0.5);
    --omni-shadow-lg: rgba(0, 0, 0, 0.7);

    /* Dark purple gradient - same style as light mode */
    --omni-gradient-bg: linear-gradient(135deg, #4a1d96 0%, #5a2d7e 100%);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    transition: background 0.3s ease;
    background: var(--omni-gradient-bg) !important;
    min-height: 100vh;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: var(--omni-text-primary) !important;
    background: var(--omni-gradient-bg) !important;
    min-height: 100vh;
    transition: all 0.3s ease;
    line-height: 1.6;
    margin: 0 !important;
    padding: 0 !important;
}

/* Override WordPress defaults */
body.omniload-theme {
    background: var(--omni-gradient-bg) !important;
}

/* Container */
.omniload-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Ad Zones */
.ad-zone {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    min-height: 90px;
}

.ad-top {
    margin-bottom: 30px;
    min-height: 90px;
}

.ad-bottom {
    margin-top: 30px;
    min-height: 90px;
}

.ad-sidebar {
    position: sticky;
    top: 20px;
    min-height: 600px;
}

.ad-placeholder {
    background: var(--omni-bg-secondary);
    border: 2px dashed var(--omni-border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: var(--omni-text-muted);
    width: 100%;
    max-width: 300px;
}

/* Top Controls - Language & Theme Toggle */
body .top-controls,
.top-controls {
    position: absolute !important;
    top: 24px !important;
    right: 24px !important;
    left: auto !important;
    z-index: 9999 !important;
    display: flex !important;
    gap: 12px;
    align-items: center;
    pointer-events: auto;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--omni-text-primary) !important;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--omni-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.language-btn .flag {
    font-size: 1.2rem;
}

.language-btn .dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.language-switcher.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.language-dropdown.active {
    display: flex;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--omni-text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-option.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.lang-option .flag {
    font-size: 1.2rem;
}

/* Theme Toggle - Original Design */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--omni-text-primary) !important;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--omni-primary);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

body.dark-mode .theme-toggle .sun-icon {
    display: none;
}

body.dark-mode .theme-toggle .moon-icon {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .omniload-wrapper {
        padding-top: 100px !important;
        /* Increased to avoid overlap */
    }

    .top-controls {
        top: 12px !important;
        right: 12px !important;
        gap: 8px !important;
        padding: 6px;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        border-radius: 16px;
    }

    .language-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .language-btn .lang-text {
        display: none;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }
}

/* Privacy Button */
.privacy-btn {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px;
    color: var(--omni-text-primary) !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.privacy-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--omni-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .privacy-btn .privacy-text {
        display: none;
    }

    .privacy-btn {
        padding: 10px;
    }
}

/* Hero Section */
.omniload-hero {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.logo-icon {
    animation: float 3s ease-in-out infinite;
}

/* Custom logo image styling */
.custom-logo-img,
.default-logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.logo-text {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7dd3fc 0%, #3b82f6 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--omni-text-secondary);
    margin: 8px 0;
}

.hero-description {
    font-size: 1rem;
    color: var(--omni-text-muted);
    margin: 16px 0 24px;
}

/* Platform Badges */
.platform-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--omni-bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--omni-border);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--omni-text-secondary);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--omni-shadow);
    border-color: var(--omni-primary);
}

/* Badge icon image styling - Force small size */
.platform-badges .badge .badge-icon-img,
img.badge-icon-img {
    width: 20px !important;
    height: 20px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    display: inline-block !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Logo image styling */
.logo-icon .default-logo-img,
.logo-icon .custom-logo-img,
.default-logo-img,
.custom-logo-img {
    width: 64px !important;
    height: 64px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: contain !important;
}

/* Main Content Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

/* Full width layout (no sidebar) */
.main-column-full {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar-column {
        display: none;
    }
}

.main-column {
    min-width: 0;
}

/* Hide WordPress default widgets */
.widget-area,
#secondary,
.sidebar,
aside:not(.sidebar-column) {
    display: none !important;
}

/* Hide WordPress search and other default elements */
.search-form,
.widget_search,
.widget_recent_entries,
.widget_recent_comments,
.widget_archive,
.widget_categories,
.widget_meta {
    display: none !important;
}

/* Input Section */
.input-section {
    background: var(--omni-bg-card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 40px var(--omni-shadow);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .input-group {
        flex-direction: column;
    }
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--omni-text-muted);
    pointer-events: none;
}

.url-input {
    width: 100%;
    padding: 16px 48px 16px 48px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--omni-text-primary);
    background: var(--omni-bg-input);
    border: 2px solid var(--omni-border);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.url-input:focus {
    border-color: var(--omni-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--omni-text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    background: var(--omni-bg-secondary);
    color: var(--omni-text-primary);
}

.extract-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: var(--omni-gradient-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.extract-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.extract-btn:active {
    transform: translateY(0);
}

.extract-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.extract-btn:hover .btn-icon {
    transform: translateY(2px);
}

/* Controls */
.controls {
    display: flex;
    justify-content: flex-end;
}

.icon-btn {
    background: var(--omni-bg-secondary);
    border: 1px solid var(--omni-border);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    color: var(--omni-text-secondary);
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: var(--omni-bg-input);
    color: var(--omni-primary);
    transform: rotate(15deg);
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--omni-bg-card);
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--omni-shadow);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--omni-border);
    border-top-color: var(--omni-primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--omni-text-secondary);
    font-size: 1rem;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--omni-bg-card);
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--omni-shadow);
    border: 2px solid var(--omni-error);
}

.error-icon {
    color: var(--omni-error);
    margin-bottom: 16px;
}

.error-message {
    color: var(--omni-text-primary);
    font-size: 1rem;
    margin-bottom: 20px;
}

.retry-btn {
    padding: 12px 24px;
    background: var(--omni-error);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.4);
}

/* Video Info */
.video-info {
    background: var(--omni-bg-card);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 40px var(--omni-shadow);
}

.video-header {
    display: flex;
    gap: 20px;
}

@media (max-width: 640px) {
    .video-header {
        flex-direction: column;
    }
}

.video-thumbnail {
    width: 200px;
    height: 112px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .video-thumbnail {
        width: 100%;
        height: auto;
    }
}

.video-meta {
    flex: 1;
    min-width: 0;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--omni-text-primary);
    margin: 0 0 12px;
    line-height: 1.4;
}

.video-details {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.platform-tag,
.duration-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--omni-bg-secondary);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--omni-text-secondary);
}

/* Formats Container */
.formats-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.format-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    background: var(--omni-bg-card);
    border: 2px solid var(--omni-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.format-item:hover {
    border-color: var(--omni-primary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px var(--omni-shadow);
}

.format-info {
    flex: 1;
    min-width: 0;
}

.format-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--omni-text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.format-size {
    font-size: 0.875rem;
    color: var(--omni-text-muted);
}

.download-btn {
    padding: 12px 24px;
    background: var(--omni-gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

/* How It Works Section */
.how-it-works-section {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 0 20px;
}

.how-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--omni-text-primary);
    margin-bottom: 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.step-card {
    background: var(--omni-bg-card);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    border: 1px solid var(--omni-border);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--omni-shadow);
    border-color: var(--omni-primary);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--omni-gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.step-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--omni-text-primary);
}

.step-card p {
    color: var(--omni-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Who It's For Section */
.who-its-for-section {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

.who-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--omni-text-primary);
    margin-bottom: 40px;
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.who-card {
    background: var(--omni-bg-card);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 1px solid var(--omni-border);
    transition: all 0.3s ease;
}

.who-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px var(--omni-shadow);
}

.who-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.who-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--omni-text-primary);
}

.who-card p {
    color: var(--omni-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* RTL support for Who Card */
[dir="rtl"] .who-card {
    text-align: right;
    flex-direction: row-reverse;
}

/* Features Section */
.features-section {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 40px 20px;
}

.features-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--omni-text-primary);
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--omni-bg-card);
    border-radius: 16px;
    border: 1px solid var(--omni-border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--omni-shadow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.feature-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--omni-text-primary);
    margin: 0 0 8px;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--omni-text-muted);
    margin: 0;
}

/* Footer */
.omniload-footer {
    padding: 60px 20px 40px;
    background: var(--omni-bg-card);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--omni-border);
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
}

.footer-section h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--omni-text-primary);
}

.footer-section p {
    color: var(--omni-text-secondary);
    line-height: 1.6;
    max-width: 500px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 16px;
    color: var(--omni-text-secondary);
}

.footer-links a {
    color: var(--omni-text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    vertical-align: middle;
    gap: 4px;
}

.footer-links a:hover {
    color: var(--omni-primary);
    transform: translateY(-1px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--omni-border);
    text-align: center;
}

.omniload-footer p {
    margin: 8px 0;
    color: var(--omni-text-muted);
}

.disclaimer {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .omniload-hero {
        padding-top: 60px !important;
    }

    .logo-text {
        font-size: 2.25rem;
    }

    .logo-container {
        margin-top: 20px;
    }

    .extract-btn .btn-text {
        display: none;
    }

    .features-title {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section p {
        margin: 0 auto;
    }

    .footer-links a {
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.format-item {
    animation: fadeIn 0.3s ease forwards;
}

.format-item:nth-child(1) {
    animation-delay: 0.05s;
}

.format-item:nth-child(2) {
    animation-delay: 0.1s;
}

.format-item:nth-child(3) {
    animation-delay: 0.15s;
}

.format-item:nth-child(4) {
    animation-delay: 0.2s;
}

.format-item:nth-child(5) {
    animation-delay: 0.25s;
}

/* ========================================
   RTL (Right-to-Left) Support for Arabic
   ======================================== */

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* RTL: Keep top controls on RIGHT side (don't flip) */
[dir="rtl"] .top-controls {
    right: 20px !important;
    left: auto !important;
}

/* RTL: Flip flex directions */
[dir="rtl"] .platform-badges {
    direction: rtl;
}

[dir="rtl"] .badge {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-dropdown {
    left: auto;
    right: 0;
}

[dir="rtl"] .lang-option {
    flex-direction: row-reverse;
    text-align: right;
}

/* RTL: Input and form elements */
[dir="rtl"] .url-input-wrapper {
    flex-direction: row-reverse;
}

[dir="rtl"] .url-input {
    text-align: right;
    padding: 16px 48px 16px 48px;
    /* Maintain symmetry, but icons flip */
}

[dir="rtl"] .input-icon {
    left: auto;
    right: 16px;
}

[dir="rtl"] .clear-btn {
    right: auto;
    left: 12px;
}

[dir="rtl"] .extract-btn .btn-icon {
    transform: rotate(180deg);
}

[dir="rtl"] .extract-btn:hover .btn-icon {
    transform: rotate(180deg) translateY(2px);
}

/* RTL: Video Info */
[dir="rtl"] .video-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .video-meta {
    text-align: right;
}

[dir="rtl"] .video-details {
    flex-direction: row-reverse;
}

[dir="rtl"] .format-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .format-info {
    text-align: right;
}

/* RTL: Feature & Step cards */
[dir="rtl"] .feature-card,
[dir="rtl"] .step-card,
[dir="rtl"] .who-card {
    text-align: right;
}

[dir="rtl"] .step-number {
    margin-right: 0;
    margin-left: 0;
    /* Optional: move icon/number if needed */
}

/* RTL: Footer */
[dir="rtl"] .footer-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-section {
    text-align: right;
}

[dir="rtl"] .footer-links {
    padding-right: 0;
}

[dir="rtl"] .footer-links li {
    list-style: none;
}

[dir="rtl"] .top-controls {
    right: auto !important;
    left: 24px !important;
}

[dir="rtl"] .language-dropdown {
    right: auto !important;
    left: 0 !important;
}

[dir="rtl"] .lang-option {
    text-align: right;
    flex-direction: row-reverse;
}

/* RTL: Mobile adjustments */
@media (max-width: 768px) {
    [dir="rtl"] .top-controls {
        right: auto !important;
        left: 12px !important;
    }
}

/* FAQ Section */
.faq-section {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--omni-text-primary);
    margin-bottom: 50px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

@media (max-width: 640px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

.faq-item {
    background: var(--omni-bg-card);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--omni-border);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 30px var(--omni-shadow);
    border-color: var(--omni-primary);
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--omni-text-primary);
    margin-bottom: 15px;
}

.faq-answer {
    color: var(--omni-text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* SEO Text Area */
.seo-text-area {
    margin-top: 100px;
    padding: 60px 40px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    border: 1px solid var(--omni-border);
    text-align: center;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .seo-text-area {
    background: rgba(255, 255, 255, 0.02);
}

.seo-text-area h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--omni-text-primary);
    margin-bottom: 30px;
}

.seo-text-area p {
    font-size: 1.1rem;
    color: var(--omni-text-secondary);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 20px;
}

.seo-text-area strong {
    color: var(--omni-primary);
}

/* ================================
   AdSense Ad Container Styles
   ================================ */

.ad-container {
    max-width: 100%;
    margin: 30px auto;
    padding: 20px;
    background: var(--omni-bg-card);
    border: 1px solid var(--omni-border);
    border-radius: 12px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ad-label {
    font-size: 10px;
    color: var(--omni-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.6;
    font-weight: 500;
}

/* Specific ad positions */
.ad-top-banner {
    margin: 20px auto 30px;
}

.ad-in-content {
    margin: 40px auto;
}

.ad-bottom-banner {
    margin: 40px auto 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ad-container {
        padding: 15px;
        margin: 20px 0;
        min-height: 200px;
    }

    .ad-top-banner {
        margin: 15px 0 20px;
    }

    .ad-in-content {
        margin: 30px 0;
    }

    .ad-bottom-banner {
        margin: 30px 0 15px;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .ad-container {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}