/* Основные стили для виджетов */
@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@400;600;700&display=swap');

:root {
    --primary: #3a86ff;
    --primary-dark: #2667cc;
    --accent: #ff006e;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', -apple-system, Arial, sans-serif;
    background: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

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

/* Компоненты */
.ticker {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

.ticker-text {
    display: inline-block;
    padding-left: 100%;
    font-size: 1.2rem;
    font-weight: 500;
    animation: ticker-scroll 20s linear infinite;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'SF Pro Display', sans-serif;
}

.back-button:hover {
    background: var(--primary);
    transform: scale(1.05);
}

.main-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: #fff;
    margin: 20px 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    opacity: 0;
    animation: fadeInDown 1s ease-in-out 0.4s forwards;
}

.widgets-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.left-column, .right-column {
    flex: 1;
    min-width: 300px;
}

.widget {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
    margin-bottom: 20px;
}

.widget iframe {
    width: 100%;
    border: none;
    border-radius: 10px;
}

/* Сообщения об ошибках */
.error-message {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    display: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .widgets-container {
        flex-direction: column;
    }
    
    .left-column, .right-column {
        width: 100%;
    }
    
    .main-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .widget {
        padding: 15px;
    }
}
