/* 
  DateTimeTrack Design System
  Theme: Deep Space (Premium Dark Mode)
  Typography: Outfit (Headings), Inter (Body)
*/

:root {
    /* Color Palette */
    --bg-primary: #050505;
    --bg-secondary: #0f0f12;
    --bg-accent: #1a1a20;
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --accent-glow: #6366f1;
    --accent-glow-rgb: 99, 102, 241;
    --accent-vibrant: #8b5cf6;
    --accent-cyan: #06b6d4;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
    --card-shadow: rgba(0, 0, 0, 0.4);
    
    --header-bg-scrolled: rgba(5, 5, 5, 0.8);
    
    /* Spacing & Layout */
    --container-max: 1200px;
    --section-padding: 80px 20px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Overrides */
.light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-accent: #e2e8f0;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --accent-glow: #4f46e5;
    --accent-glow-rgb: 79, 70, 229;
    
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    --card-shadow: rgba(0, 0, 0, 0.1);
    --header-bg-scrolled: rgba(248, 250, 252, 0.8);
}

/* Logo is now an image, no text-clip needed */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.content-list {
    list-style: disc;
    margin-left: 24px;
    margin-bottom: 24px;
}

.content-list li {
    margin-bottom: 12px;
}

/* Layout Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
}

.flex { display: flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* Numeric Typography Utilities */
.tabular-nums {
    font-variant-numeric: tabular-nums;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace !important;
}

/* Premium Components */

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(var(--accent-glow-rgb), 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px var(--card-shadow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 1rem;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-glow), var(--accent-vibrant));
    color: white;
    box-shadow: 0 4px 15px rgba(var(--accent-glow-rgb), 0.3);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(var(--accent-glow-rgb), 0.5);
}

.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: var(--glass-blur);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

header.scrolled {
    background: var(--header-bg-scrolled);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

.section-header {
    margin-bottom: 48px;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 100px 24px 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumbs ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumbs a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--accent-cyan);
}

.breadcrumbs li:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
    margin-left: 16px;
}

.theme-toggle:hover {
    background: rgba(var(--accent-glow-rgb), 0.1);
    border-color: var(--accent-glow);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.sun-icon { display: none; }
.light-mode .moon-icon { display: none; }
.light-mode .sun-icon { display: block; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--accent-glow-rgb), 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 4.5rem);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent-glow), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Tool Grid */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.tool-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.tool-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(var(--accent-glow-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-glow);
    margin-bottom: 8px;
}

.tool-card h3 {
    font-size: 1.5rem;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-accent);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-glow);
    box-shadow: 0 0 0 4px rgba(var(--accent-glow-rgb), 0.1);
}

/* Tool Layout */
.tool-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.result-pane {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.result-card {
    padding: 32px;
    background: linear-gradient(135deg, rgba(var(--accent-glow-rgb), 0.1), transparent);
}

.result-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--accent-glow);
}

/* Responsive Tool Layout */
@media (max-width: 992px) {
    .tool-layout {
        grid-template-columns: 1fr;
    }
    .result-pane {
        position: static;
    }
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 40px;
    margin-top: 100px;
    background: var(--bg-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-info p {
    margin-top: 16px;
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-col h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Footer Calendar Styles */
.calendar-col {
    min-width: 200px;
}

.calendar-mini-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 15px;
    font-size: 0.75rem;
    text-align: center;
}

.calendar-day-head {
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 4px;
}

.calendar-day {
    padding: 4px 0;
    border-radius: 4px;
    color: var(--text-secondary);
}

.calendar-day.today {
    background: var(--accent-glow);
    color: white;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(var(--accent-glow-rgb), 0.5);
}

.calendar-day.other-month {
    opacity: 0.3;
}

.live-time-ticker {
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--accent-glow);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { text-align: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}
