/*
Theme Name: YouTube to MP4 Converter
Theme URI: https://yoursite.com
Description: SEO-optimized WordPress theme for YouTube to MP4 video converter with clean, modern design
Version: 2.0.0
Author: Your Name
Author URI: https://yoursite.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orange-converter
Tags: converter, youtube, mp4, video, clean, modern, seo-friendly
*/

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    --primary-orange: #FF9B0E;
    --secondary-orange: #FFA726;
    --dark-black: #0F0F0F;
    --light-gray: #F5F5F5;
    --text-gray: #606060;
    --white: #FFFFFF;
    --border-gray: #E5E5E5;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 24px rgba(255, 155, 14, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Single Post Variables */
    --color-primary: #FF9B0E;
    --color-primary-hover: #e68a00;
    --color-text: #0F0F0F;
    --color-text-light: #606060;
    --color-text-muted: #9ca3af;
    --color-bg: #ffffff;
    --color-bg-alt: #f9fafb;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;
    --content-width: 720px;
    --wide-width: 1000px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-black);
    line-height: 1.6;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: var(--transition);
}

a:hover, a:focus {
    color: var(--secondary-orange);
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER
   =================================== */
.site-header {
    background-color: var(--white);
    padding: 0;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    padding: 10px;
    border-radius: 50%;
    transition: var(--transition);
}

.site-logo:hover svg {
    transform: scale(1.05);
}

.site-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark-black);
    margin: 0;
}

.site-title a {
    color: inherit;
}

.site-title a:hover {
    color: var(--primary-orange);
}

/* Navigation */
.main-navigation ul,
.main-navigation .nav-menu {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--dark-black);
    font-weight: 500;
    font-size: 15px;
    padding: 10px 18px;
    border-radius: 8px;
    transition: var(--transition);
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation a.active {
    background-color: var(--light-gray);
    color: var(--primary-orange);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.menu-icon {
    width: 24px;
    height: 2px;
    background-color: var(--dark-black);
    transition: var(--transition);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    padding: 60px 0 40px;
}

.hero-content {
    background: var(--white);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: var(--shadow-medium);
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--dark-black);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.converter-box {
    max-width: 800px;
    margin: 0 auto;
}

/* ===================================
   SECTION HEADERS
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-black);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-description {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   FEATURES SECTION - ICON BOXES
   =================================== */
.features-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-box {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-orange));
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-box:hover {
    border-color: var(--primary-orange);
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.feature-box:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-black);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===================================
   HOW IT WORKS SECTION
   =================================== */
.how-it-works-section {
    padding: 80px 0;
    background-color: var(--white);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.step-item {
    position: relative;
    padding: 30px;
    background: var(--light-gray);
    border-radius: 16px;
    transition: var(--transition);
}

.step-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-black);
    margin-bottom: 12px;
}

.step-content p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===================================
   FAQ SECTION
   =================================== */
.faq-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-medium);
}

.faq-question {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-black);
    margin-bottom: 15px;
}

.faq-answer p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background-color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 1px solid var(--border-gray);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: var(--dark-black);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-widget p,
.footer-widget a {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 15px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget a:hover {
    color: var(--primary-orange);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-orange);
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: var(--text-gray);
}

.social-links a:hover svg {
    fill: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-gray);
    color: var(--text-gray);
    font-size: 14px;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 968px) {
    .features-grid,
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-medium);
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul,
    .main-navigation .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation a {
        display: block;
        padding: 15px;
        border-radius: 8px;
    }
    
    .features-grid,
    .steps-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-content {
        padding: 40px 24px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon svg {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 18px;
    }
    
    .site-logo svg {
        width: 35px;
        height: 35px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .feature-box {
        padding: 30px 20px;
    }
    
    .feature-title {
        font-size: 20px;
    }
    
    .step-item {
        padding: 24px;
    }
    
    .faq-item {
        padding: 24px;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-orange);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
}

/* ===================================
   PAGE STYLES
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-black);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 20px;
    line-height: 1.7;
    margin-top: 20px;
}

h1.page-title {
    margin-top: 70px;
    font-size: 3rem;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center {
    text-align: center;
}

.text-orange {
    color: var(--primary-orange);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===================================
   SINGLE POST STYLES
   =================================== */
.single-post-main {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--white);
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
}

