/* Сброс стилей и fullscreen настройка */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
    color: #fff;
}

/* Основной контейнер - занимает весь экран */
.content-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

/* Загрузочный экран */
.loading {
    font-size: 3rem;
    text-align: center;
    animation: pulse 2s infinite;
}

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

/* Стили для iframe (TradingView, YouTube) */
.content-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Контейнер для цитат */
.quote-container {
    width: 90vw;
    height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5vh 10vw;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.quote-text {
    font-size: clamp(2.5rem, 5vw, 6rem);
    line-height: 1.4;
    font-weight: 300;
    margin-bottom: 3rem;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.quote-author {
    font-size: clamp(1.5rem, 3vw, 3.5rem);
    font-weight: 500;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.quote-author::before {
    content: "— ";
}

/* Плавные переходы при смене контента */
.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Отладочная информация (скрыта по умолчанию) */
.debug-info {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 9999;
}

.debug-info span {
    display: block;
    margin: 5px 0;
}

/* Адаптация для очень больших экранов */
@media (min-width: 1920px) {
    .quote-text {
        font-size: 7rem;
    }
    
    .quote-author {
        font-size: 4rem;
    }
}

/* Адаптация для средних экранов */
@media (max-width: 1366px) {
    .quote-text {
        font-size: 3rem;
    }
    
    .quote-author {
        font-size: 2rem;
    }
}

/* ================================================
   КАСТОМНЫЙ ЗАГОЛОВОК ДЛЯ TRADINGVIEW ГРАФИКОВ
   ================================================ */

/* Контейнер для графика с заголовком */
.chart-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #131722; /* Тёмный фон как у TradingView */
}

/* Крупный заголовок графика */
.chart-title {
    background: linear-gradient(180deg, #1e222d 0%, #131722 100%);
    color: #d1d4dc;
    padding: 2vh 4vw;
    font-size: clamp(2rem, 4vw, 5rem); /* Адаптивный размер */
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #2a2e39;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 10;
    letter-spacing: 0.5px;
}

/* Контейнер виджета TradingView */
.tradingview-widget-container {
    flex: 1;
    width: 100%;
    position: relative;
    min-height: 0; /* Важно для flex */
}

/* Адаптация заголовка для больших экранов */
@media (min-width: 1920px) {
    .chart-title {
        font-size: 6rem;
        padding: 3vh 5vw;
    }
}

@media (min-width: 2560px) {
    .chart-title {
        font-size: 7rem;
        padding: 4vh 6vw;
    }
}
