/* 
 * Professional GPhC Exam Countdown
 * Designed for PharmX
 * Author: PharmX Dev Team
 */

@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

:root {
    /* Color Palette - Professional Light Theme */
    --bg-primary: #ffffff; /* White */
    --bg-secondary: #f8fafc; /* Slate 50 */
    --text-primary: #0f172a; /* Slate 900 */
    --text-secondary: #64748b; /* Slate 500 */
    --accent-primary: #0ea5e9; /* Sky 500 */
    --accent-secondary: #6366f1; /* Indigo 500 */
    --accent-glow: rgba(14, 165, 233, 0.1);
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --border-radius: 16px;
    
    /* Typography */
    --font-main: 'Figtree', system-ui, -apple-system, sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 400;
    max-width: 600px;
}

/* Countdown Card */
.countdown-wrapper {
    background: var(--bg-primary);
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05), 
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 600px;
}

.countdown-wrapper:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 3px rgba(4, 45, 172, 0.1);
}

.countdown-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.days-count {
    font-size: clamp(4rem, 10vw, 6rem);
    font-weight: 800;
    line-height: 1;
    color: #042dac;
    font-variant-numeric: tabular-nums;
}

.days-label {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.exam-date-display {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    color: var(--text-secondary);
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.exam-date-display svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-top: 1px solid #e2e8f0;
    background: var(--bg-primary);
    width: 100%;
}

.footer-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-primary);
}

.footer-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Loading State */
.loading {
    opacity: 0.5;
    animation: pulse 1.5s infinite;
}

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

/* Responsive Adjustments */
@media (max-width: 640px) {
    .countdown-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .hero-title {
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        margin-bottom: 4rem;
    }
}
