/* ===== Simple Utility Theme ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --border: #e0e0e0;
    --text: #333333;
    --text-secondary: #666666;
    --accent: #d93025;
    --accent-hover: #b71c1c;
    --success: #1e8e3e;
    --error: #d93025;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

/* Header */
.header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.header p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Input Section */
.input-section {
    margin-bottom: 30px;
}

/* Mode Toggle */
.mode-toggle {
    text-align: right;
    margin-bottom: 12px;
}

.bulk-mode-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bulk-mode-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
}

.bulk-mode-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.mode-container {
    transition: opacity 0.3s ease;
}

.mode-container.hidden {
    display: none;
}

/* Single Mode */
.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.url-input {
    flex: 1;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid var(--border);
    border-radius: 6px;
    outline: none;
}

.url-input:focus {
    border-color: var(--accent);
}

/* Bulk Mode */
.bulk-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bulk-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border: 2px solid var(--border);
    border-radius: 6px;
    outline: none;
    resize: vertical;
    min-height: 150px;
    line-height: 1.5;
}

.bulk-textarea:focus {
    border-color: var(--accent);
}

.bulk-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.bulk-quality-select {
    flex: 1;
    padding: 14px 16px;
    font-size: 14px;
    border: 2px solid var(--border);
    border-radius: 6px;
    outline: none;
    background: white;
    cursor: pointer;
}

.bulk-quality-select:focus {
    border-color: var(--accent);
}

/* Progress Bar */
.bulk-progress {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 6px;
}

.bulk-progress.hidden {
    display: none;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
}

/* Main Button */
.grab-btn {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.grab-btn:hover {
    background: var(--accent-hover);
}

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

.supported-formats {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

/* Error */
.error-message {
    padding: 12px 16px;
    background: #fce8e6;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: var(--error);
    font-size: 14px;
    margin-bottom: 10px;
}

.error-message.hidden {
    display: none;
}

/* Results */
.results-section {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
}

.results-section.hidden {
    display: none;
}

/* Preview */
.preview-section {
    background: var(--bg-secondary);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.preview-section h2 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Thumbnails List */
.thumbnails-section {
    padding: 20px;
}

.thumbnails-section h2 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.thumbnail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 10px;
    background: var(--bg);
}

.thumbnail-item:last-child {
    margin-bottom: 0;
}

.thumbnail-preview {
    width: 80px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--bg-secondary);
}

.thumbnail-info {
    flex: 1;
}

.thumbnail-name {
    font-weight: 500;
    font-size: 14px;
}

.thumbnail-size {
    font-size: 13px;
    color: var(--text-secondary);
}

.download-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text);
}

.download-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
}

