/* ========================================
   Bulk XML Sitemap Generator - Complete Styles
   ======================================== */

/* Root Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --border: #e5e7eb;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Skip to content for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Header Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

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

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

.cta-nav {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* AdSense Container Styles */
.adsense-container {
    margin: 2rem auto;
    text-align: center;
    min-height: 100px;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adsense-top {
    max-width: 1400px;
    margin: 80px auto 0;
}

.adsense-feature {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adsense-feature .adsense-container {
    width: 100%;
    height: 250px;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Tool Hero Section */
.tool-hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 140px 2rem 60px;
    text-align: center;
}

.breadcrumb {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.tool-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.hero-stats .stat-label {
    color: var(--text-light);
    font-size: 1rem;
}

/* Tool Interface */
.tool-interface {
    padding: 60px 2rem;
    background: var(--bg-white);
}

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

/* Input Section */
.input-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.input-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.input-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-dark);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

#urlInput {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#urlInput:focus {
    outline: none;
    border-color: var(--primary);
}

.settings-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

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

.setting label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.setting select {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.setting select:focus {
    outline: none;
    border-color: var(--primary);
}

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

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}

.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-area button {
    color: var(--primary);
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
}

/* Crawler Options */
#crawlUrl {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.crawler-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.crawler-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.crawler-options input[type="number"] {
    width: 60px;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* Progress Bar for Crawler */
.progress-bar {
    width: 100%;
    height: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.3s ease;
}

#crawlProgress {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

#crawlStatus {
    text-align: center;
    color: var(--text-dark);
    font-weight: 500;
}

/* Output Section */
.output-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.output-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.output-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.output-tab {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: none;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.output-tab:hover {
    background: var(--bg-gray);
}

.output-tab.active {
    background: var(--primary);
    color: white;
}

.output-content {
    min-height: 300px;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    overflow: auto;
    max-height: 500px;
}

.placeholder {
    text-align: center;
    padding: 3rem;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.placeholder p {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.placeholder small {
    color: var(--text-light);
}

.output-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.generate-btn {
    width: 100%;
}

/* Features Section */
.features {
    padding: 80px 2rem;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.feature {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature p {
    color: var(--text-light);
    line-height: 1.6;
}

/* SEO Content Section - Professional Card Design */
.seo-content {
    padding: 80px 2rem;
    background: #f8f9fa;
}

.seo-content .container {
    max-width: 1200px;
    margin: 0 auto;
}

.seo-content h2 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
}

.seo-content > .container > h2 {
    margin-bottom: 3rem !important;
}

/* SEO Grid - Two Column Layout */
.seo-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)) !important;
    gap: 2rem !important;
    margin-bottom: 4rem !important;
}

.seo-article {
    background: #ffffff !important;
    padding: 2rem !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e9ecef !important;
    transition: all 0.3s ease;
}

.seo-article:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.seo-article h3 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 2px solid #f0f0f0 !important;
}

.seo-article h4 {
    font-size: 1.125rem !important;
    color: #495057 !important;
    margin: 1.5rem 0 0.75rem !important;
    font-weight: 600 !important;
}

.seo-article p {
    color: #6c757d !important;
    line-height: 1.7 !important;
    margin-bottom: 1rem !important;
    font-size: 1rem !important;
}

.seo-article ul {
    margin: 1rem 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.seo-article ul li {
    color: #6c757d !important;
    line-height: 1.8 !important;
    margin-bottom: 0.5rem !important;
    padding-left: 1.75rem !important;
    position: relative !important;
    font-size: 0.95rem !important;
}

.seo-article ul li::before {
    content: '✓' !important;
    position: absolute;
    left: 0;
    top: 0;
    color: #28a745 !important;
    font-weight: bold;
}

/* SEO Tips Section - Three Column Cards */
.seo-tips {
    margin: 4rem 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.seo-tips h2 {
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 2.5rem !important;
    text-align: center !important;
}

.tip-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 1.5rem !important;
}

.tip-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e9ecef !important;
    transition: all 0.3s ease;
    position: relative;
}

.tip-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
}

.tip-card h3 {
    font-size: 1.375rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 0.75rem !important;
}

.tip-card h4 {
    font-size: 1.125rem !important;
    color: #495057 !important;
    margin: 1.25rem 0 0.75rem !important;
    font-weight: 600 !important;
}

.tip-card p {
    color: #6c757d !important;
    line-height: 1.7 !important;
    margin-bottom: 1rem !important;
    font-size: 0.95rem !important;
}

