/* Market Clock Specific Styles - Enhanced Visual Design */

/* Page Navigation */
.page-navigation {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0 2rem;
    border-bottom: 1px solid #3a3a3a;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #b0b0b0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 8px 8px 0 0;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #007BFF;
    border-bottom-color: #007BFF;
    background: rgba(0, 123, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
}

.nav-link span {
    font-size: 1.2rem;
}

/* Market Clock Content */
.market-clock-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(44, 62, 80, 0.95));
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
}

/* Clock Section */
.clock-section {
    margin-bottom: 3rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(0, 200, 81, 0.05));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.clock-container {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.clock-title h2 {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #ffffff, #007BFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.clock-title p {
    color: #b0b0b0;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.clock-wrapper {
    position: relative;
    display: inline-block;
    margin: 3rem 0;
    padding: 3rem;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.1), transparent);
    border-radius: 50%;
}

#marketClock {
    border-radius: 50%;
    box-shadow: 
        0 0 50px rgba(0, 123, 255, 0.4),
        inset 0 0 50px rgba(0, 0, 0, 0.3);
    background: radial-gradient(circle, #2c3e50 0%, #1a1a1a 70%, #000 100%);
    border: 3px solid rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

#marketClock:hover {
    box-shadow: 
        0 0 80px rgba(0, 123, 255, 0.6),
        inset 0 0 50px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
}

.clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: radial-gradient(circle, rgba(26, 26, 26, 0.95), rgba(44, 62, 80, 0.95));
    border-radius: 50%;
    padding: 1rem;
    border: 2px solid #007BFF;
    box-shadow: 
        0 0 20px rgba(0, 123, 255, 0.5),
        inset 0 0 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    min-width: 80px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.clock-time {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    margin-bottom: 0.3rem;
}

.clock-label {
    color: #007BFF;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sessions Section */
.sessions-section {
    margin-bottom: 3rem;
}

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

.session-card {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 73, 94, 0.9));
    border-radius: 16px;
    padding: 2rem;
    border-left: 5px solid;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.session-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.session-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.session-card.pacific {
    border-left-color: #00C851;
    box-shadow: 0 5px 20px rgba(0, 200, 81, 0.2);
}

.session-card.asian {
    border-left-color: #FF8800;
    box-shadow: 0 5px 20px rgba(255, 136, 0, 0.2);
}

.session-card.middle-east {
    border-left-color: #9C27B0;
    box-shadow: 0 5px 20px rgba(156, 39, 176, 0.2);
}

.session-card.european {
    border-left-color: #2196F3;
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.2);
}

