/* style.css */

/* --- CORE & TYPOGRAPHY --- */
body {
    background-color: #faecd7;
    background-image: radial-gradient(#aa442a 0.5px, transparent 0.5px);
    background-size: 20px 20px; 
}

body.has-bg {
    background-image: url('assets/background.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* --- UTILITIES --- */
.divider-line {
    height: 4px;
    background-color: #aa442a;
    border-radius: 2px;
    width: 100%;
    margin: 3rem 0;
    opacity: 0.8;
}

.hover-pop {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform; /* Performance Boost */
}
.hover-pop:hover {
    transform: scale(1.05) rotate(1deg);
}

.svg-fill-brand {
    fill: #aa442a;
}

/* --- VIEW NAVIGATION --- */
.view-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- FORM ELEMENTS --- */
.stash-radio:checked + label {
    background-color: #aa442a;
    color: #ffffff;
    border-color: #aa442a;
    font-weight: 900;
}

.stash-radio:checked + label span {
    color: #ffffff;
    font-weight: 700;
}

/* --- MARQUEE ANIMATIONS (Optimized) --- */
.marquee-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    /* Forces GPU Acceleration */
    transform: translateZ(0); 
    -webkit-transform: translateZ(0);
}

.marquee-content {
    display: flex;
    gap: 1rem;
    width: max-content;
    will-change: transform; /* Critical for smooth scrolling */
}

.marquee-item {
    flex-shrink: 0;
    width: 250px;
    height: 250px;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 2px solid rgba(170, 68, 42, 0.2);
    background: white;
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Optimization: prevent layout shifts */
    display: block; 
}

.hidden-slide {
    display: none !important;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.animate-scroll-left {
    animation: scrollLeft 120s linear infinite; 
}

.animate-scroll-right {
    animation: scrollRight 120s linear infinite;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* --- PLAYBOOK / GUIDE STYLES --- */
.guide-container { 
    max-width: 900px; 
    margin: 0 auto; 
    background-color: #FFF8E1; 
    border: 6px solid #aa442a; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.2); 
    color: #3E2723;
    text-align: left; 
    padding: 20px;
}

@media (min-width: 768px) {
    .guide-container { padding: 40px; }
}

.guide-container .header { text-align: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 4px solid #aa442a; }

.guide-container h1 { 
    color: #aa442a; 
    font-family: 'Alfa Slab One', cursive; 
    text-transform: uppercase; 
    margin-bottom: 10px; 
    line-height: 1.1; 
    font-size: 1.8em; 
}
@media (min-width: 768px) {
    .guide-container h1 { font-size: 2.5em; }
}

.guide-container .subtitle { font-size: 1.1em; color: #7A2A1E; font-style: italic; margin-top: 10px; font-family: 'Roboto Slab', serif; }
@media (min-width: 768px) {
    .guide-container .subtitle { font-size: 1.3em; }
}

.guide-container .intro { background-color: #aa442a; color: #FFF8E1; padding: 20px; margin-bottom: 30px; border-radius: 8px; font-size: 1em; text-align: center; font-family: 'Roboto Slab', serif; }

/* Method Chooser */
.method-chooser { background: linear-gradient(135deg, #7A2A1E, #aa442a); color: #FFF8E1; padding: 20px; margin: 30px 0; border-radius: 10px; text-align: center; }
.method-chooser h2 { font-size: 1.5em; margin-bottom: 15px; font-family: 'Alfa Slab One', cursive; text-transform: uppercase; }
@media (min-width: 768px) {
    .method-chooser h2 { font-size: 2.2em; }
    .method-chooser { padding: 30px; margin: 40px 0; }
}

.method-buttons { display: grid; grid-template-columns: 1fr; gap: 15px; margin-top: 20px; }
@media (min-width: 640px) {
    .method-buttons { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 30px; }
}

.method-btn { 
    background-color: #FFF8E1; 
    color: #aa442a; 
    padding: 15px; 
    border: 4px solid #5D1F17; 
    border-radius: 10px; 
    cursor: pointer; 
    transition: all 0.3s; 
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.method-btn img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 10px; }
@media (min-width: 768px) {
    .method-btn { padding: 20px; }
    .method-btn img { width: 80px; height: 80px; }
}

.method-btn span { font-family: 'Alfa Slab One', cursive; font-size: 1em; text-transform: uppercase; }
@media (min-width: 768px) {
    .method-btn span { font-size: 1.2em; }
}

.method-btn:hover { background-color: #5D1F17; color: #FFF8E1; transform: scale(1.02); }
.method-btn.active { background-color: #5D1F17; color: #FFF8E1; box-shadow: 0 0 0 4px #FFD700; }

.method-section { display: none; }
.method-section.active { display: block; }

/* Steps & Timeline */
.guide-container .timeline { margin: 30px 0; padding: 20px; background-color: #E8D5C4; border-left: 6px solid #aa442a; font-family: 'Roboto Slab', serif; }
.guide-container .timeline h2 { color: #aa442a; font-size: 1.5em; margin-bottom: 15px; font-family: 'Alfa Slab One', cursive; text-transform: uppercase; }
@media (min-width: 768px) {
    .guide-container .timeline { padding: 30px; margin: 40px 0; }
    .guide-container .timeline h2 { font-size: 1.8em; }
}

.timeline-item { margin-bottom: 10px; padding-left: 0; font-size: 0.95em; }
@media (min-width: 768px) {
    .timeline-item { padding-left: 20px; font-size: 1.1em; }
}

.guide-container .step { margin-bottom: 30px; padding: 20px; background-color: #FFF; border: 3px solid #aa442a; border-radius: 10px; position: relative; }
@media (min-width: 768px) {
    .guide-container .step { margin-bottom: 40px; padding: 30px; }
}

.guide-container .step-number { 
    display: inline-block; background-color: #aa442a; color: #FFF8E1; 
    width: 40px; height: 40px; line-height: 40px; 
    text-align: center; border-radius: 50%; 
    font-size: 1.4em; font-weight: bold; margin-bottom: 10px; 
    font-family: 'Alfa Slab One', cursive; 
}
@media (min-width: 768px) {
    .guide-container .step-number { width: 50px; height: 50px; line-height: 50px; font-size: 1.8em; margin-bottom: 15px; }
}

.guide-container .step h3 { color: #aa442a; font-size: 1.4em; margin-bottom: 10px; font-family: 'Alfa Slab One', cursive; text-transform: uppercase; display: inline-block; margin-left: 10px; vertical-align: middle; }
@media (min-width: 768px) {
    .guide-container .step h3 { font-size: 1.8em; display: block; margin-left: 0; margin-bottom: 15px; }
}

.guide-container .step-content { font-size: 1em; line-height: 1.6; margin-bottom: 15px; font-family: 'Roboto Slab', serif; }
@media (min-width: 768px) {
    .guide-container .step-content { font-size: 1.1em; line-height: 1.8; }
}

.guide-container .step-content ul, .guide-container .step-content ol { margin: 15px 0; padding-left: 20px; list-style-position: inside; }
@media (min-width: 768px) {
    .guide-container .step-content ul, .guide-container .step-content ol { padding-left: 30px; }
}

.guide-container .step-content li { margin-bottom: 8px; }

/* Guide Utilities */
.exact-instruction { background-color: #E3F2FD; border-left: 4px solid #1976D2; padding: 15px; margin: 15px 0; font-size: 0.95em; font-family: 'Roboto Slab', serif; }
@media (min-width: 768px) {
    .exact-instruction { padding: 20px; margin: 20px 0; font-size: 1.1em; }
}

.pro-tip { background-color: #FFF3CD; border-left: 4px solid #FFC107; padding: 15px; margin: 15px 0; font-style: italic; font-family: 'Roboto Slab', serif; color: #333; font-size: 0.95em; }
.warning { background-color: #FFE5E5; border-left: 4px solid #D32F2F; padding: 15px; margin: 15px 0; font-weight: bold; font-family: 'Roboto Slab', serif; color: #333; font-size: 0.95em;}

.critical { background-color: #FF5252; color: white; padding: 15px; margin: 15px 0; border-radius: 8px; font-size: 1.1em; font-weight: bold; text-align: center; font-family: 'Roboto Slab', serif; }
@media (min-width: 768px) {
    .critical { padding: 20px; margin: 20px 0; font-size: 1.2em; }
}

.guide-container .tools-section { background-color: #E8D5C4; padding: 20px; margin: 20px 0; border-radius: 8px; font-family: 'Roboto Slab', serif; }
.guide-container .tools-section h4 { color: #aa442a; font-size: 1.2em; margin-bottom: 12px; font-family: 'Alfa Slab One', cursive; text-transform: uppercase; }
.guide-container .tools-list { list-style: none; padding-left: 0; }
.guide-container .tools-list li { margin-bottom: 8px; padding-left: 25px; position: relative; font-size: 0.95em; }
@media (min-width: 768px) {
    .guide-container .tools-section { padding: 25px; }
    .guide-container .tools-section h4 { font-size: 1.3em; }
}

.guide-container .tools-list li:before { content: "🍕"; position: absolute; left: 0; }
.guide-container a { color: #aa442a; text-decoration: underline; }

.finishing-touches { background: linear-gradient(135deg, #aa442a, #7A2A1E); color: #FFF8E1; padding: 25px; margin-top: 30px; border-radius: 10px; text-align: center; font-family: 'Roboto Slab', serif; }
.finishing-touches h3 { font-size: 1.6em; margin-bottom: 15px; font-family: 'Alfa Slab One', cursive; text-transform: uppercase; }
@media (min-width: 768px) {
    .finishing-touches { padding: 30px; margin-top: 40px; }
    .finishing-touches h3 { font-size: 2em; }
}

.signature { text-align: right; font-size: 1.5em; font-style: italic; color: #aa442a; margin-top: 20px; font-family: 'Roboto Slab', serif; }
@media (min-width: 768px) {
    .signature { font-size: 1.8em; margin-top: 30px; }
}