/* ============================================
   RESET E VARIÁVEIS GLOBAIS
   ============================================ */

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

:root {
    --primary-color: #1a3a52;
    --secondary-color: #CDDC39;
    --accent-color: #4CAF50;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* ============================================
   CONTAINER E LAYOUT
   ============================================ */

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

/* ============================================
   HEADER
   ============================================ */

.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c5aa0 100%);
    color: white;
    padding: 40px 0;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.header-subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-weight: 500;
}

.back-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: white;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
}

.hero-image {
    text-align: center;
}

.chipinho-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: float 3s ease-in-out infinite;
}

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

/* ============================================
   TOPICS GRID
   ============================================ */

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.topic-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.topic-card:not(.coming-soon):hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.topic-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.card-emoji {
    font-size: 3rem;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.card-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    color: var(--accent-color);
    font-weight: bold;
    display: flex;
    align-items: center;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-image {
    text-align: center;
}

.chipinho-about {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.about-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-list {
    list-style: none;
}

.about-list li {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-light);
    padding-left: 0;
}

/* ============================================
   TABS SECTION
   ============================================ */

.tabs-section {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 40px;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    background-color: var(--bg-light);
}

.tab-button {
    flex: 1;
    padding: 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background-color: white;
    color: var(--text-dark);
}

.tab-button.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    background-color: white;
}

.tab-content {
    display: none;
    padding: 40px;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

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

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

.tab-image {
    text-align: center;
}

.screenshot {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.image-caption {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* ============================================
   FIELD BOXES
   ============================================ */

.field-box {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.field-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.field-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.field-example {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-family: 'Courier New', monospace;
}

.field-example div {
    margin: 5px 0;
}

/* ============================================
   STEPS BOX
   ============================================ */

.steps-box {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.steps-list {
    list-style: none;
}

.steps-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.steps-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

.step-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.step-description {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   OPERATIONS GRID
   ============================================ */

.operations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.operation-box {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--accent-color);
}

.operation-box.delete-box {
    border-top-color: #ff6b6b;
}

.operation-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.operation-emoji {
    font-size: 2rem;
}

.operation-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
}

.operation-description {
    color: var(--text-light);
    margin-bottom: 20px;
}

.operation-steps {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.steps-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.simple-steps {
    list-style-position: inside;
    color: var(--text-light);
}

.simple-steps li {
    margin-bottom: 8px;
}

.tip-box {
    padding: 15px;
    border-radius: 5px;
    font-size: 0.95rem;
}

.tip-box.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.tip-box.warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* ============================================
   TIPS SECTION
   ============================================ */

.tips-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, #d4f1d4 0%, #e8f5e9 100%);
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.tips-image {
    text-align: center;
}

.tips-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.tips-list {
    list-style: none;
}

.tips-list li {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    padding-left: 0;
}

/* ============================================
   VIDEO PLAYER SECTION
   ============================================ */

.video-player-section {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 40px;
}

.video-player {
    width: 100%;
}

.slide-container {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.slide-image {
    width: 100%;
    height: auto;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: var(--accent-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.play-button:hover {
    background-color: #45a049;
    transform: translate(-50%, -50%) scale(1.1);
}

.slide-info {
    margin-bottom: 30px;
}

.slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.slide-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-dark);
}

.slide-duration {
    background-color: var(--bg-light);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

.narration-box {
    background-color: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 20px;
    border-radius: 5px;
}

.narration-text {
    font-size: 1rem;
    color: #1565c0;
    font-style: italic;
    line-height: 1.6;
}

.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.control-button {
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.control-button:hover:not(:disabled) {
    background-color: #45a049;
    transform: scale(1.05);
}

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

.control-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.play-pause {
    min-width: 150px;
}

.progress-section {
    margin-bottom: 30px;
}

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

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

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
    flex-shrink: 0;
}

.thumbnail:hover {
    border-color: var(--secondary-color);
}

.thumbnail.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

/* ============================================
   INTRO SECTION
   ============================================ */

.intro-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.intro-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.intro-image {
    text-align: center;
}

.info-box {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
}

.info-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-dark);
}

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

.info-list li {
    margin-bottom: 8px;
    color: var(--text-light);
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 40px;
}

.faq-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

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

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

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
    min-width: 30px;
    text-align: right;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    color: var(--text-light);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 0 20px 0;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

.footer p {
    margin: 5px 0;
}

.footer-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .header-title {
        font-size: 1.8rem;
    }

    .hero,
    .about-section,
    .intro-section,
    .tips-section,
    .tab-grid,
    .operations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .tabs-header {
        flex-direction: column;
    }

    .tab-button {
        padding: 15px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .tab-button.active {
        border-bottom: none;
        border-left-color: var(--accent-color);
    }

    .tab-content {
        padding: 20px;
    }

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

    .control-button {
        width: 100%;
    }

    .control-center {
        width: 100%;
    }

    .thumbnails {
        justify-content: center;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .back-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 20px 0;
    }

    .header-title {
        font-size: 1.5rem;
    }

    .header-subtitle {
        font-size: 0.9rem;
    }

    .main {
        padding: 30px 0;
    }

    .hero-text h2,
    .section-title,
    .about-title,
    .tips-title,
    .slide-title {
        font-size: 1.5rem;
    }

    .tab-content {
        padding: 15px;
    }

    .field-box,
    .steps-box,
    .operation-box,
    .info-box {
        padding: 15px;
    }

    .steps-list li {
        gap: 10px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .slide-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .slide-duration {
        align-self: flex-start;
    }
}
