/* ========================================
   POPUP EVENTOS - Estilos
   ======================================== */

/* Popup Container */
.eventos-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.eventos-popup.active {
    display: flex;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 26, 58, 0.95);
    backdrop-filter: blur(10px);
}

.popup-container {
    position: relative;
    background: white;
    border-radius: 24px;
    max-width: 1200px;
    width: 95%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    display: flex;
    flex-direction: column;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(10, 26, 58, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #0A1A3A;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.popup-close:hover {
    background: #0A1A3A;
    color: white;
    transform: rotate(90deg);
}

/* Popup Header */
.popup-header {
    text-align: center;
    padding: 40px 40px 25px;
    background: linear-gradient(135deg, #0A1A3A, #163A63);
    color: white !important;
    border-radius: 24px 24px 0 0;
    flex-shrink: 0;
}

.popup-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 12px;
    color: white !important;
}

.popup-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: white !important;
}

/* Popup Content */
.popup-content {
    padding: 35px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    flex: 1;
    overflow-y: auto;
}

/* Evento Cards */
.evento-popup-card {
    background: white;
    border: 2px solid #E8ECF2;
    border-radius: 16px;
    padding: 30px 25px;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.evento-popup-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-color: #D4A857;
}

/* Card Destaque */
.evento-popup-card.destaque {
    border: 3px solid #D4A857;
    background: linear-gradient(135deg, #FFF9E6, #FFFFFF);
    box-shadow: 0 8px 30px rgba(212, 168, 87, 0.2);
}

.evento-popup-card.destaque:hover {
    box-shadow: 0 12px 50px rgba(212, 168, 87, 0.3);
}

.card-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, #FFD700, #D4A857);
    color: #0A1A3A;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(212, 168, 87, 0.4);
}

.card-badge i {
    font-size: 0.9rem;
}

/* Card Icon */
.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: white;
}

.card-icon.integrado {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
}

.card-icon.fcc {
    background: linear-gradient(135deg, #0A1A3A, #163A63);
}

.card-icon.feirao {
    background: linear-gradient(135deg, #D4A857, #C29847);
}

/* Card Content */
.evento-popup-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0A1A3A;
    margin-bottom: 6px;
}

.card-subtitle {
    font-size: 0.9rem;
    color: #D4A857;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-description {
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
    font-size: 0.95rem;
}

.card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 0.9rem;
}

.card-features i {
    color: #D4A857;
    font-size: 0.85rem;
}

/* Botões */
.btn-popup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    background: #0A1A3A;
    color: white;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    text-align: center;
}

.btn-popup:hover {
    background: #163A63;
    transform: translateX(5px);
}