.session-card.american {
    border-left-color: #F44336;
    box-shadow: 0 5px 20px rgba(244, 67, 54, 0.2);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.session-header h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.session-status {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.session-status.open {
    background: linear-gradient(135deg, #00C851, #00A843);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 200, 81, 0.4);
}

.session-status.closed {
    background: linear-gradient(135deg, #6C757D, #5A6268);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

.session-markets {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.market-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.market-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.market-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.market-status-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #DC3545;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.market-status-dot.open {
    background: #00C851;
    box-shadow: 0 0 15px rgba(0, 200, 81, 0.7);
    animation: pulse-green 2s infinite;
}

.market-status-dot.closed {
    background: #DC3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 15px rgba(0, 200, 81, 0.7); }
    50% { box-shadow: 0 0 25px rgba(0, 200, 81, 1); }
    100% { box-shadow: 0 0 15px rgba(0, 200, 81, 0.7); }
}

/* Activity Section */
.activity-section {
    margin-bottom: 2rem;
}

.activity-summary {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 73, 94, 0.9));
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.activity-summary h3 {
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.activity-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #007BFF;
    text-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
    background: linear-gradient(135deg, #007BFF, #00C851);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #b0b0b0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Time Display */
.time-display {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.local-time {
    color: #007BFF;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.timezone-info {
    color: #b0b0b0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Market Times Display */
.market-times {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.market-hours-local {
    color: #ffffff;
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.market-countdown {
    color: #00ff88;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    padding: 0.3rem 0.6rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 6px;
    border-left: 3px solid #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    box-shadow: 0 2px 10px rgba(0, 255, 136, 0.2);
}

.market-countdown.open {
    color: #00C851;
    background: rgba(0, 200, 81, 0.1);
    border-left-color: #00C851;
    text-shadow: 0 0 10px rgba(0, 200, 81, 0.5);
}

.market-countdown.closed {
    color: #DC3545;
    background: rgba(220, 53, 69, 0.1);
    border-left-color: #DC3545;
    text-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

.market-countdown.opening-soon {
    color: #FF8800;
    background: rgba(255, 136, 0, 0.1);
    border-left-color: #FF8800;
    text-shadow: 0 0 10px rgba(255, 136, 0, 0.5);
    box-shadow: 0 2px 10px rgba(255, 136, 0, 0.3);
    animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
    0% { 
        box-shadow: 0 2px 10px rgba(255, 136, 0, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 4px 20px rgba(255, 136, 0, 0.6);
        transform: scale(1.02);
    }
    100% { 
        box-shadow: 0 2px 10px rgba(255, 136, 0, 0.3);
        transform: scale(1);
    }
}

/* Resync Button */
.resync-button {
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resync-button:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.resync-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
}

.resync-button.syncing {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    animation: pulse 1s infinite;
}

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

/* Streaming Banner Styles */
.streaming-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(90deg, #1a1a2e, #16213e, #0f3460);
    color: #00ff88;
    overflow: hidden;
    z-index: 1000;
    border-top: 3px solid #00ff88;
    box-shadow: 0 -5px 20px rgba(0, 255, 136, 0.4);
    backdrop-filter: blur(10px);
}

.streaming-content {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: scroll-left 60s linear infinite;
    font-size: 18px;
    font-weight: 600;
    padding-left: 50%;
}

.promo-item {
    margin-right: 120px;
    display: inline-flex;
    align-items: center;
}

.promo-site {
    color: #ffffff;
    font-weight: bold;
    margin-right: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.promo-code {
    background: linear-gradient(135deg, #00ff88, #00C851);
    color: #1a1a2e;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    margin: 0 6px;
    box-shadow: 0 3px 10px rgba(0, 255, 136, 0.4);
}

.promo-discount {
    color: #ffd700;
    font-weight: bold;
    margin-left: 10px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-navigation {
        padding: 0 1rem;
        overflow-x: auto;
    }
    
    .nav-link {
        white-space: nowrap;
        padding: 1rem;
    }
    
    .market-clock-content {
        padding: 1rem;
        margin: 1rem;
    }
    
    .clock-container {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .clock-wrapper {
        margin: 2rem auto;
        padding: 2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 400px;
    }
    
    .clock-title h2 {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .clock-title p {
        text-align: center;
    }
    
    #marketClock {
        width: 350px;
        height: 350px;
        margin: 0 auto;
        display: block;
    }
    
    .sessions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .session-card {
        padding: 1.5rem;
    }
    
    .market-item {
        grid-template-columns: 1fr auto auto;
        gap: 1rem;
    }
    
    .activity-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .streaming-banner {
        height: 50px;
    }
    
    .streaming-content {
        font-size: 16px;
        animation: scroll-left 45s linear infinite;
    }
    
    .promo-item {
        margin-right: 100px;
    }
}

@media (max-width: 480px) {
    .clock-title h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .clock-title p {
        font-size: 1rem;
        text-align: center;
    }
    
    .clock-container {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .clock-wrapper {
        padding: 1rem;
        margin: 1rem auto;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 320px;
    }
    
    #marketClock {
        width: 280px;
        height: 280px;
        margin: 0 auto;
        display: block;
    }
    
    .clock-time {
        font-size: 1.4rem;
    }
    
    .activity-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .streaming-banner {
        height: 45px;
    }
    
    .streaming-content {
        font-size: 14px;
        animation: scroll-left 35s linear infinite;
    }
    
    .promo-item {
        margin-right: 80px;
    }
}

/* Animation for market status changes */
@keyframes statusChange {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.market-status-dot.status-change {
    animation: statusChange 0.6s ease-in-out;
}

/* Loading state for clock */
.clock-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.clock-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-left: 4px solid #007BFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Add bottom padding to body to prevent content overlap */
body {
    padding-bottom: 80px;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    min-height: 100vh;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 55px;
    }
}

/* Enhanced visual effects */
.glow-effect {
    filter: drop-shadow(0 0 10px rgba(0, 123, 255, 0.5));
}

.text-glow {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #007BFF, #00C851);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0056b3, #00A843);
}

