/* ==========================================================================
   NPRU Graduate - Landing Page Styles
   ========================================================================== */

/* Layout & Background */
.landing-shell {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    color: #1e293b; /* Slate 800 */
}

/* Container */
.landing-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.landing-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
}

.landing-header .landing-container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.landing-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.landing-brand:hover .landing-logo {
    transform: scale(1.05);
}

.landing-brand-text {
    display: flex;
    flex-direction: column;
}

.landing-brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e3a8a; /* Deep Navy */
    line-height: 1.3;
}

.landing-brand-subtitle {
    font-size: 0.85rem;
    color: #475569; /* Slate 600 */
    font-weight: 500;
}

.landing-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-admin {
    font-size: 0.9rem;
    color: #475569;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-admin:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Main Workspace */
.landing-main {
    flex: 1;
    padding: 48px 0 64px 0;
}

/* Centered Hero Layout */
.landing-hero-center {
    margin: 0 auto 48px auto;
    width: 100%;
}

/* Centered Countdown Card */
.countdown-card.large {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

@media (max-width: 640px) {
    .countdown-card.large {
        padding: 32px 20px;
        gap: 24px;
    }
}

.countdown-card-title-large {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    margin: 0;
}

.countdown-card-title-large span {
    color: #1e3a8a;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.status-badge.open {
    background: #ecfdf5; /* Emerald 50 */
    color: #047857; /* Emerald 700 */
    border-color: #a7f3d0;
}

.status-badge.waiting {
    background: #fffbeb; /* Amber 50 */
    color: #b45309; /* Amber 700 */
    border-color: #fde68a;
}

.status-badge.closed {
    background: #f1f5f9; /* Slate 100 */
    color: #475569; /* Slate 600 */
    border-color: #cbd5e1;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
    flex-shrink: 0;
    transform: translateY(-1px);
}

.status-dot.ping {
    animation: status-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes status-ping {
    0% {
        transform: translateY(-1px) scale(1);
        opacity: 1;
    }
    70%, 100% {
        transform: translateY(-1px) scale(2.2);
        opacity: 0;
    }
}

/* Countdown Digits Grid */
.countdown-digits-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 800px;
}

@media (max-width: 480px) {
    .countdown-digits-wrapper {
        gap: 10px;
    }
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.countdown-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1e3a8a; /* Deep Navy */
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

@media (max-width: 640px) {
    .countdown-number {
        font-size: 2.25rem;
        border-radius: 10px;
    }
}

.countdown-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}

/* Action Controls */
.landing-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.btn-primary {
    background: #1e3a8a;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 16px 36px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.20);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled, 
.btn-primary.disabled {
    background: #cbd5e1;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Schedule & Details Section */
.info-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
    margin-bottom: 48px;
}

.info-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: #1e3a8a;
    border-radius: 2px;
}

/* Timeline Container */
.timeline-container {
    position: relative;
    padding-left: 32px;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Timeline Vertical Line */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 7px;
    width: 2px;
    background: #e2e8f0;
}

/* Timeline Item */
.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Badge/Dot container */
.timeline-badge {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Highlight style for open/close stages */
.timeline-item.highlight .timeline-badge {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* Timeline Content Card */
.timeline-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    transition: all 0.2s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateX(4px);
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.timeline-item.highlight:hover .timeline-content {
    border-color: #bfdbfe;
    background: #f8fafc;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.05);
}

/* Timeline Content Header */
.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.timeline-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.timeline-item.highlight .timeline-label {
    color: #1e3a8a;
}

/* Time Badge */
.timeline-time-badge {
    font-size: 0.8rem;
    font-weight: 600;
    background: #cbd5e1;
    color: #334155;
    padding: 2px 8px;
    border-radius: 9999px;
}

.timeline-item.highlight .timeline-time-badge {
    background: #dbeafe;
    color: #1e40af;
}

/* Date Details */
.timeline-date {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
}

/* Contact / Support Callout */
.support-card {
    background: #eff6ff; /* Blue 50 */
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.support-icon {
    color: #1d4ed8;
    flex-shrink: 0;
    margin-top: 2px;
}

.support-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.support-title {
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
}

.support-text {
    font-size: 0.95rem;
    color: #1e40af;
    margin: 0;
    line-height: 1.5;
}

/* Footer */
.landing-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 32px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

.landing-footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.landing-footer-copyright {
    margin: 0;
}

.landing-footer-credits {
    margin: 0;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Infinity open status fallback style */
.countdown-open-infinity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
}

.countdown-open-infinity .success-icon {
    color: #10b981; /* Emerald 500 */
    animation: success-pulse 2s infinite ease-in-out;
}

@keyframes success-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(16, 185, 129, 0));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
    }
}

.open-infinity-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}



