/**
 * [Senior Standard] Countdown Modern Styling v3.5
 * Performance: Anti-Flickering via Hardware Acceleration & Layer Isolation
 */

.countdown-app-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Generator Panel */
.generator-panel {
    padding: 25px;
    background: #fff;
}

.panel-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}
.panel-header h3 { margin: 0 0 5px 0; font-size: 1.2rem; color: #1e293b; }
.panel-header p { margin: 0; font-size: 0.9rem; color: #64748b; }

.generator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label { font-size: 0.85rem; font-weight: 600; color: #475569; }
.form-group input, .form-group select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
}
.full-width { grid-column: 1 / -1; }

/* Banner Core Styles */
.timeBanner {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background-color: transparent; /* 배경은 하위 레이어에서 처리 */
    transform: translateZ(0); /* Force GPU */
    contain: layout style;
    text-align: center;
    padding: 40px 20px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Size Variants */
.size-small { padding: 20px; font-size: 0.8rem; }
.size-medium { padding: 40px; font-size: 1rem; }
.size-large { padding: 60px; font-size: 1.2rem; }

.size-small .countdown-display { font-size: 2rem; }
.size-medium .countdown-display { font-size: 3.5rem; }
.size-large .countdown-display { font-size: 5rem; }

/* Layer Isolation */
.banner-background {
    position: absolute;
    top: -10%; left: -10%; right: -10%; bottom: -10%;
    z-index: 1;
    background-size: cover;
    background-position: center;
    transform: translateZ(0);
    will-change: filter;
}

.banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    transform: translateZ(0);
}

.banner-content {
    position: relative;
    z-index: 10;
    pointer-events: none;
}

.textBefore {
    font-size: 1.2em;
    margin-bottom: 10px;
    opacity: 0.9;
    font-weight: 500;
}

.countdown-display {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.countdown-display span {
    font-variant-numeric: tabular-nums;
    display: inline-block;
    min-width: 1.1ch;
    text-align: center;
}

.finish-message {
    font-size: 2em;
    font-weight: bold;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .size-large .countdown-display { font-size: 3rem; }
    .generator-grid { grid-template-columns: 1fr; }
}
