/* 
  FIT 2026 - Festival de Inverno de Itaitu
  Design System: Vibrante, Moderno, Cultural
*/

:root {
    --primary-color: #FFB800;
    /* Amarelo Vibrante */
    --secondary-color: #FF6B00;
    /* Laranja Energético */
    --dark-color: #1A1A1A;
    --light-color: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background-color: #fcfcfc;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Layout Components --- */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background: transparent;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-attachment: fixed;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 10px;
    background: linear-gradient(to bottom, #fff, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.hero .theme {
    display: block;
    font-style: italic;
    opacity: 0.9;
    margin-top: 10px;
}

/* --- Countdown --- */
.countdown-section {
    padding: 60px 0;
    background: var(--dark-color);
    color: white;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 30px 30px 0 0;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.countdown-item {
    text-align: center;
}

.countdown-item span {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
}

.countdown-item label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* --- Programming --- */
.section-title {
    text-align: center;
    padding: 80px 0 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
}

.day-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-day {
    background: #f0f0f0;
    color: #666;
    padding: 10px 25px;
}

.btn-day.active {
    background: var(--secondary-color);
    color: white;
}

.prog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
}

.card-content {
    padding: 25px;
}

.card-tag {
    background: #FFF8E1;
    color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
}

/* --- Forms --- */
.forms-section {
    padding: 80px 0;
    background: #FFF8F0;
}

.registration-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.forms-column {
    width: 100%;
}

.side-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 30px;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 40px;
}

.side-list-scroll {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom Scrollbar */
.side-list-scroll::-webkit-scrollbar {
    width: 5px;
}

.side-list-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.form-card {
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

/* --- Tourism --- */
.tourism {
    padding: 100px 0;
    background: linear-gradient(rgba(255, 107, 0, 0.05), rgba(255, 184, 0, 0.05));
    text-align: center;
}

.tourism-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 30px;
    margin-top: 40px;
    display: block;
}

.img-credit {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    backdrop-filter: blur(5px);
    pointer-events: none;
}

/* --- Floating WhatsApp --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: pulse 2s infinite;
}

/* --- Admin Specific Style (briefly) --- */
.admin-navbar {
    background: var(--dark-color);
    padding: 15px 0;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Sponsors Banner --- */
.sponsors-banner {
    padding: 40px 0;
    background: white;
    border-top: 1px solid #eee;
}

.sponsor-track-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.sponsor-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.sponsor-item {
    flex-shrink: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-item img {
    height: 100%;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.6;
    transition: var(--transition);
}

.sponsor-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


@media (max-width: 992px) {
    .registration-layout {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }
}

@media (max-width: 768px) {

    .forms-grid,
    .tourism-grid,
    .expositor-layout {
        grid-template-columns: 1fr !important;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .countdown-container {
        gap: 15px;
    }

    .countdown-item span {
        font-size: 2rem;
    }
}

/* --- Sorteio Section --- */
.sorteio-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.sorteio-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 184, 0, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.sorteio-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 60px;
    position: relative;
    z-index: 2;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 900px;
    margin: 40px auto;
}

.sorteio-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 184, 0, 0.5));
}

.sorteio-header h2 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: 900;
}

.sorteio-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 40px;
}

.sorteio-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.sorteio-form .form-group label {
    margin-bottom: 10px;
    color: var(--primary-color);
    display: block;
}

.sorteio-form input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 20px;
    font-size: 1rem;
    width: 100%;
    border-radius: 10px;
    outline: none;
    transition: var(--transition);
}

.sorteio-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.sorteio-form input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 184, 0, 0.2);
}

.form-group-terms label {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 300 !important;
}

.form-group-terms a:hover {
    text-shadow: 0 0 10px rgba(255, 184, 0, 0.5);
}

/* Terms Modal Specifics */
.terms-modal-card {
    max-width: 600px !important;
}

.terms-content::-webkit-scrollbar {
    width: 6px;
}

.terms-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.btn-lg {
    padding: 18px 50px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0 auto;
}

/* Feedback State */
.sorteio-feedback {
    animation: fadeIn 0.6s ease-out;
}

.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.id-badge {
    background: var(--primary-color);
    color: var(--dark-color);
    padding: 15px 30px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    margin: 25px 0;
    font-weight: 900;
}

.id-badge span {
    font-size: 0.9rem;
    text-transform: uppercase;
    opacity: 0.7;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .sorteio-card {
        padding: 40px 20px;
    }

    .sorteio-header h2 {
        font-size: 2rem;
    }
}

/* --- Custom Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-card {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(15, 15, 15, 0.98));
    border: 1px solid rgba(255, 215, 0, 0.4);
    padding: 50px 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8),
        inset 0 0 20px rgba(255, 215, 0, 0.05);
    animation: scaleUpModal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-icon {
    font-size: 4.5rem;
    color: #ffd700;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
}

.modal-icon.error {
    color: #ff4d4d;
    filter: drop-shadow(0 0 15px rgba(255, 77, 77, 0.3));
}

.modal-icon.success {
    color: #4caf50;
    filter: drop-shadow(0 0 15px rgba(76, 175, 80, 0.3));
}

.modal-card h3 {
    margin-bottom: 15px;
    font-size: 2rem;
    color: #ffd700;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.modal-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    line-height: 1.7;
    font-size: 1.15rem;
}

.modal-card .btn {
    min-width: 160px;
    box-shadow: 0 10px 20px rgba(255, 184, 0, 0.2);
}

.modal-card .btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: #fff;
    color: var(--dark-color);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.4);
}

.modal-icon i {
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scaleUpModal {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}