/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.timeline-container {
    position: relative;
    min-height: 100vh;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #fbbf24, #f59e0b, #d97706, #b45309);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

@media (max-width: 768px) {
    .timeline-line {
        left: 30%;
    }
}

.bitcoin-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 10px;
    color: white;
}

@media (max-width: 768px) {
    .bitcoin-marker {
        left: 30%;
        width: 20px;
        height: 20px;
        font-size: 8px;
    }
}

.bitcoin-label {
    position: absolute;
    left: 50%;
    transform: translateX(-100%);
    margin-left: -20px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .bitcoin-label {
        left: 30%;
        margin-left: -15px;
        font-size: 12px;
    }
}

.item-container {
    position: absolute;
    left: 50%;
    display: flex;
    align-items: center;
    transform: translateY(-50%);
    z-index: 1;
}

.item-container:hover {
    z-index: 1000;
}

.item-container.active {
    z-index: 1001;
}

.item-container.length-1 {
    margin-left: 37px; /* 35px + 2px offset */
}

.item-container.length-2 {
    margin-left: 52px; /* 50px + 2px offset */
}

.item-container.length-3 {
    margin-left: 67px; /* 65px + 2px offset */
}

.item-container.length-4 {
    margin-left: 82px; /* 80px + 2px offset */
}

.item-container.length-5 {
    margin-left: 97px; /* 95px + 2px offset */
}

@media (max-width: 768px) {
    .item-container {
        left: calc(30% + 2px); /* Start from same position as connection lines */
    }
    
    .item-container.length-1 {
        margin-left: 25px; /* Line length */
    }
    
    .item-container.length-2 {
        margin-left: 35px; /* Line length */
    }
    
    .item-container.length-3 {
        margin-left: 45px; /* Line length */
    }
    
    .item-container.length-4 {
        margin-left: 55px; /* Line length */
    }
    
    .item-container.length-5 {
        margin-left: 65px; /* Line length */
    }
}

.item-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 12px 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    transition: all 0.3s ease;
    min-width: 80px;
    cursor: pointer;
}

.item-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.5);
    z-index: 1000;
}

.item-card.active {
    transform: scale(1.1);
    box-shadow: 0 16px 50px rgba(31, 38, 135, 0.7);
    z-index: 1001;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .item-card {
        padding: 6px 10px;
        min-width: 55px;
        border-radius: 10px;
    }
}

.item-emoji {
    font-size: 24px;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .item-emoji {
        font-size: 20px;
        margin-bottom: 2px;
    }
}

.item-name {
    color: white;
    font-size: 10px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.item-price {
    color: rgba(255, 255, 255, 0.8);
    font-size: 8px;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-top: 1px;
}

@media (max-width: 768px) {
    .item-name {
        font-size: 8px;
    }
    
    .item-price {
        font-size: 7px;
    }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    z-index: 100;
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .header-title {
        font-size: 1.25rem;
        margin: 0;
    }
    
    .bitcoin-price {
        font-size: 1rem;
        margin: 0;
    }
    
    .header .currency-selector {
        padding: 6px 10px;
        font-size: 0.875rem;
    }
}

.currency-selector {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 12px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 200;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
}

.currency-selector:hover {
    background: rgba(255, 255, 255, 0.2);
}

.currency-selector:focus {
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.currency-selector option {
    background: #4c1d95;
    color: white;
    padding: 10px;
    border: none;
}

.currency-selector option:hover {
    background: #5b21b6;
}

.currency-selector option:checked {
    background: #6d28d9;
    color: white;
}

.purchasing-power-content {
    margin-top: 100px;
    position: relative;
}

@media (max-width: 768px) {
    .purchasing-power-content {
        margin-top: 140px;
    }
}

.timeline-content {
    margin-top: 100px;
    position: relative;
}

@media (max-width: 768px) {
    .timeline-content {
        margin-top: 140px;
    }
}

.connection-line {
    position: absolute;
    left: 50%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%);
    margin-left: 2px; /* Start from edge of timeline */
}

.connection-line.length-1 {
    width: 35px;
}

.connection-line.length-2 {
    width: 50px;
}

.connection-line.length-3 {
    width: 65px;
}

.connection-line.length-4 {
    width: 80px;
}

.connection-line.length-5 {
    width: 95px;
}

@media (max-width: 768px) {
    .connection-line {
        left: calc(30% + 2px); /* Timeline center + half timeline width */
        margin-left: 0; /* Reset margin since we're calculating exact position */
    }
    
    .connection-line.length-1 {
        width: 25px;
    }
    
    .connection-line.length-2 {
        width: 35px;
    }
    
    .connection-line.length-3 {
        width: 45px;
    }
    
    .connection-line.length-4 {
        width: 55px;
    }
    
    .connection-line.length-5 {
        width: 65px;
    }
}

.footer {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Utility Classes (replacing Tailwind) */

/* Container classes */
.container-xl {
    max-width: 1152px; /* max-w-6xl */
    margin: 0 auto;
}

.container-lg {
    max-width: 896px; /* max-w-4xl */
    margin: 0 auto;
}

.container-md {
    max-width: 768px; /* max-w-3xl */
    margin: 0 auto;
}

/* Padding classes */
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.p-6 {
    padding: 1.5rem;
}

/* Margin classes */
.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

/* Layout classes */
.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-features {
        grid-template-columns: 1fr 1fr;
    }
}

/* Typography classes */
.text-white {
    color: white;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.text-center {
    text-align: center;
}

/* Responsive typography */
@media (min-width: 768px) {
    .md-text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    .md-text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .md-text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

/* Background classes */
.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-white {
    background-color: white;
}

/* Border/Shadow classes */
.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header specific styles */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1152px;
    margin: 0 auto;
}

.header-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

.bitcoin-price {
    text-align: center;
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
}

/* Timeline specific styles */
.timeline-wrapper {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Section styles */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #1f2937;
}

.section-description {
    text-align: center;
    color: #4b5563;
    margin-bottom: 3rem;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.feature-description {
    color: #4b5563;
}

.footer-content {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-text-sm {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.footer-text-xs {
    font-size: 0.75rem;
    margin-top: 1rem;
    color: #9ca3af;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .header-title {
        font-size: 1.5rem;
    }
    
    .bitcoin-price {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
} 