/* STYLE.CSS — Página 9: Engenheiro de Prompts */

/* CUSTOM PROPERTIES */
:root {
    --color-navy: #0A1628;
    --color-navy-alt: #0D1F38;
    --color-navy-deep: #111827;
    --color-orange: #E87722;
    --color-orange-light: #F09340;
    --color-blue: #1E90FF;
    --color-blue-dim: #1565C0;
    --color-white: #FFFFFF;
    --color-gray: #A0AABB;
    --color-gray-mid: #6B7280;
    --color-gray-dark: #374151;
    --color-success: #10B981;
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* SECTIONS — Auto Staggered Animation */
section {
    animation: fadeInUp 0.8s ease-out both;
}

section:nth-of-type(1) { animation-delay: 0s; }
section:nth-of-type(2) { animation-delay: 0.1s; }
section:nth-of-type(3) { animation-delay: 0.2s; }
section:nth-of-type(4) { animation-delay: 0.3s; }
section:nth-of-type(5) { animation-delay: 0.4s; }
section:nth-of-type(6) { animation-delay: 0.5s; }
section:nth-of-type(7) { animation-delay: 0.6s; }
section:nth-of-type(8) { animation-delay: 0.7s; }
section:nth-of-type(9) { animation-delay: 0.8s; }
section:nth-of-type(10) { animation-delay: 0.9s; }

/* BUTTONS — Hover Effects */
.btn:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* CARDS — Hover Effects */
[style*="cursor: pointer"] {
    transition: all 0.3s ease;
}

/* ACCORDION */
.accordion-button:not(.collapsed) {
    background-color: rgba(232, 119, 34, 0.1);
    color: var(--color-orange);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 0.25rem rgba(232, 119, 34, 0.25);
}

.accordion-button {
    border: none;
    padding: 20px 24px;
}

.accordion-button:not(.collapsed) .accordion-icon::before {
  content: "\f2ea"; /* bi-dash-circle */
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* FOCUS STATES */
a:focus, button:focus {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}

/* RESPONSIVE DESIGN */

/* TABLET (≤ 768px) */
@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.8rem, 5vw, 2.8rem) !important;
    }

    h2 {
        font-size: clamp(1.4rem, 3.5vw, 2rem) !important;
    }

    h3 {
        font-size: clamp(1rem, 2.5vw, 1.3rem) !important;
    }

    section {
        padding: 64px 0 !important;
    }

    [class*="container"] {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* MOBILE (≤ 576px) */
@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.3rem !important;
    }

    h3 {
        font-size: 1.1rem !important;
    }

    section {
        padding: 48px 0 !important;
    }

    [class*="container"] {
        padding-left: 12px;
        padding-right: 12px;
    }

    .row {
        gap: 24px !important;
    }

    .accordion-item {
        margin-bottom: 12px !important;
    }

    .accordion-button {
        padding: 16px 12px !important;
        font-size: 0.95rem;
    }
}

/* PRINT STYLES */
@media print {
    nav, footer, [class*="CTA"] {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }

    body {
        background: white;
        color: black;
    }
}

/* HIGH CONTRAST MODE SUPPORT */
@media (prefers-contrast: more) {
    body {
        border: 2px solid var(--color-white);
    }

    button, a {
        text-decoration: underline;
    }
}
