/* Horizin PDF Tools - Main Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Theme Toggle */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.theme-toggle:hover { transform: translateY(-1px); }

/* Dark Theme */
html.theme-dark,
body.theme-dark {
    background-color: #0b1220;
    color: #cbd5e1;
}

body.theme-dark .header {
    background: rgba(10, 16, 28, 0.85);
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

body.theme-dark .nav-menu a { color: #94a3b8; }
body.theme-dark .nav-menu a:hover { color: #60a5fa; }
body.theme-dark .theme-toggle { background: #0f172a; color: #e2e8f0; border-color: #1e293b; }

body.theme-dark .tools-section,
body.theme-dark .how-it-works,
body.theme-dark .tool-info,
body.theme-dark .faq-section { background: #0f172a; }

body.theme-dark .tool-card,
body.theme-dark .tool-upload,
body.theme-dark .tool-features,
body.theme-dark .info-item,
body.theme-dark .blog-card,
body.theme-dark .blog-post {
    background: #0b1220;
    border: 1px solid rgba(148,163,184,0.12);
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

body.theme-dark .tool-card h3,
body.theme-dark .feature-item h3,
body.theme-dark .info-item h3,
body.theme-dark .blog-content h3 a { color: #e2e8f0; }

body.theme-dark p,
body.theme-dark .tool-card p,
body.theme-dark .feature-item p,
body.theme-dark .info-item li,
body.theme-dark .blog-meta,
body.theme-dark .blog-post li { color: #94a3b8; }

body.theme-dark .upload-area { border-color: #1f2a44; }
body.theme-dark .file-info { background: #0f172a; }
body.theme-dark .faq-item { background: #0b1220; }
body.theme-dark .faq-question:hover { background: #0f172a; }
body.theme-dark .blog-image { background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%); }

body.theme-dark .footer { background: #0b1220; border-top: 1px solid #1e293b; }
body.theme-dark .footer-bottom { border-top-color: #1e293b; }

/* Additional dark mode styles */
body.theme-dark .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
}

body.theme-dark .hero-title {
    color: #e2e8f0;
}

body.theme-dark .hero-subtitle {
    color: #94a3b8;
}

body.theme-dark .badge {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

body.theme-dark .btn-primary {
    background: #3b82f6;
    color: white;
}

body.theme-dark .btn-primary:hover {
    background: #2563eb;
}

body.theme-dark .btn-secondary {
    background: transparent;
    color: #60a5fa;
    border-color: #60a5fa;
}

body.theme-dark .btn-secondary:hover {
    background: #60a5fa;
    color: #0f172a;
}

body.theme-dark .section-title {
    color: #e2e8f0;
}

body.theme-dark .tool-card h3 {
    color: #e2e8f0;
}

body.theme-dark .tool-card p {
    color: #94a3b8;
}

body.theme-dark .tool-btn {
    background: #3b82f6;
    color: white;
}

body.theme-dark .tool-btn:hover {
    background: #2563eb;
}

body.theme-dark .blog-card {
    background: #0b1220;
    border: 1px solid rgba(148,163,184,0.12);
}

body.theme-dark .blog-content h3 a {
    color: #e2e8f0;
}

body.theme-dark .blog-content h3 a:hover {
    color: #60a5fa;
}

body.theme-dark .blog-meta {
    color: #94a3b8;
}

body.theme-dark .footer-section h3,
body.theme-dark .footer-section h4 {
    color: #e2e8f0;
}

body.theme-dark .footer-section p {
    color: #94a3b8;
}

body.theme-dark .footer-section a {
    color: #94a3b8;
}

body.theme-dark .footer-section a:hover {
    color: #60a5fa;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #666;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Header shrink on scroll */
.header {
    transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.header-scrolled {
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.95);
    backdrop-filter: saturate(1.2) blur(6px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

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

.logo {
    width: 40px;
    height: 40px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2563eb;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

/* Subtle animated gradient sheen */
.hero::after {
    content: "";
    position: absolute;
    left: -20%;
    top: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 60%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    pointer-events: none;
    animation: heroSheen 6s ease-in-out infinite;
}

@keyframes heroSheen {
    0% { transform: translateX(-100%) skewX(-20deg); }
    50% { transform: translateX(250%) skewX(-20deg); }
    100% { transform: translateX(250%) skewX(-20deg); }
}

.hero-container { position: relative; }

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.hero-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.badge {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn-lg { padding: 14px 22px; font-size: 1rem; }

.btn-secondary {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(255,255,255,0.25);
}

.btn-secondary:hover { transform: translateY(-2px); background: rgba(255,255,255,0.18); box-shadow: 0 8px 22px rgba(0,0,0,0.15); }

.hero-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
    margin: 0.5rem 0 0.5rem;
}

.hero-rating .stars { color: #fde68a; }

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.5;
    pointer-events: none;
}

.blob-1 { width: 180px; height: 180px; background: #60a5fa; left: -40px; top: -30px; animation: blobFloat1 12s ease-in-out infinite; }
.blob-2 { width: 220px; height: 220px; background: #a78bfa; right: -60px; top: 20px; animation: blobFloat2 14s ease-in-out infinite; }
.blob-3 { width: 140px; height: 140px; background: #34d399; left: 50%; bottom: -50px; transform: translateX(-50%); animation: blobFloat3 10s ease-in-out infinite; }

@keyframes blobFloat1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(10px, -12px); } }
@keyframes blobFloat2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-14px, 8px); } }
@keyframes blobFloat3 { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-45%, -10px); } }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Tools Section */
.tools-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #1e293b;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Staggered animation delays for cards */
.tools-grid .tool-card:nth-child(1) { transition-delay: 40ms; }
.tools-grid .tool-card:nth-child(2) { transition-delay: 80ms; }
.tools-grid .tool-card:nth-child(3) { transition-delay: 120ms; }
.tools-grid .tool-card:nth-child(4) { transition-delay: 160ms; }
.tools-grid .tool-card:nth-child(5) { transition-delay: 200ms; }
.tools-grid .tool-card:nth-child(6) { transition-delay: 240ms; }
.tools-grid .tool-card:nth-child(7) { transition-delay: 280ms; }
.tools-grid .tool-card:nth-child(8) { transition-delay: 320ms; }
.tools-grid .tool-card:nth-child(9) { transition-delay: 360ms; }

.tool-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.35s cubic-bezier(.22,.61,.36,1), box-shadow 0.35s ease, border-color 0.35s ease;
    border: 1px solid rgba(99,102,241,0.08);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.12);
    border-color: rgba(99,102,241,0.25);
}

.tool-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 16px rgba(102,126,234,0.35);
}

.tool-graphic {
    width: 40px;
    height: 40px;
}

.tool-card h3 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.tool-card p {
    margin-bottom: 1.5rem;
    color: #64748b;
}

.tool-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 20px rgba(102,126,234,0.25);
}

.tool-btn:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 12px 30px rgba(102,126,234,0.35);
}

/* Tool Section */
.tool-section {
    padding: 4rem 0;
}

.tool-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.tool-upload {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #2563eb;
    background: #f8fafc;
}

.upload-icon {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.upload-area h3 {
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.upload-area p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.file-info {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-details i {
    font-size: 2rem;
    color: #dc2626;
}

.file-text h4 {
    margin: 0;
    color: #1e293b;
}

.file-text p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.remove-file {
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    margin-left: auto;
}

.conversion-options {
    margin: 2rem 0;
}

.conversion-options h3 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.option-group label:hover {
    background: #f1f5f9;
}

.convert-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.convert-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.convert-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Tool Features */
.tool-features {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.feature-item h3 {
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.feature-item p {
    color: #64748b;
    font-size: 0.9rem;
}

/* How It Works */
.how-it-works {
    padding: 4rem 0;
    background: #f8fafc;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.step-content p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Tool Info */
.tool-info {
    padding: 4rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.info-item h3 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.info-item ul {
    list-style: none;
}

.info-item li {
    padding: 0.5rem 0;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.info-item li:last-child {
    border-bottom: none;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: #64748b;
}

/* Blog Preview */
.blog-preview {
    padding: 4rem 0;
    background: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-grid .blog-card:nth-child(1) { transition-delay: 40ms; }
.blog-grid .blog-card:nth-child(2) { transition-delay: 80ms; }
.blog-grid .blog-card:nth-child(3) { transition-delay: 120ms; }

.blog-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(.22,.61,.36,1), box-shadow 0.35s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    margin-bottom: 1rem;
}

.blog-content h3 a {
    color: #1e293b;
    text-decoration: none;
}

.blog-content h3 a:hover {
    color: #2563eb;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.blog-date,
.blog-category {
    font-size: 0.9rem;
    color: #64748b;
}

.blog-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 10px 24px rgba(102,126,234,0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 16px 34px rgba(102,126,234,0.35);
}

/* Scroll reveal animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    transition: opacity 600ms ease, transform 600ms ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
}

.cta-box h3 {
    color: white;
    margin-bottom: 1rem;
}

.cta-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.cta-box .btn-primary {
    background: white;
    color: #667eea;
}

.cta-box .btn-primary:hover {
    background: #f8fafc;
    color: #667eea;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #94a3b8;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

/* Blog Styles */
.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.blog-content {
    padding: 4rem 0;
}

.blog-post {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.blog-meta-info {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.blog-meta-info p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.blog-post h2 {
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post h3 {
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-post ul,
.blog-post ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.blog-post li {
    margin-bottom: 0.5rem;
    color: #64748b;
}

.blog-post table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.blog-post th,
.blog-post td {
    padding: 12px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.blog-post th {
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tool-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .blog-meta-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .tools-section,
    .tool-section,
    .how-it-works,
    .tool-info,
    .faq-section,
    .blog-preview {
        padding: 2rem 0;
    }
    
    .tool-card,
    .tool-upload,
    .tool-features,
    .info-item {
        padding: 1.5rem;
    }
    
    .blog-post {
        padding: 2rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Drag and Drop States */
.drag-over {
    border-color: #2563eb !important;
    background: #f8fafc !important;
}

/* Form Elements */
input[type="file"] {
    display: none;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
button:focus,
a:focus,
input:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}


/* Print Styles */
@media print {
    .header,
    .footer,
    .nav-menu,
    .tool-btn,
    .btn-primary {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}
