/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;600&family=Marcellus+SC&family=Bilbo+Swash+Caps&family=Cinzel:wght@400;700&display=swap');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 13px;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('ring.jpg') center/cover no-repeat fixed;
    background-color: #0e0e0e;
    color: #b4b4b4;
    font-family: 'Marcellus SC', serif;
    line-height: 1.7;
    word-wrap: break-word;
    min-height: 100vh;
    position: relative;
    font-smooth: auto;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(224, 136, 33, 0.2) 0%, rgba(255, 69, 0, 0.1) 50%, transparent 100%), rgba(0, 0, 0, 0.4);
    opacity: 0.3;
    z-index: -1;
    animation: fireGlow 3s ease-in-out infinite;
}

p, blockquote {
    margin-bottom: 1.7rem;
}

b, strong {
    font-weight: 600;
    color: #e08821;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Bilbo Swash Caps', cursive;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

h1, .h1 {
    font-size: 8rem;
    text-align: center;
    background: linear-gradient(135deg, #e08821, #ffa500);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(224, 136, 33, 0.4);
    margin-bottom: 0;
    animation: pulse 1.5s ease-in-out infinite;
}

h2, .h2 {
    font-size: 2.7rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    margin: -0.5rem 0 1.8rem;
}

h3, .h3 {
    font-size: 2.5rem;
    color: #e08821;
    margin-bottom: 1.5rem;
    padding-left: 0px;
    position: relative;
}

h3::before, .h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    border-radius: 2px;
}

h2:hover, h3:hover, h4:hover, h5:hover, h6:hover,
.h2:hover, .h3:hover, .h4:hover, .h5:hover, .h6:hover {
    animation: pulse 1.5s ease-in-out infinite;
}

acronym {
    border-bottom: 1px dotted #e08821;
    cursor: help;
}

#container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-template-areas: 
        'intro sidebar'
        'main sidebar'
        'footer footer';
    padding: 0 20px;
    min-height: 100vh;
}

#jar-header {
    text-align: center;
    padding: 70px 20px 50px;
    position: relative;
    overflow: hidden;
}

#jar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(224, 136, 33, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.intro {
    grid-area: intro;
    padding-bottom: 0;
}

.main.supporting {
    grid-area: main;
    margin-bottom: 0;
}

.main.supporting h3 {
    margin-bottom: 25px;
    font-size: 2.5rem;
    padding-left: 0px;
}

.main.supporting h3::before {
    display: block;
}

.main.supporting p {
    text-align: left;
    max-width: 100%;
}

.summary, .preamble,
#jar-explanation,
#jar-participation,
#jar-benefits,
#jar-requirements {
    margin-bottom: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(224, 136, 33, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.summary:hover, .preamble:hover,
#jar-explanation:hover,
#jar-participation:hover,
#jar-benefits:hover,
#jar-requirements:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(224, 136, 33, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(224, 136, 33, 0.15);
}

.sidebar {
    grid-area: sidebar;
    position: sticky;
    top: 40px;
    margin-bottom: 30px;
    height: fit-content;
}

.wrapper {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(224, 136, 33, 0.25);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(20px);
    margin-left: 30px;
    min-width: 300px;
}

.design-selection h3,
.design-archives h3,
.design-resources h3 {
    color: #e08821;
    font-size: 2rem;
    margin-bottom: 18px;
    text-align: left;
    position: relative;
    padding-left: 0;
}

ul {
    list-style: none;
    margin-bottom: 25px;
}

li {
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    border: 1px solid rgba(224, 136, 33, 0.15);
    transition: all 0.3s ease;
}

li:hover {
    background: rgba(224, 136, 33, 0.15);
    border-color: rgba(224, 136, 33, 0.35);
    transform: translateX(5px);
}

a {
    color: #e08821;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: #ffa500;
    text-shadow: 0 0 10px rgba(224, 136, 33, 0.6);
}

.design-name {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.designer-name {
    font-size: 0.85rem;
    opacity: 0.85;
}

.footer, #jar-footer {
    grid-area: footer;
    text-align: center;
    padding: 40px 10px;
    border-top: 2px solid rgba(224, 136, 33, 0.25);
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    position: relative;
}

#jar-footer {
    border: none;
    margin-bottom: 30px;
    flex-direction: row;
    gap: 20px;
}

.footer::before {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
}

.footer a, #jar-footer a {
    padding: 10px 20px;
    background: rgba(224, 136, 33, 0.15);
    border: 1px solid rgba(224, 136, 33, 0.35);
    border-radius: 6px;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.8px;
    min-width: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}

.footer a:hover, #jar-footer a:hover {
    background: rgba(224, 136, 33, 0.35);
    border-color: #e08821;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(224, 136, 33, 0.45);
    text-shadow: 0 0 10px rgba(224, 136, 33, 0.9);
}

#extraDiv1, #extraDiv2, #extraDiv3,
#extraDiv4, #extraDiv5, #extraDiv6 {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    border-radius: 50%;
    opacity: 0.8;
}

#extraDiv1 { top: 15%; right: 15%; width: 10px; height: 10px; }
#extraDiv2 { bottom: 25%; left: 10%; width: 12px; height: 12px; }
#extraDiv3 { top: 65%; right: 10%; width: 9px; height: 9px; }
#extraDiv4 { bottom: 40%; left: 30%; width: 7px; height: 7px; }
#extraDiv5 { top: 40%; left: 50%; width: 11px; height: 11px; }
#extraDiv6 { bottom: 10%; right: 25%; width: 6px; height: 6px; }

