/*
  ============================================================================
  PROPRIETÁRIO: Mauricio Spark
  MARCA: WINSOFT
  PROJETO: SYNC
  VERSÃO: 1.0.0
  LINHAGEM: SPARK
  ============================================================================
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    text-align: center;
    padding: 2rem;
    max-width: 1200px; /* Aumentado para acomodar duas colunas */
    width: 100%;
}

.brand-signature {
    position: absolute;
    top: 1rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.4rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    font-weight: 700;
    pointer-events: none;
}

.split-view {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
    min-height: 400px;
}

.config-panel {
    flex: 1;
    max-width: 450px;
    text-align: left;
}

.display-panel {
    flex: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.event-info {
    margin-bottom: 2rem;
}

.event-info h2 {
    font-size: 2.5rem;
    letter-spacing: 0.2rem;
    background: linear-gradient(90deg, #e94560, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.event-info p {
    font-size: 1.1rem;
    color: #b0b0b0;
}

.status-error {
    color: #ff4757 !important;
    animation: shake 0.5s ease-in-out;
}

.status-success {
    color: #2ed573 !important;
}

.status-expired {
    color: #ffa502 !important;
    animation: blink 1s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.fade-update {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0.5; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.input-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.target-date {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.9rem;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-weight: 600;
}

.date-inputs, .time-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.date-inputs input, .time-inputs input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.8rem;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.date-inputs input {
    width: 85px;
}

#year {
    width: 140px;
}

.time-inputs input {
    width: 70px;
}

.date-inputs input:focus, .time-inputs input:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.3);
}

.date-inputs input:hover, .time-inputs input:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.date-inputs input::placeholder, .time-inputs input::placeholder {
    color: #707070;
}

.start-btn {
    background: linear-gradient(90deg, #e94560, #ff6b6b);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
}

.start-btn:active {
    transform: translateY(-1px);
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    flex-wrap: nowrap;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.time-unit {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem 1.5rem;
    min-width: 110px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.time-unit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

.time-unit span {
    font-size: 3.5rem;
    font-weight: 700;
    color: #e94560;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.time-unit label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    color: #a0a0a0;
    font-weight: 600;
}

.separator {
    font-size: 3rem;
    font-weight: 300;
    color: #e94560;
    animation: pulse 1s infinite;
    align-self: center;
    padding-bottom: 1rem;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: #707070;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .split-view {
        flex-direction: column;
        gap: 4rem;
        text-align: center;
    }

    .config-panel {
        text-align: center;
        max-width: 500px;
    }

    .display-panel {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }
    
    .countdown {
        gap: 0.8rem;
        padding: 0.5rem;
    }
    
    .time-unit {
        padding: 1rem 0.8rem;
        min-width: 70px;
        border-radius: 12px;
    }
    
    .time-unit span {
        font-size: 2.2rem;
        margin-bottom: 0.3rem;
    }
    
    .time-unit label {
        font-size: 0.7rem;
        letter-spacing: 0.1rem;
    }
    
    .separator {
        font-size: 2rem;
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .countdown {
        gap: 0.4rem;
    }
    
    .time-unit {
        padding: 0.8rem 0.6rem;
        min-width: 60px;
    }
    
    .time-unit span {
        font-size: 1.8rem;
    }
    
    .time-unit label {
        font-size: 0.65rem;
    }
    
    .separator {
        font-size: 1.5rem;
    }
}