.tip-card ul {
    margin: 1rem 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.tip-card ul li {
    color: #6c757d !important;
    line-height: 1.7 !important;
    margin-bottom: 0.5rem !important;
    padding-left: 1.5rem !important;
    position: relative !important;
    font-size: 0.9rem !important;
}

.tip-card ul li::before {
    content: '•' !important;
    position: absolute;
    left: 0;
    top: 0;
    color: #6366f1 !important;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Common Mistakes Section - Grid Layout */
.common-mistakes {
    background: #ffffff !important;
    padding: 3rem !important;
    border-radius: 16px !important;
    margin-top: 4rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e9ecef !important;
}

.common-mistakes h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 2.5rem !important;
    text-align: center !important;
}

.mistakes-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
}

.mistake-item {
    background: #fff5f5 !important;
    padding: 1.75rem !important;
    border-radius: 10px !important;
    border-left: 4px solid #dc3545 !important;
    transition: all 0.3s ease;
}

.mistake-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1) !important;
}

.mistake-item h3 {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #dc3545 !important;
    margin-bottom: 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.mistake-item p {
    color: #6c757d !important;
    line-height: 1.6 !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
}

/* Feature Comparison Cards */
.comparison-section {
    margin: 4rem 0;
    padding: 3rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

.comparison-card {
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
}

.comparison-card:nth-child(1) {
    border-color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0.02) 100%);
}

.comparison-card:nth-child(2) {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(139, 92, 246, 0.02) 100%);
}

.comparison-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.comparison-card p {
    color: #6c757d;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Process Steps */
.process-steps {
    margin: 4rem 0;
    padding: 0;
}

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

.step-card {
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Info Cards Grid */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.info-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #6366f1;
}

.info-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
}

/* Clean Typography Throughout */
.seo-content h1, .seo-content h2, .seo-content h3, 
.seo-content h4, .seo-content h5, .seo-content h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .seo-grid, .tip-cards, .mistakes-grid, 
    .comparison-cards, .steps-container, .info-cards {
        grid-template-columns: 1fr !important;
    }
    
    .seo-article, .tip-card, .mistake-item {
        padding: 1.5rem !important;
    }
}

/* FAQ Section */
.faq-section {
    padding: 80px 2rem;
    background: var(--bg-white);
    position: relative;
}

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

.faq-grid {
    display: grid;
    gap: 1rem;
    margin-top: 3rem;
}

.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    color: var(--primary);
}

.faq-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-icon::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    background: var(--primary);
}

.faq-question.active .faq-icon::after {
    content: '−';
    color: white;
    transform: rotate(180deg);
}

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

.faq-answer.active {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
}

.faq-answer ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
    color: var(--text-light);
}

.faq-answer ul li {
    margin-bottom: 0.5rem;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 2rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.newsletter-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.newsletter-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.newsletter-form-main {
    max-width: 500px;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-form-main input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.newsletter-form-main input:focus {
    border-color: var(--primary);
    outline: none;
}

.btn-subscribe {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.btn-subscribe:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.newsletter-note {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-icon {
    font-size: 6rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 2rem 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Accessibility */
:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.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;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tool-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .seo-grid {
        grid-template-columns: 1fr;
    }
    
    .tip-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mistakes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }
    
    .tool-hero {
        padding: 100px 1.5rem 40px;
    }
    
    .tool-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    .settings-row {
        grid-template-columns: 1fr;
    }
    
    .output-actions {
        flex-direction: column;
    }
    
    .output-actions .btn {
        width: 100%;
    }
    
    .newsletter-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .newsletter-image {
        display: none;
    }
    
    .newsletter-content h2 {
        font-size: 2rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .newsletter-form-main input,
    .btn-subscribe {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 1.25rem;
    }
    
    .faq-answer {
        font-size: 0.95rem;
    }
    
    .seo-content h2 {
        font-size: 1.75rem;
    }
    
    .seo-article h3 {
        font-size: 1.5rem;
    }
    
    .tip-card h3 {
        font-size: 1.25rem;
    }
    
    .adsense-container {
        margin: 1rem auto;
    }
    
    .adsense-top {
        margin-top: 70px;
    }
}

@media (max-width: 480px) {
    .tool-hero h1 {
        font-size: 1.75rem;
    }
    
    .input-section,
    .output-section {
        padding: 1.5rem;
    }
    
    .output-tabs {
        flex-wrap: wrap;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .seo-article {
        padding: 1.5rem;
    }
    
    .tip-card {
        padding: 1.5rem;
    }
    
    .common-mistakes {
        padding: 2rem 1rem;
    }
    
    .mistake-item {
        padding: 1rem;
    }
}