.btn-popup.destaque {
    background: linear-gradient(135deg, #D4A857, #C29847);
    color: #0A1A3A;
    font-size: 1rem;
    padding: 15px 30px;
}

.btn-popup.destaque:hover {
    background: linear-gradient(135deg, #C29847, #B08737);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 87, 0.4);
}

/* Popup Footer */
.popup-footer {
    background: #F9FAFB;
    padding: 20px 40px;
    text-align: center;
    border-radius: 0 0 24px 24px;
    border-top: 1px solid #E8ECF2;
    flex-shrink: 0;
}

.popup-footer p {
    color: #6B7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.popup-footer i {
    color: #D4A857;
    font-size: 1rem;
}

/* Botão Flutuante */
.btn-eventos-float {
    position: fixed;
    bottom: 110px;
    right: 30px;
    background: linear-gradient(135deg, #D4A857, #C29847);
    color: white;
    padding: 16px 28px;
    border-radius: 50px;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(212, 168, 87, 0.4);
    z-index: 998;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.btn-eventos-float:hover {
    background: linear-gradient(135deg, #C29847, #B08737);
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(212, 168, 87, 0.5);
}

.btn-eventos-float i {
    font-size: 1.3rem;
    color: white;
}

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

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 6px 25px rgba(212, 168, 87, 0.4);
    }
    50% {
        box-shadow: 0 6px 35px rgba(212, 168, 87, 0.6);
    }
}

/* Responsive */

/* Large Tablets e Laptops pequenos (1024px) */
@media (max-width: 1024px) {
    .popup-container {
        width: 92%;
        max-height: 92vh;
    }
    
    .popup-content {
        grid-template-columns: 1fr;
        padding: 40px 30px;
    }
    
    .evento-popup-card.destaque {
        order: -1;
    }
}

/* Tablets (768px) */
@media (max-width: 768px) {
    .popup-container {
        width: 95%;
        max-height: 93vh;
        border-radius: 20px;
    }
    
    .popup-header {
        padding: 45px 30px 30px;
        border-radius: 20px 20px 0 0;
    }
    
    .popup-header h2 {
        font-size: 2.2rem;
    }
    
    .popup-header p {
        font-size: 1.05rem;
    }
    
    .popup-content {
        padding: 35px 25px;
        gap: 25px;
    }
    
    .evento-popup-card {
        padding: 35px 28px;
    }
    
    .card-icon {
        width: 75px;
        height: 75px;
        font-size: 2.3rem;
    }
    
    .evento-popup-card h3 {
        font-size: 1.5rem;
    }
    
    .btn-popup {
        padding: 15px 28px;
        font-size: 0.98rem;
    }
    
    .btn-popup.destaque {
        padding: 17px 32px;
        font-size: 1.02rem;
    }
    
    .popup-footer {
        padding: 22px 25px;
    }
    
    .popup-footer p {
        font-size: 0.92rem;
    }
}

/* Mobile (640px) */
@media (max-width: 640px) {
    .popup-container {
        width: 96%;
        max-height: 94vh;
        border-radius: 18px;
    }
    
    .popup-close {
        top: 18px;
        right: 18px;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
    
    .popup-header {
        padding: 50px 25px 28px;
        border-radius: 18px 18px 0 0;
    }
    
    .popup-header h2 {
        font-size: 1.9rem;
    }
    
    .popup-header p {
        font-size: 1rem;
    }
    
    .popup-content {
        padding: 30px 20px;
        gap: 22px;
    }
    
    .evento-popup-card {
        padding: 32px 24px;
    }
    
    .card-badge {
        top: -12px;
        right: 15px;
        padding: 7px 16px;
        font-size: 0.7rem;
    }
    
    .card-icon {
        width: 72px;
        height: 72px;
        font-size: 2.1rem;
        margin-bottom: 22px;
    }
    
    .evento-popup-card h3 {
        font-size: 1.45rem;
    }
    
    .card-subtitle {
        font-size: 0.92rem;
    }
    
    .card-description {
        font-size: 0.95rem;
        line-height: 1.65;
    }
    
    .card-features {
        gap: 9px;
        margin-bottom: 22px;
    }
    
    .card-features li {
        font-size: 0.92rem;
    }
    
    .btn-popup {
        padding: 15px 26px;
        font-size: 0.95rem;
    }
    
    .btn-popup.destaque {
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    .popup-footer {
        padding: 20px;
    }
    
    .popup-footer p {
        flex-direction: column;
        gap: 8px;
        font-size: 0.9rem;
    }
    
    .btn-eventos-float {
        bottom: 100px;
        right: 18px;
        padding: 14px 24px;
        font-size: 0.92rem;
    }
    
    .btn-eventos-float i {
        font-size: 1.2rem;
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    .popup-container {
        width: 98%;
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .popup-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .popup-header {
        padding: 48px 20px 25px;
        border-radius: 16px 16px 0 0;
    }
    
    .popup-header h2 {
        font-size: 1.7rem;
        margin-bottom: 12px;
    }
    
    .popup-header p {
        font-size: 0.95rem;
    }
    
    .popup-content {
        padding: 25px 18px;
        gap: 20px;
    }
    
    .evento-popup-card {
        padding: 28px 20px;
    }
    
    .card-badge {
        top: -10px;
        right: 12px;
        padding: 6px 14px;
        font-size: 0.68rem;
    }
    
    .card-icon {
        width: 68px;
        height: 68px;
        font-size: 2rem;
        margin-bottom: 20px;
        border-radius: 14px;
    }
    
    .evento-popup-card h3 {
        font-size: 1.35rem;
        margin-bottom: 6px;
    }
    
    .card-subtitle {
        font-size: 0.88rem;
        margin-bottom: 12px;
    }
    
    .card-description {
        font-size: 0.92rem;
        line-height: 1.6;
        margin-bottom: 18px;
    }
    
    .card-features {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .card-features li {
        font-size: 0.88rem;
    }
    
    .card-features i {
        font-size: 0.85rem;
    }
    
    .btn-popup {
        padding: 14px 24px;
        font-size: 0.92rem;
        gap: 8px;
    }
    
    .btn-popup.destaque {
        padding: 15px 28px;
        font-size: 0.98rem;
    }
    
    .popup-footer {
        padding: 18px 15px;
        border-radius: 0 0 16px 16px;
    }
    
    .popup-footer p {
        flex-direction: column;
        gap: 6px;
        font-size: 0.85rem;
    }
    
    .popup-footer i {
        font-size: 1rem;
    }
    
    .btn-eventos-float {
        bottom: 95px;
        right: 15px;
        padding: 12px 20px;
        font-size: 0.88rem;
        gap: 10px;
    }
    
    .btn-eventos-float span {
        display: none;
    }
    
    .btn-eventos-float i {
        font-size: 1.15rem;
    }
}

/* Extra Small Mobile (360px) */
@media (max-width: 360px) {
    .popup-container {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .popup-header {
        padding: 45px 18px 22px;
        border-radius: 0;
    }
    
    .popup-header h2 {
        font-size: 1.5rem;
    }
    
    .popup-header p {
        font-size: 0.9rem;
    }
    
    .popup-content {
        padding: 22px 15px;
    }
    
    .evento-popup-card {
        padding: 25px 18px;
    }
    
    .card-icon {
        width: 65px;
        height: 65px;
        font-size: 1.9rem;
    }
    
    .evento-popup-card h3 {
        font-size: 1.25rem;
    }
    
    .card-subtitle {
        font-size: 0.85rem;
    }
    
    .card-description {
        font-size: 0.88rem;
    }
    
    .card-features li {
        font-size: 0.85rem;
    }
    
    .btn-popup {
        padding: 13px 22px;
        font-size: 0.88rem;
    }
    
    .btn-popup.destaque {
        padding: 14px 26px;
        font-size: 0.92rem;
    }
    
    .popup-footer {
        padding: 16px 12px;
        border-radius: 0;
    }
    
    .popup-footer p {
        font-size: 0.82rem;
    }
    
    .btn-eventos-float {
        bottom: 90px;
        right: 12px;
        padding: 11px 18px;
    }
    
    .btn-eventos-float i {
        font-size: 1.1rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .popup-container {
        max-height: 98vh;
    }
    
    .popup-header {
        padding: 35px 25px 20px;
    }
    
    .popup-header h2 {
        font-size: 1.6rem;
    }
    
    .popup-header p {
        font-size: 0.95rem;
    }
    
    .popup-content {
        padding: 25px 20px;
    }
    
    .evento-popup-card {
        padding: 25px 22px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .popup-footer {
        padding: 15px 20px;
    }
}

/* Scroll customizado para o popup */
.popup-container::-webkit-scrollbar {
    width: 8px;
}

.popup-container::-webkit-scrollbar-track {
    background: #F9FAFB;
}

.popup-container::-webkit-scrollbar-thumb {
    background: #D4A857;
    border-radius: 4px;
}

.popup-container::-webkit-scrollbar-thumb:hover {
    background: #C29847;
}
