/**
 * Home CSS - Estilos específicos da página inicial (index.html)
 */

/* ==================== COUNTDOWN GAUGE ==================== */

.countdown-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-dark) 100%);
    margin-left: var(--sidebar-width);
    text-align: center;
    position: relative;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, var(--gold));
}

.countdown-gauges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gauge {
    position: relative;
    width: 180px;
    height: 110px;
}

.gauge-svg {
    width: 100%;
    height: 100%;
}

/* Background arc - decorative frame */
.gauge-bg {
    fill: none;
    stroke: rgba(212, 175, 90, 0.15);
    stroke-width: 12;
    stroke-linecap: round;
}

/* Progress arc - animated fill */
.gauge-progress {
    fill: none;
    stroke: var(--gold); /* Fallback */
    stroke: url(#gaugeGradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 0.5s ease-out;
    filter: drop-shadow(0 0 8px rgba(212, 175, 90, 0.4));
}

/* Tick marks on the gauge */
.gauge-ticks line {
    stroke: rgba(212, 175, 90, 0.4);
    stroke-width: 2;
}

.gauge-ticks line.major {
    stroke: var(--gold);
    stroke-width: 3;
}

/* Needle/pointer */
.gauge-needle {
    transform-origin: 100px 90px;
    transition: transform 0.5s cubic-bezier(0.4, 2, 0.4, 1);
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.3));
}

.gauge-needle polygon {
    fill: var(--gold);
}

.gauge-needle circle {
    fill: var(--gold-dark);
    stroke: var(--gold-light);
    stroke-width: 1.5;
}

/* Center value display - Speedometer style (aparece no hover) */
.gauge-value {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    text-align: center;
    background: linear-gradient(180deg, var(--navy-dark) 0%, rgba(10, 22, 40, 0.98) 100%);
    border: 2px solid var(--gold);
    border-radius: 6px;
    padding: 0.4rem 1rem;
    min-width: 55px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(212, 175, 90, 0.2),
        0 0 25px rgba(212, 175, 90, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.gauge-value::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid var(--gold);
}

.gauge-number {
    font-family: 'Montserrat', var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-light);
    line-height: 1;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(212, 175, 90, 0.5);
}

.gauge-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 1.5rem;
    opacity: 0.9;
}

/* Tooltip com número no hover */
.gauge-container {
    position: relative;
    cursor: pointer;
}

.gauge-container:hover .gauge-value {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Decorative border around gauge */
.gauge::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -20px;
    border: 1px solid rgba(212, 175, 90, 0.2);
    border-radius: 100px 100px 20px 20px;
    pointer-events: none;
}

/* Art deco decorative corners */
.gauge::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Gradient definition for progress arc */
.gauge-container:first-child .gauge-svg {
    overflow: visible;
}

/* SVG Gradient (added via JS) */

/* Pulse animation for seconds gauge */
@keyframes gauge-pulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(212, 175, 90, 0.4)); }
    50% { filter: drop-shadow(0 0 15px rgba(212, 175, 90, 0.7)); }
}

.gauge-container:last-child .gauge-progress {
    animation: gauge-pulse 1s ease-in-out infinite;
}

/* ==================== LOCATION ==================== */

.location-section {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
    position: relative;
    margin-left: var(--sidebar-width);
}

.location-header {
    text-align: center;
    margin-bottom: 4rem;
}

.location-header h2 {
    font-family: var(--font-primary);
    font-size: 3rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.location-header p {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    color: rgba(245, 240, 232, 0.7);
    font-style: italic;
}

.location-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 380px));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
}

.location-card {
    background: linear-gradient(135deg,
        rgba(80, 115, 160, 0.75) 0%,
        rgba(60, 95, 140, 0.85) 50%,
        rgba(80, 115, 160, 0.75) 100%);
    border: 1px solid rgba(212, 175, 90, 0.4);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.location-card .location-btn {
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.location-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(212, 175, 90, 0.1) 45%,
        rgba(212, 175, 90, 0.2) 50%,
        rgba(212, 175, 90, 0.1) 55%,
        transparent 60%
    );
    animation: holographic-scan 3s linear infinite;
    pointer-events: none;
}

