/* Currency Page Specific Styles */

/* Currency Hero Section */
.currency-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.currency-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.currency-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.currency-icon-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-xl);
}

.bitcoin-theme .currency-icon-large {
    background: linear-gradient(135deg, #f7931a 0%, #ff6b35 100%);
}

.ethereum-theme .currency-icon-large {
    background: linear-gradient(135deg, #627eea 0%, #3c3c3d 100%);
}

.dogecoin-theme .currency-icon-large {
    background: linear-gradient(135deg, #c2a633 0%, #d4af37 100%);
}

.currency-hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.currency-tagline {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.price-display {
    margin-bottom: 3rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin-right: 1rem;
}

.price-change {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.price-change.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.price-change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.price-change.coming-soon {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    animation: pulse 2s infinite;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-stats .stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.hero-stats .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-stats .stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Currency Overview */
.currency-overview {
    padding: 5rem 0;
    background: white;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.overview-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.overview-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.key-features {
    margin-top: 2rem;
}

.key-features h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.key-features ul {
    list-style: none;
    padding: 0;
}

.key-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
    color: var(--text-secondary);
}

.key-features li:last-child {
    border-bottom: none;
}

.key-features strong {
    color: var(--text-primary);
    font-weight: 600;
}

.overview-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-placeholder {
    width: 100%;
    max-width: 500px;
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.chart-placeholder h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.chart-area {
    height: 300px;
    background: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px dashed var(--border-color);
}

.chart-line {
    position: absolute;
    top: 20%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.chart-line::before {
    content: '';
    position: absolute;
    top: -20px;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
}

.chart-area p {
    color: var(--text-light);
    font-style: italic;
}

/* Coming Soon Timeline Styles */
.coming-soon-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
}

.timeline-item {
    padding: 1rem;
    background: rgba(168, 85, 247, 0.1);
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.timeline-item.active {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    color: #a855f7;
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

/* Technology Section */
.technology-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.tech-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tech-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Market Data */
.market-data {
    padding: 5rem 0;
    background: white;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.market-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.market-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.market-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.market-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.market-stat .label {
    font-weight: 500;
    color: var(--text-secondary);
}

.market-stat .value {
    font-weight: 600;
    color: var(--text-primary);
}

.market-stat .value.positive {
    color: var(--accent-color);
}

.market-stat .value.negative {
    color: #ef4444;
}

/* History Timeline */
.history-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.timeline {
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin: 0 2rem;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -30px;
    border-right-color: white;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -30px;
    border-left-color: white;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Getting Started */
.getting-started {
    padding: 5rem 0;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Navigation Active State */
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive Design for Currency Pages */
@media (max-width: 768px) {
    .currency-hero h1 {
        font-size: 2.5rem;
    }
    
    .currency-tagline {
        font-size: 1.25rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .market-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 80px;
    }
    
    .timeline-date {
        position: absolute;
        left: 0;
        width: 60px;
        height: 60px;
        font-size: 0.875rem;
    }
    
    .timeline-content {
        margin: 0;
    }
    
    .timeline-content::before {
        left: -15px !important;
        right: auto !important;
        border-right-color: white !important;
        border-left-color: transparent !important;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .currency-hero {
        padding: 100px 0 60px;
    }
    
    .currency-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .currency-hero h1 {
        font-size: 2rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
    
    .price-change {
        font-size: 1rem;
        padding: 0.375rem 0.75rem;
    }
    
    .hero-stats .stat-value {
        font-size: 1.5rem;
    }
    
    .market-card,
    .tech-card,
    .step-card {
        padding: 1.5rem;
    }
    
    .chart-placeholder {
        padding: 1.5rem;
    }
    
    .chart-area {
        height: 200px;
    }
}

/* Theme-specific adjustments */
.bitcoin-theme {
    --theme-color: #f7931a;
    --theme-gradient: linear-gradient(135deg, #f7931a 0%, #ff6b35 100%);
}

.ethereum-theme {
    --theme-color: #627eea;
    --theme-gradient: linear-gradient(135deg, #627eea 0%, #3c3c3d 100%);
}

.dogecoin-theme {
    --theme-color: #c2a633;
    --theme-gradient: linear-gradient(135deg, #c2a633 0%, #d4af37 100%);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}