#extraDiv1::before, #extraDiv1::after,
#extraDiv2::before, #extraDiv2::after,
#extraDiv3::before, #extraDiv3::after,
#extraDiv4::before, #extraDiv4::after,
#extraDiv5::before, #extraDiv5::after,
#extraDiv6::before, #extraDiv6::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 165, 0, 0.8), rgba(255, 69, 0, 0.6), transparent 70%);
    box-shadow: 0 0 6px rgba(255, 140, 0, 0.8);
    filter: drop-shadow(0 0 5px #ff6a00);
}

#extraDiv1::before { width: 4px; height: 4px; top: 2px; left: 1px; animation: emberRiseUp 9s linear infinite, flickerOpacity 3s infinite; --driftX: 8px; }
#extraDiv1::after { width: 3px; height: 3px; top: 6px; left: 5px; animation: emberRiseUp 11s linear infinite 2s, flickerOpacity 4s infinite; --driftX: -6px; }
#extraDiv2::before { width: 5px; height: 5px; top: 3px; left: 4px; animation: emberRiseUp 8.5s linear infinite 1s, flickerOpacity 3.5s infinite; --driftX: 10px; }
#extraDiv2::after { width: 3px; height: 3px; top: 8px; left: 8px; animation: emberRiseUp 10.2s linear infinite 0.5s, flickerOpacity 3.8s infinite; --driftX: -7px; }
#extraDiv3::before { width: 4px; height: 4px; top: 2px; left: 2px; animation: emberRiseUp 9.8s linear infinite 1.6s, flickerOpacity 3.4s infinite; --driftX: 9px; }
#extraDiv3::after { width: 3px; height: 3px; top: 5px; left: 5px; animation: emberRiseUp 12s linear infinite 0.9s, flickerOpacity 4s infinite; --driftX: -5px; }
#extraDiv4::before { width: 3px; height: 3px; top: 2px; left: 2px; animation: emberRiseUp 11s linear infinite 2s, flickerOpacity 3.6s infinite; --driftX: 7px; }
#extraDiv4::after { width: 2px; height: 2px; top: 4px; left: 4px; animation: emberRiseUp 10.5s linear infinite 1.3s, flickerOpacity 3.9s infinite; --driftX: -6px; }
#extraDiv5::before { width: 5px; height: 5px; top: 3px; left: 4px; animation: emberRiseUp 9.2s linear infinite 1.1s, flickerOpacity 3.7s infinite; --driftX: 10px; }
#extraDiv5::after { width: 4px; height: 4px; top: 6px; left: 6px; animation: emberRiseUp 12.5s linear infinite 1.8s, flickerOpacity 4.2s infinite; --driftX: -8px; }
#extraDiv6::before { width: 3px; height: 3px; top: 1.5px; left: 1.5px; animation: emberRiseUp 10s linear infinite 0.8s, flickerOpacity 3.5s infinite; --driftX: 6px; }
#extraDiv6::after { width: 2px; height: 2px; top: 3px; left: 3px; animation: emberRiseUp 9.5s linear infinite 1.4s, flickerOpacity 3.8s infinite; --driftX: -5px; }

@keyframes fireGlow {
    0% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 0.5; transform: translateY(-10px); }
    100% { opacity: 0.3; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); text-shadow: 0 0 10px rgba(224, 136, 33, 0.4); }
    50% { transform: scale(1.05); text-shadow: 0 0 15px rgba(224, 136, 33, 0.6); }
}

@keyframes emberRiseUp {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 1; filter: drop-shadow(0 0 3px #ff6a00); }
    50% { opacity: 0.5; filter: drop-shadow(0 0 6px #ff4500); }
    100% { transform: translateY(-110vh) translateX(var(--driftX, 10px)) scale(0.6); opacity: 0; filter: drop-shadow(0 0 0 transparent); }
}

@keyframes flickerOpacity {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.intro, .main > div {
    animation: fadeInUp 0.8s ease-out;
}

.summary { animation-delay: 0.1s; }
.preamble { animation-delay: 0.2s; }
.explanation { animation-delay: 0.3s; }
.participation { animation-delay: 0.4s; }
.benefits { animation-delay: 0.5s; }
.requirements { animation-delay: 0.6s; }
.sidebar { animation-delay: 0.7s; }

/* Media Queries */
@media (max-width: 992px) {
    #container {
        grid-template-columns: 1fr;
        grid-template-areas: 
            'intro'
            'main'
            'sidebar'
            'footer';
        margin: auto;
        align-items: center;
        justify-content: center;
        max-width: 90%;
    }

    .summary, .preamble,
    #jar-explanation,
    #jar-participation,
    #jar-benefits,
    #jar-requirements {
        margin-bottom: 20px;
    }

    .wrapper {
        margin: auto;
        align-items: center;
        justify-content: center;
        max-width: 80%;
    }
    

}

@media (max-width: 768px) {
    h1, .h1 { font-size: 2.5rem; }

    .summary, .preamble,
    #jar-explanation,
    #jar-participation,
    #jar-benefits,
    #jar-requirements {
        padding: 25px;
    }

    .footer, #jar-footer {
        padding: 25px 15px;
        gap: 12px;
        margin-top: 20px;
    }

    .footer a, #jar-footer a {
        padding: 8px 15px;
        font-size: 0.85rem;
        min-width: 50px;
    }
}

@media (max-width: 576px) {
    .summary, .preamble,
    #jar-explanation,
    #jar-participation,
    #jar-benefits,
    #jar-requirements {
        padding: 20px;
        margin-bottom: 15px;
    }

    .footer, #jar-footer {
        flex-wrap: wrap;
        padding: 20px 15px;
        gap: 10px;
        margin-top: 15px;
    }

    .footer a, #jar-footer a {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 50px;
    }
}