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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.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 .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 1.5rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tagline {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 5px;
}

.main-nav {
    display: flex;
    gap: 15px;
}

.main-nav a {
    text-decoration: none;
    color: #34495e;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a.nav-active {
    background: #3498db;
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
}

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

/* Main Tool */
.main {
    padding: 40px 0;
}

.style-selector {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.style-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.style-tab {
    padding: 10px 20px;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.style-tab:hover {
    background: #f0f8ff;
}

.style-tab.active {
    background: #3498db;
    color: white;
}

.tool-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .tool-container {
        grid-template-columns: 1fr;
    }
}

.input-card,
.result-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.input-card h3,
.result-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.help-text {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #2ecc71;
    color: white;
}

.btn-secondary:hover {
    background: #27ae60;
}

.btn-outline {
    background: white;
    color: #7f8c8d;
    border: 1px solid #ddd;
}

.btn-outline:hover {
    background: #f8f9fa;
}

/* Result Section */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.style-badge {
    background: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.result-box {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    min-height: 150px;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    margin-bottom: 20px;
}

.result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px;
    color: #7f8c8d;
}

.placeholder-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-success {
    background: #2ecc71;
    color: white;
}

.btn-success:hover {
    background: #27ae60;
}

.btn-info {
    background: #9b59b6;
    color: white;
}

.btn-info:hover {
    background: #8e44ad;
}

/* Ad Space */
.ad-space {
    margin-top: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px dashed #ddd;
}

.ad-label {
    color: #7f8c8d;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.ad-placeholder {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 3px;
}

.ad-banner {
    margin: 40px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px dashed #ddd;
}

.ad-placeholder-wide {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 3px;
}

/* Features */
.features {
    margin: 60px 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

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

.feature {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* FAQ */
.faq {
    margin: 60px 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.faq-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.faq-item h4 {
    color: #3498db;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-section h4 {
    margin-bottom: 20px;
    color: #ecf0f1;
}

.footer-section a {
    display: block;
    color: #bdc3c7;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: #95a5a6;
    margin: 10px 0;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #3498db;
    text-decoration: none;
    margin: 0 5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 15px 0;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

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

/* Content Pages */
.content-page {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.content-page h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.content-page h2 {
    color: #3498db;
    margin: 30px 0 15px;
}

.content-page h3 {
    color: #2c3e50;
    margin: 20px 0 10px;
}

.content-page p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-page ul, .content-page ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-page li {
    margin-bottom: 10px;
}

.content-page pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

.content-page code {
    background: #f8f9fa;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Error Page */
.error-container {
    text-align: center;
    padding: 100px 20px;
}

.error-code {
    font-size: 5rem;
    color: #e74c3c;
    margin-bottom: 20px;
}

.error-message {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Sitemap */
.sitemap ul {
    list-style: none;
    margin-left: 0;
}

.sitemap ul ul {
    margin-left: 20px;
}

.sitemap a {
    color: #3498db;
    text-decoration: none;
}

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

/* Schema Structured Data */
.schema-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #7f8c8d;
}
/* Mobile Menu Fixes */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2c3e50;
    padding: 5px;
    z-index: 1001;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .header .container {
        position: relative;
        padding-right: 50px;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: white;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        flex-direction: column;
        gap: 10px;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav a {
        display: block;
        padding: 12px 15px;
        margin: 5px 0;
        border-radius: 5px;
        text-align: left;
        font-size: 1.1rem;
    }
    
    /* Overlay when menu is open */
    .main-nav.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: -1;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    .logo h1 {
        font-size: 1.2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }
    
    .tagline {
        font-size: 0.7rem;
    }
}

/* Tablet optimizations */
@media (max-width: 1024px) {
    .tool-container {
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat {
        flex-direction: row;
        gap: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn, .style-tab, .mobile-menu-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    input, select, textarea {
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    .form-group input, .form-group select {
        padding: 12px;
    }
}

/* Print styles */
@media print {
    .header, .footer, .mobile-menu-btn, .ad-space, .ad-banner {
        display: none !important;
    }
    
    .result-box {
        border: 1px solid #000 !important;
        page-break-inside: avoid;
    }
}

/* Print Styles */
@media print {
    .header, .footer, .ad-space, .ad-banner, .mobile-menu-btn {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .result-box {
        border: 1px solid #000 !important;
        background: white !important;
    }
}
