/**
 * Main Styles
 * 
 * This file contains basic styles for backward compatibility.
 * Most styles are now in more specific CSS files.
 */

/* Base styles */
body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: #3a2f41;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff6b00;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Back link */
.back-link {
    display: inline-block;
    margin: 20px 0;
    padding: 8px 16px;
    background-color: #3a2f41;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.back-link:hover {
    background-color: #4a3d51;
    color: white;
}

/* 
 * Trillionaire Countdown - Styles
 */

:root {
    --primary-color: #3366ff;
    --secondary-color: #f0f4ff;
    --text-color: #333;
    --light-text: #666;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --highlight-color: #ff6b6b;
    --success-color: #4caf50;
    --counter-color-1: #ff6b6b;
    --counter-color-2: #ff9500;
    --counter-color-3: #00c853;
    --your-counter-color: #ff3d00;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f7fa;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    margin-bottom: 30px;
    text-align: center;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
}

h3 {
    font-size: 1.8rem;
    text-align: center;
    margin: 20px 0;
    font-weight: 700;
}

h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.countdown-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.progress-bar {
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    color: var(--light-text);
    font-size: 0.9rem;
}

.time-remaining {
    text-align: center;
    margin: 30px 0;
}

.time-boxes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.time-box {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 15px;
    min-width: 100px;
    text-align: center;
}

.time-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.time-label {
    font-size: 0.9rem;
    color: var(--light-text);
}

.amount-needed {
    text-align: center;
    color: var(--light-text);
    margin-top: 20px;
    font-size: 1.1rem;
}

.comparison-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.comparison-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.comparison-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: left;
}

/* Wealthy Individuals Comparison Styles */
.wealthy-individuals {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.individual {
    padding: 15px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.you-comparison {
    border-left: 4px solid var(--highlight-color);
    background-color: #fff9f9;
}

.individual-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--light-text);
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 500;
}

.individual-progress {
    height: 10px;
    margin: 10px 0;
}

.progress-percentage {
    font-size: 0.9rem;
    color: var(--light-text);
    text-align: right;
}

/* Enhanced real-time counter styles */
.secondly-counter, .your-secondly-counter, .milestone-wealth-counter, .your-wealth-counter {
    font-weight: 800;
    font-size: 1.2rem;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.secondly-counter {
    color: white;
    background-color: var(--counter-color-1);
}

.individual:nth-child(2) .secondly-counter {
    background-color: var(--counter-color-2);
}

.individual:nth-child(3) .secondly-counter {
    background-color: var(--counter-color-3);
}

.your-secondly-counter {
    color: white;
    background-color: var(--your-counter-color);
    animation: pulse-highlight 2s infinite;
}

.milestone-wealth-counter {
    color: white;
    background-color: var(--success-color);
}

.your-wealth-counter {
    color: white;
    background-color: var(--your-counter-color);
    animation: pulse-highlight 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse-highlight {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 61, 0, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 61, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 61, 0, 0);
    }
}

.counter-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 8px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Time-Based Comparisons Styles */
.wealth-milestones {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.milestone {
    padding: 15px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.your-milestone {
    border-left: 4px solid var(--highlight-color);
    background-color: #fff9f9;
}

.milestone-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.milestone-description {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.milestone-counter {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: var(--border-radius);
    margin-top: 10px;
}

.counter-label {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 5px;
    font-weight: 500;
}

footer {
    text-align: center;
    margin-top: 50px;
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .comparison-section {
        grid-template-columns: 1fr;
    }
    
    .time-boxes {
        flex-wrap: wrap;
    }
    
    .time-box {
        min-width: 80px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .individual-stats, .milestone-stats {
        grid-template-columns: 1fr;
    }
}

/* Page Container Styles */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.content-container {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
} 