/* Общие стили */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: #333;
    transition: background 0.3s, color 0.3s;
}

body.dark-theme {
    background: linear-gradient(135deg, #1e2a44, #2a3b5a);
    color: #ddd;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px); /* Высота с учётом шапки и подвала */
    padding: 20px;
}

/* Шапка */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
}

.dark-theme .header {
    background: rgba(30, 42, 68, 0.9);
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(45deg, #ffeb3b, #ff9800); /* Летние цвета */
    -webkit-background-clip: text;
    color: transparent;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.dark-theme .nav a {
    color: #ddd;
}

.nav a:hover {
    color: #ffeb3b;
}

.header-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #555;
    transition: color 0.3s;
}

.dark-theme .theme-btn {
    color: #ddd;
}

.theme-btn:hover {
    color: #ffeb3b;
}

/* Секция отсчёта */
.countdown-section {
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-in;
}

.dark-theme .countdown-section {
    background: rgba(42, 59, 90, 0.8);
}

.countdown-section h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.time-block {
    background: linear-gradient(135deg, #ffeb3b, #ff9800);
    color: #333;
    padding: 20px;
    border-radius: 12px;
    min-width: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.time-block:hover {
    transform: scale(1.05);
}

.time-block span {
    display: block;
    font-size: 32px;
    font-weight: 700;
}

.time-block p {
    margin: 5px 0 0;
    font-size: 16px;
}

.message {
    margin-top: 30px;
    font-size: 24px;
    font-style: italic;
    color: #ff9800;
    animation: messageFade 2s infinite alternate;
}

.dark-theme .message {
    color: #ffeb3b;
}

@keyframes messageFade {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

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

/* Кнопки шаринга */
.share-buttons {
    margin-top: 30px;
    text-align: center;
}

.share-buttons h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.share-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    color: white;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.vk {
    background: #4a76a8;
}

.share-btn.twitter {
    background: #1da1f2;
}

/* Реклама */
.adsense-placeholder {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex: 1;
}

.dark-theme .adsense-placeholder {
    background: #3b5278;
}

.bottom-ads {
    max-width: 1200px;
    margin: 20px auto;
    text-align: center;
}

/* Подвал */
.footer {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.dark-theme .footer {
    background: rgba(30, 42, 68, 0.9);
}

/* Адаптивность */
@media (max-width: 768px) {
    .header {
        gap: 15px;
        padding: 15px;
    }

    .nav {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .nav a {
        font-size: 16px;
    }

    .countdown-section {
        padding: 20px;
    }

    .countdown-section h1 {
        font-size: 28px;
    }

    .countdown-timer {
        gap: 15px;
    }

    .time-block {
        min-width: 80px;
        padding: 15px;
    }

    .time-block span {
        font-size: 24px;
    }

    .time-block p {
        font-size: 14px;
    }

    .message {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .countdown-section h1 {
        font-size: 22px;
    }

    .countdown-timer {
        gap: 10px;
    }

    .time-block {
        min-width: 60px;
        padding: 10px;
    }

    .time-block span {
        font-size: 20px;
    }

    .time-block p {
        font-size: 12px;
    }

    .message {
        font-size: 16px;
    }

    .logo a {
        font-size: 20px;
    }

    .nav a {
        font-size: 14px;
    }

    .theme-btn {
        font-size: 20px;
    }
}
