/* css/base.css */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-blue: #1a237e;
    --primary-purple: #512da8;
    --accent-gold: #ffc107;
    --white: #ffffff;
    --light-gray: #f5f5ff;
    --dark-gray: #333333;
    --text-secondary: #666666;
    --border-color: rgba(255, 255, 255, 0.1);
    --success-color: #4CAF50;
    
    /* Typography */
    --font-primary: 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    
    /* Spacing */
    --container-padding: 1rem;
    --section-padding: 2rem 0;
    
    /* Transitions */
    --transition: all 0.3s ease-in-out;
    
    /* Shadows */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.loading-text {
    font-size: 1.2rem;
    color: var(--white);
    opacity: 0.8;
}

/* Main Content & View Animation */
.main-content {
    padding: var(--section-padding);
    min-height: calc(100vh - 200px);
}

.view {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.view.active {
    display: block;
}

/* Keyframe Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

.footer-content p {
    opacity: 0.8;
}

.footer-links span {
    opacity: 0.6;
    font-size: 0.9rem;
}