@media (min-width: 768px) {
    .single-post-main {
        padding: var(--spacing-2xl) var(--spacing-lg);
    }
}

/* ===================================
   ARTICLE HEADER
   =================================== */
.article-header {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.article-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
}

.article-category a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
}

.article-category a:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.article-date {
    color: var(--color-text-light);
}

.article-title {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 var(--spacing-md);
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.article-excerpt {
    font-size: 1.25rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0 0 var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   AUTHOR INFO IN HEADER
   =================================== */
.article-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.article-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    text-align: left;
}

.author-name {
    display: block;
    font-weight: 600;
    color: var(--color-text);
}

.reading-time {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ===================================
   AVATAR PLACEHOLDER
   =================================== */
.avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    flex-shrink: 0;
}

.avatar-placeholder-lg {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

/* ===================================
   FEATURED IMAGE
   =================================== */
.article-featured-image {
    margin: 0 calc(-1 * var(--spacing-md)) var(--spacing-xl);
    overflow: hidden;
    border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
    .article-featured-image {
        margin-left: auto;
        margin-right: auto;
        max-width: var(--wide-width);
    }
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-featured-image figcaption {
    padding: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: center;
    background: var(--color-bg-alt);
}

/* ===================================
   ARTICLE CONTENT - TYPOGRAPHY
   =================================== */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.article-content > * + * {
    margin-top: var(--spacing-md);
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
    letter-spacing: -0.01em;
    position: relative;
    padding-top: var(--spacing-lg);
}

.article-content h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), transparent);
    border-radius: 2px;
}

.article-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.article-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: var(--spacing-lg);
    color: var(--color-text);
}

.article-content p {
    color: var(--color-text);
    margin-top: 0;
}

.article-content a {
    color: var(--primary-orange);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    transition: var(--transition);
}

.article-content a:hover {
    color: var(--secondary-orange);
}

.article-content strong {
    font-weight: 600;
    color: var(--color-text);
}

/* Lists */
.article-content ul,
.article-content ol {
    padding-left: var(--spacing-lg);
}

.article-content li {
    margin-bottom: var(--spacing-xs);
}

.article-content li::marker {
    color: var(--primary-orange);
}

/* Blockquotes */
.article-content blockquote {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    padding-left: var(--spacing-xl);
    background: var(--color-bg-alt);
    border-left: 4px solid var(--primary-orange);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-text-light);
}

.article-content blockquote p {
    margin: 0;
}

.article-content blockquote cite {
    display: block;
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 600;
    color: var(--color-text);
}

/* Code blocks */
.article-content code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.9em;
    padding: 0.2em 0.4em;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    color: var(--primary-orange);
}

.article-content pre {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
    background: #1a1a2e;
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Images in content */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--spacing-lg) 0;
}

.article-content figure {
    margin: var(--spacing-xl) 0;
}

.article-content figcaption {
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* Videos/Embeds */
.article-content iframe,
.article-content video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    margin: var(--spacing-lg) 0;
}

.article-content .wp-block-embed {
    margin: var(--spacing-xl) 0;
}

.embed-responsive {
    position: relative;
    width: 100%;
    margin: var(--spacing-lg) 0;
}

.embed-responsive iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
}

/* Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
    font-size: 0.95rem;
}

.article-content th,
.article-content td {
    padding: var(--spacing-sm);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.article-content th {
    font-weight: 600;
    background: var(--color-bg-alt);
}

.article-content tr:hover td {
    background: var(--color-bg-alt);
}

/* ===================================
   ARTICLE FOOTER
   =================================== */