.download-btn.success {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

/* ===== SEO Content Sections ===== */

/* Features Section */
.features-section {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.features-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.feature h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* How To Section */
.how-to-section {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.how-to-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.step h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.step p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Size Guide Section */
.size-guide-section {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.size-guide-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.size-guide-section>p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 15px;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 15px;
}

.size-table th,
.size-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.size-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 13px;
}

.size-table tbody tr:hover {
    background: var(--bg-secondary);
}

.note {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

/* FAQ Section */
.faq-section {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.faq-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.faq-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'SF Mono', Monaco, monospace;
}

/* Use Cases Section */
.use-cases-section {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.use-cases-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.use-cases-section ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.use-cases-section li {
    font-size: 14px;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border-radius: 6px;
    line-height: 1.5;
}

.use-cases-section li strong {
    color: var(--text);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

.footer p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.footer .disclaimer {
    font-size: 12px;
    color: #666;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    .header h1 {
        font-size: 22px;
    }

    .input-group {
        flex-direction: column;
    }

    .bulk-controls {
        flex-direction: column;
    }

    .bulk-quality-select {
        width: 100%;
    }

    .grab-btn {
        width: 100%;
    }

    .thumbnail-item {
        flex-wrap: wrap;
    }

    .download-btn {
        width: 100%;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .use-cases-section ul {
        grid-template-columns: 1fr;
    }

    .size-table {
        font-size: 13px;
    }

    .size-table th,
    .size-table td {
        padding: 10px;
    }
}

/* ===== Featured Snippts Styling ===== */
.snippet-section {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.snippet-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.snippet-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.snippet-box h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
}

.snippet-list {
    padding-left: 20px;
    margin: 0;
}

.snippet-list li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 15px;
}

.snippet-list strong {
    color: var(--text);
}

/* ===== Footer Navigation ===== */
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer .copyright {
    font-size: 12px;
    color: #999;
}

/* ===== Page Content (Privacy, About, Contact) ===== */
.header-link {
    text-decoration: none;
    color: inherit;
}

.header-link:hover h1 {
    color: var(--accent);
}

.page-content {
    padding-bottom: 40px;
}

.page-content h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.page-content .last-updated,
.page-content .intro {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-content section {
    margin-bottom: 30px;
}

.page-content h2 {
    font-size: 20px;
    margin-bottom: 15px;
    padding-top: 10px;
}

.page-content h3 {
    font-size: 16px;
    margin: 15px 0 10px;
}

.page-content p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.page-content ul,
.page-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.page-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Contact Page */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.contact-method {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.contact-method h3 {
    margin-top: 0;
}

/* ===== Blog Styles ===== */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.blog-card {
    display: flex;
    gap: 20px;
    padding: 0;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    padding-bottom: 30px;
    transition: transform 0.2s ease;
}

.blog-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-card:hover {
    transform: translateY(-2px);
}

/* Blog Card Image */
.blog-card-image {
    width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: var(--bg-secondary);
}

/* Blog Card Body */
.blog-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Blog Card Header */
.blog-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.blog-category {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.blog-author {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Blog Card Content */
.blog-card-content h2 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.blog-card-content h2 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-content h2 a:hover {
    color: var(--accent);
}

.blog-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Blog Meta */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.meta-item {
    display: inline-block;
}

.meta-separator {
    color: #ccc;
}

/* Responsive Blog Cards */
@media (max-width: 600px) {
    .blog-card {
        flex-direction: column;
    }

    .blog-card-image {
        width: 100%;
        height: 200px;
    }

    .blog-card-content h2 {
        font-size: 18px;
    }

    .blog-excerpt {
        font-size: 14px;
    }

    .blog-meta {
        font-size: 12px;
        flex-wrap: wrap;
    }
}

/* ===== Article Content ===== */
.article-content {
    padding-bottom: 40px;
}

.article-content h1 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.article-meta {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 25px;
}

/* Featured Image */
.featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-content .intro {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
}

.article-content h2 {
    font-size: 22px;
    margin: 35px 0 15px;
}

.article-content h3 {
    font-size: 18px;
    margin: 25px 0 12px;
}

.article-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Table of Contents */
.toc {
    background: var(--bg-secondary);
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.toc h2 {
    font-size: 16px;
    margin: 0 0 12px;
}

.toc ul {
    margin: 0;
    padding-left: 20px;
}

.toc li {
    margin-bottom: 6px;
}

.toc a {
    color: var(--accent);
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

/* Info Box */
.info-box {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.info-box h3 {
    margin-top: 0;
    font-size: 16px;
}

.info-box ul {
    margin-bottom: 0;
}

/* Steps Box */
.steps-box {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.steps-box h3 {
    font-size: 16px;
    margin: 20px 0 8px;
}

.steps-box h3:first-child {
    margin-top: 0;
}

/* Code Blocks */
code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
}

.code-block {
    display: block;
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 14px;
    overflow-x: auto;
    margin: 15px 0;
}

/* CTA Section */
.cta-section {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
}

.cta-section h2 {
    margin: 0 0 15px;
    font-size: 20px;
}

.cta-section p {
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 14px 28px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
}

.cta-button:hover {
    background: var(--accent-hover);
}

.cta-inline {
    margin: 20px 0;
}

/* Responsive for new elements */
@media (max-width: 600px) {
    .contact-methods {
        grid-template-columns: 1fr;
    }

    .article-content h1 {
        font-size: 24px;
    }

    .article-content h2 {
        font-size: 20px;
    }
}