.location-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(212, 175, 90, 0.5),
        transparent 50%,
        rgba(212, 175, 90, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.location-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--gold);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(212, 175, 90, 0.2),
        inset 0 0 30px rgba(212, 175, 90, 0.05);
}

.location-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.location-icon-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.location-type {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.location-name {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 1rem;
}

.location-address {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: rgba(245, 240, 232, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.location-time {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.location-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--border-radius-full);
    transition: var(--transition-normal);
    cursor: pointer;
}

.location-btn:hover {
    background: var(--gold);
    color: var(--navy-dark);
    box-shadow: 0 0 20px rgba(212, 175, 90, 0.4);
}

/* ==================== QUICK LINKS ==================== */

.quick-links-section {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
    position: relative;
    margin-left: var(--sidebar-width);
}

.quick-links-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.quick-link-card {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(80, 115, 160, 0.6) 0%, rgba(60, 95, 140, 0.7) 100%);
    border: 1px solid rgba(212, 175, 90, 0.3);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--cream);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(212, 175, 90, 0.1) 45%,
        rgba(212, 175, 90, 0.2) 50%,
        rgba(212, 175, 90, 0.1) 55%,
        transparent 60%
    );
    animation: holographic-scan 3s linear infinite;
    pointer-events: none;
}

.quick-link-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 175, 90, 0.2);
}

.quick-link-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    color: var(--gold);
}

.quick-link-icon svg {
    width: 100%;
    height: 100%;
}

.quick-link-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.quick-link-card p {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ==================== PARTÍCULAS ==================== */

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: float-particle 15s linear infinite;
}

/* ==================== MODAL DO MAPA ==================== */

.map-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.map-modal.active {
    display: flex;
}

.map-modal-content {
    background: var(--navy);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    border: 1px solid rgba(212, 175, 90, 0.3);
}

.map-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 175, 90, 0.1);
    border: 1px solid rgba(212, 175, 90, 0.3);
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.map-modal-close:hover {
    background: var(--gold);
    color: var(--navy-dark);
}

.map-modal-title {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.map-modal-address {
    color: rgba(245, 240, 232, 0.7);
    margin-bottom: 1.5rem;
}

.map-iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
}

.map-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.map-directions-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border: none;
    border-radius: 50px;
    color: var(--navy-dark);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-directions-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 90, 0.3);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .countdown-section,
    .location-section,
    .quick-links-section {
        margin-left: 0;
        padding: 4rem 1rem;
    }

    .quick-links-section {
        padding-bottom: 100px;
    }

    /* Gauge countdown responsive */
    .countdown-gauges {
        gap: 1rem;
    }

    .gauge {
        width: 140px;
        height: 85px;
    }

    .gauge-value {
        padding: 0.25rem 0.6rem;
        min-width: 40px;
    }

    .gauge-value::before {
        top: -5px;
        border-left-width: 4px;
        border-right-width: 4px;
        border-bottom-width: 5px;
    }

    .gauge-number {
        font-size: 1rem;
        letter-spacing: 0;
    }

    .gauge-label {
        font-size: 0.55rem;
        letter-spacing: 2px;
        margin-top: 1.2rem;
    }

    .gauge::before {
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -15px;
    }

    .gauge::after {
        width: 40px;
        bottom: -10px;
    }

    .quick-links-grid {
        gap: 1rem;
    }

    .quick-link-card {
        width: 150px;
        height: 150px;
    }

    .quick-link-icon {
        width: 40px;
        height: 40px;
    }

    .quick-link-card h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .countdown-gauges {
        gap: 0.5rem;
    }

    .gauge {
        width: 80px;
        height: 50px;
    }

    .gauge-value {
        padding: 0.2rem 0.5rem;
        min-width: 40px;
        border-width: 1px;
        border-radius: 4px;
    }

    .gauge-value::before {
        display: none;
    }

    .gauge-number {
        font-size: 0.85rem;
        letter-spacing: 0;
    }

    .gauge-label {
        font-size: 0.5rem;
        letter-spacing: 1px;
        margin-top: 1rem;
    }

    .gauge::before,
    .gauge::after {
        display: none;
    }
}