.article-footer {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

.tags-label {
    font-weight: 600;
    color: var(--color-text);
    margin-right: var(--spacing-xs);
}

.article-tags a {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--color-bg-alt);
    color: var(--color-text-light);
    border-radius: 50px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.article-tags a:hover {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

/* Share buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.share-label {
    font-weight: 600;
    color: var(--color-text);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.share-twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.share-facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.share-linkedin:hover {
    background: #0a66c2;
    color: white;
    border-color: #0a66c2;
}

.share-copy:hover,
.share-copy.copied {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

/* Updated date */
.article-updated {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.article-updated span {
    font-weight: 500;
}

/* ===================================
   AUTHOR BOX
   =================================== */
.author-box {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-xl);
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    flex: 1;
}

.author-box-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-xs);
    color: var(--color-text);
}

.author-bio {
    margin: 0 0 var(--spacing-sm);
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.author-link {
    display: inline-block;
    color: var(--primary-orange);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.author-link:hover {
    color: var(--secondary-orange);
}

@media (max-width: 480px) {
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
}

/* ===================================
   POST NAVIGATION
   =================================== */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

.nav-link {
    display: block;
    padding: var(--spacing-md);
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.nav-link:hover {
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-orange);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.nav-title {
    display: block;
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .post-navigation {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   RELATED POSTS
   =================================== */
.related-posts {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

.related-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-lg);
    color: var(--color-text);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.related-card {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.related-card:hover {
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.related-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: var(--spacing-md);
}

.related-content time {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-content h3 {
    margin: var(--spacing-xs) 0 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.related-content h3 a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

.related-content h3 a:hover {
    color: var(--primary-orange);
}

/* ===================================
   COMMENTS SECTION
   =================================== */
.comments-section {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: var(--spacing-lg);
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.comment-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-author-name {
    font-weight: 600;
    color: var(--color-text);
}

.comment-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.comment-content {
    color: var(--color-text);
    line-height: 1.6;
}

/* Comment form */
.comment-form {
    margin-top: var(--spacing-xl);
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 155, 14, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form button,
.comment-form input[type="submit"] {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.comment-form button:hover,
.comment-form input[type="submit"]:hover {
    background: var(--secondary-orange);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

/* ===================================
   RESPONSIVE - SINGLE POST
   =================================== */
@media (max-width: 768px) {
    .article-content {
        font-size: 1.0625rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .single-post-main {
        margin-top: 20px;
        margin-bottom: 20px;
        border-radius: 0;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .site-header,
    .site-footer,
    .article-share,
    .post-navigation,
    .related-posts,
    .comments-section,
    .author-box {
        display: none;
    }
    
    .single-post-main {
        box-shadow: none;
        margin: 0;
        padding: 20px;
    }
    
    .article-content {
        font-size: 12pt;
    }
    
    .article-title {
        font-size: 24pt;
    }
}
/* =====================================================
   Platform Icon Labels - Add to your style.css
   ===================================================== */

/* Android Label */
.platform-android {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #FFA31D;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
}

.platform-android::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('https://youtubetomp4.it.com/wp-content/uploads/2025/12/android-icon.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* iPhone Label */
.platform-iphone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #555555;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
}

.platform-iphone::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('https://youtubetomp4.it.com/wp-content/uploads/2025/12/S-1-1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Smart TV Label (optional) */
.platform-tv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #2196F3;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
}

/* ==========================================================================
   ARCHIVE PAGE STYLES
   Add this to your style.css
   ========================================================================== */

/* Main Container */
.archive-main {
    background: #f5f5f5;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Archive Header Section */
.archive-header-section {
    background: #fff;
    padding: 60px 0;
    margin-bottom: 50px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.archive-header-content {
    text-align: center;
}

.archive-label {
    display: inline-block;
    background: #FFA31D;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.archive-header-content .section-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.archive-header-content .section-description {
    font-size: 17px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 20px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.archive-count {
    font-size: 15px;
    color: #888;
}

.archive-count .count-number {
    font-weight: 700;
    color: #FFA31D;
}

/* Posts Section */
.archive-posts-section {
    padding: 0 20px;
}

/* Posts Grid */
.archive-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Post Card */
.archive-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Card Thumbnail */
.card-thumbnail {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.archive-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

/* Card Content */
.card-content {
    padding: 25px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.card-category {
    display: inline-block;
    background: #FFA31D;
    color: #fff !important;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 15px;
    text-decoration: none !important;
    transition: background 0.3s ease;
}

.card-category:hover {
    background: #e8940a;
}

.card-date {
    font-size: 13px;
    color: #888;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.card-title a {
    color: #1a1a1a;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #FFA31D;
}

.card-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FFA31D !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 12px;
}

.card-link svg {
    transition: transform 0.3s ease;
}

.card-link:hover svg {
    transform: translateX(3px);
}

/* Pagination */
.archive-pagination {
    display: flex;
    justify-content: center;
}

.archive-pagination ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.archive-pagination li {
    margin: 0;
}

.archive-pagination a,
.archive-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: #fff;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.archive-pagination a:hover {
    background: #FFA31D;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 163, 29, 0.3);
}

.archive-pagination .current {
    background: #FFA31D;
    color: #fff;
}

.archive-pagination .prev,
.archive-pagination .next {
    padding: 0 20px;
}

/* Empty State */
.archive-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    margin-bottom: 25px;
    color: #ddd;
}

.archive-empty h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.archive-empty p {
    font-size: 16px;
    color: #888;
    margin: 0 0 25px 0;
}

.empty-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFA31D;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.empty-button:hover {
    background: #e8940a;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 163, 29, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .archive-main {
        padding: 20px 15px 60px;
    }
    
    .archive-header {
        padding: 40px 20px;
        margin-bottom: 30px;
        border-radius: 16px;
    }
    
    .archive-title {
        font-size: 28px;
    }
    
    .archive-posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .archive-card {
        border-radius: 12px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .archive-pagination a,
    .archive-pagination span {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
        padding: 0 12px;
    }
}

/* List View Alternative (optional - add class "archive-list" to .archive-posts) */
.archive-posts.archive-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.archive-list .archive-card {
    display: grid;
    grid-template-columns: 280px 1fr;
}

.archive-list .card-thumbnail {
    aspect-ratio: 4/3;
}

.archive-list .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .archive-list .archive-card {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SEARCH PAGE STYLES
   ========================================================================== */

.search-again {
    display: flex;
    max-width: 400px;
    margin: 25px auto 0;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
}

.search-again input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #1a1a1a;
    outline: none;
}

.search-again input::placeholder {
    color: #999;
}

.search-again button {
    padding: 14px 20px;
    background: #FFA31D;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-again button:hover {
    background: #e8940a;
}

.card-type {
    display: inline-block;
    background: #eee;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 15px;
}

/* ==========================================================================
   404 PAGE STYLES
   ========================================================================== */

.error-404-main {
    background: #f5f5f5;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.error-404-main .container {
    max-width: 600px;
}

.error-404-content {
    text-align: center;
    background: #fff;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.05);
}

.error-number {
    font-size: 120px;
    font-weight: 800;
    color: #FFA31D;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 4px 4px 0 #fff3e0;
}

.error-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
}

.error-description {
    font-size: 17px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.error-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.error-button.primary {
    background: #FFA31D;
    color: #fff !important;
}

.error-button.primary:hover {
    background: #e8940a;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 163, 29, 0.3);
}

.error-button.secondary {
    background: #f5f5f5;
    color: #1a1a1a !important;
}

.error-button.secondary:hover {
    background: #eee;
}

.error-search {
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.error-search p {
    font-size: 14px;
    color: #888;
    margin: 0 0 15px 0;
}

.error-search form {
    display: flex;
    max-width: 350px;
    margin: 0 auto;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
}

.error-search input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #1a1a1a;
    outline: none;
}

.error-search input::placeholder {
    color: #999;
}

.error-search button {
    padding: 14px 20px;
    background: #FFA31D;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.error-search button:hover {
    background: #e8940a;
}

@media (max-width: 768px) {
    .error-404-content {
        padding: 40px 25px;
    }
    
    .error-number {
        font-size: 80px;
    }
    
    .error-title {
        font-size: 24px;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .error-button {
        justify-content: center;
    }
}