/* Economic Calendar Iframe Styles */

/* Calendar Content */
.economic-calendar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Calendar Header */
.calendar-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calendar-title h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.calendar-title p {
    color: #b0b0b0;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Iframe Container */
.calendar-iframe-container {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    margin-bottom: 2rem;
    position: relative;
    min-height: 600px;
}

.calendar-iframe-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    z-index: 10;
    pointer-events: none;
}

.calendar-iframe-container::after {
    content: '📅 Live Economic Calendar';
    position: absolute;
    top: 20px;
    left: 20px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 11;
    pointer-events: none;
}

/* Iframe Styling */
#economicCalendarFrame {
    width: 100%;
    height: 700px;
    border: none;
    background: #ffffff;
    margin-top: 60px;
    display: block;
}

/* Hide iframe logos and branding */
#economicCalendarFrame {
    filter: contrast(1.1) brightness(0.95);
}

/* Loading State */
.calendar-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #b0b0b0;
    z-index: 5;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-radius: 50%;
    border-top-color: #007BFF;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Calendar Footer */
.calendar-footer {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 8px;
    margin-top: 1rem;
}

.data-source p {
    color: #b0b0b0;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.8;
}

/* Iframe Controls */
.iframe-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.iframe-control-btn {
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.iframe-control-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.iframe-control-btn:active {
    transform: translateY(0);
}

.iframe-control-btn.active {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

/* Status Indicator */
.calendar-status {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid #007BFF;
}

.status-text {
    color: #007BFF;
    font-weight: 600;
    margin: 0;
}

.status-time {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin: 0.25rem 0 0 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .economic-calendar-content {
        padding: 1rem;
    }
    
    .calendar-title h2 {
        font-size: 2rem;
    }
    
    #economicCalendarFrame {
        height: 600px;
    }
    
    .iframe-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .iframe-control-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .calendar-iframe-container::after {
        font-size: 1rem;
        top: 15px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .calendar-title h2 {
        font-size: 1.5rem;
    }
    
    #economicCalendarFrame {
        height: 500px;
    }
    
    .calendar-iframe-container::before {
        height: 50px;
    }
    
    #economicCalendarFrame {
        margin-top: 50px;
    }
    
    .calendar-iframe-container::after {
        font-size: 0.9rem;
        top: 12px;
        left: 12px;
    }
}

/* Dark theme adjustments for iframe content */
.calendar-iframe-container.dark-mode #economicCalendarFrame {
    filter: invert(1) hue-rotate(180deg) contrast(0.9) brightness(0.8);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 12;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}


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

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

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

.promo-site {
    color: #ffffff;
    font-weight: bold;
    margin-right: 8px;
}

.promo-code {
    background: #00ff88;
    color: #1a1a2e;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    margin: 0 4px;
}

.promo-discount {
    color: #ffd700;
    font-weight: bold;
    margin-left: 8px;
}

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

/* Responsive banner styling */
@media (max-width: 768px) {
    .streaming-banner {
        height: 40px;
    }
    
    .streaming-content {
        font-size: 14px;
        animation: scroll-left 45s linear infinite;
    }
    
    .promo-item {
        margin-right: 80px;
    }
}

@media (max-width: 480px) {
    .streaming-banner {
        height: 35px;
    }
    
    .streaming-content {
        font-size: 12px;
        animation: scroll-left 35s linear infinite;
    }
    
    .promo-item {
        margin-right: 60px;
    }
}

