/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

:root {
    --primary: #0B5FFF;
    --secondary: #FFD166;
    --bg: #F7FAFF;
    --text: #0B1B2F;
    --muted: #E6EEF8;
    --white: #FFFFFF;
    --shadow: rgba(11, 95, 255, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Roboto', 'Arial', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

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

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.logo img {
    margin-top: 15%;
    height: 30px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

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

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
}

h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.subtitle {
    font-size: 18px;
    color: #5A6B7F;
    max-width: 600px;
    margin: 0 auto;
}

/* Upload Section */
.upload-section {
    margin: 40px auto;
    max-width: 600px;
}

.upload-area {
    border: 3px dashed var(--muted);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.upload-area.dragover {
    border-color: var(--primary);
    background-color: #E3F2FD;
    transform: scale(1.02);
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: var(--primary);
    margin-bottom: 20px;
}

.upload-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 14px;
    color: #8B95A5;
}

.error-message {
    color: #D32F2F;
    background-color: #FFEBEE;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    display: none;
    font-size: 14px;
}

.error-message.show {
    display: block;
}

/* Preview Section */
.preview-section {
    margin: 40px auto;
}

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

.preview-box {
    background-color: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px var(--shadow);
}

.preview-box h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text);
}

.preview-box img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.processed-placeholder {
    aspect-ratio: 16/9;
    background-color: var(--muted);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B95A5;
}

.image-info {
    margin-top: 12px;
    font-size: 13px;
    color: #8B95A5;
}

/* Controls Section */
.controls-section {
    background-color: var(--white);
    border-radius: 12px;
    padding: 32px;
    margin: 40px auto;
    max-width: 800px;
    box-shadow: 0 2px 12px var(--shadow);
}

.controls-section h2 {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.control-group {
    margin-bottom: 28px;
}

.control-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.mode-buttons,
.format-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mode-btn,
.format-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: 2px solid var(--muted);
    background-color: var(--white);
    color: var(--text);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.mode-btn:hover,
.format-btn:hover {
    border-color: var(--primary);
}

.mode-btn.active,
.format-btn.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--muted);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn {
    flex: 1;
    min-width: 140px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0A4FD9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 95, 255, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text);
}

.btn-secondary:hover {
    background-color: #FFBE3D;
    transform: translateY(-2px);
}

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

.btn-tertiary:hover {
    background-color: var(--primary);
    color: var(--white);
}

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

/* Info Section */
.info-section {
    margin: 60px auto;
    text-align: center;
}

.info-section h2 {
    font-size: 28px;
    margin-bottom: 40px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step {
    background-color: var(--white);
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.step p {
    color: #5A6B7F;
}

/* Ad Placeholders */
.ad-placeholder {
    min-height: 90px;
    background-color: var(--muted);
    border-radius: 8px;
    margin: 40px auto;
    max-width: 728px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B95A5;
    font-size: 14px;
}

/* SEO Content Section */
.seo-content {
    background-color: var(--white);
    padding: 60px 20px;
    margin-top: 80px;
    border-top: 2px solid var(--muted);
}

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

.seo-content h2 {
    font-size: 32px;
    color: var(--text);
    margin-bottom: 24px;
    text-align: center;
}

.seo-content h3 {
    font-size: 24px;
    color: var(--text);
    margin-top: 40px;
    margin-bottom: 16px;
}

.seo-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #5A6B7F;
    margin-bottom: 20px;
    text-align: justify;
}

.seo-content strong {
    color: var(--primary);
    font-weight: 600;
}

/* Editorial Content Sections */
.editorial-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(11, 95, 255, 0.08);
}

.editorial-section h2 {
    font-size: 24px;
    color: var(--text);
    margin-bottom: 20px;
    text-align: center;
}

.editorial-section p {
    font-size: 16px;
    line-height: 1.7;
    color: #5A6B7F;
    margin-bottom: 16px;
    text-align: center;
}

.editorial-section ul {
    font-size: 15px;
    line-height: 1.8;
    color: #5A6B7F;
    padding-left: 20px;
    margin: 20px auto;
    max-width: 600px;
}

.editorial-section li {
    margin-bottom: 12px;
}

.editorial-section strong {
    color: var(--text);
    font-weight: 600;
}

/* Footer */
footer {
    background-color: var(--text);
    color: var(--white);
    padding: 40px 0;
    margin: 80px 0 0 0;
    text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

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

.footer-links {
    display: flex;
    list-style: none;
    gap: 24px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

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

.footer-links a:hover {
    color: var(--secondary);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 16px;
    }

    .nav-links {
        gap: 16px;
        font-size: 14px;
    }

    .preview-container {
        grid-template-columns: 1fr;
    }

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

    .upload-area {
        padding: 40px 24px;
    }

    .controls-section {
        padding: 24px 16px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        min-width: 100%;
    }

    .mode-buttons,
    .format-buttons {
        flex-direction: column;
    }

    .mode-btn,
    .format-btn {
        min-width: 100%;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .seo-content {
        padding: 40px 20px;
        margin-top: 60px;
    }

    .seo-content h2 {
        font-size: 24px;
    }

    .seo-content h3 {
        font-size: 20px;
        margin-top: 32px;
    }

    .seo-content p {
        font-size: 15px;
        text-align: left;
    }

    .editorial-section {
        padding: 20px;
        margin: 30px 16px;
    }

    .editorial-section h2 {
        font-size: 20px;
    }

    .editorial-section p {
        font-size: 15px;
    }

    .editorial-section ul {
        font-size: 14px;
        padding-left: 16px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 30px;
    }

    .nav-links {
        gap: 12px;
        font-size: 13px;
    }

    h1 {
        font-size: 24px;
    }

    .hero {
        padding: 40px 20px 30px;
    }
}