/*
Theme Name: Option
Author: Adapted for Binary Options Brokers
Description: WordPress theme for binary options brokers with a modern dark design
Version: 1.0.5
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700;900&family=Open+Sans:wght@400;600&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

h1, h2 {
    color: #00cc66; /* Яркий зелёный для заголовков */
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
}

h3, h4 {
    color: #00cc66;
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
}

a {
    color: #1e90ff; /* Голубой для ссылок */
    text-decoration: none;
}

a:hover {
    text-decoration: none; /* Убрано подчеркивание по умолчанию при наведении */
}

body {
    background: linear-gradient(180deg, #0a1c2b, #1a2b3c); /* Тёмный градиент */
    font-family: 'Open Sans', sans-serif;
    color: #f0f0f0;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgb(14 39 60 / 95%);
    padding: 1px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header::after {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(to right, transparent, #00cc66, transparent); /* Симметричный градиент */
    margin-top: 10px;
}

main.site-main {
    background: #0f2435; /* Лёгкий контраст с фоном body */
    padding-top: 20px;
}

.mytheme-branding {
    display: flex;
    justify-content: center;
}

.logo-link {
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #00cc66;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.logo-part {
    display: inline-block;
    opacity: 0;
    visibility: hidden; /* Скрываем до начала анимации */
    font-family: 'Roboto Condensed', Arial, sans-serif; /* Запасной шрифт */
    animation: fadeIn 0.6s cubic-bezier(0.6, 0, 0.4, 1) forwards; /* Уменьшена длительность */
    will-change: opacity; /* Оптимизация рендеринга */
    backface-visibility: hidden; /* Устранение артефактов */
}

/* Задержки для последовательного появления */
.logo-part:nth-child(1) { animation-delay: 0.2s; } /* Expert */
.logo-part:nth-child(2) { animation-delay: 0.4s; } /* - */
.logo-part:nth-child(3) { animation-delay: 0.6s; } /* Option */
.logo-part:nth-child(4) {
    animation: rotateIn 1s cubic-bezier(0.6, 0, 0.4, 1) 0.8s forwards; /* Уменьшена длительность */
    transform: scale(0.9); /* Начальный масштаб */
    font-family: 'Roboto Condensed', Arial, sans-serif; /* Запасной шрифт */
    will-change: opacity, transform, scale; /* Оптимизация */
    backface-visibility: hidden;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        visibility: hidden;
    }
    100% {
        opacity: 1;
        visibility: visible; /* Показываем в конце */
    }
}

@keyframes rotateIn {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: rotate(-360deg) scale(0.9);
    }
    100% {
        opacity: 1;
        visibility: visible;
        transform: rotate(0deg) scale(1);
    }
}

.mytheme-main-navigation {
    position: relative;
}

.mytheme-main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.mytheme-main-navigation .menu-item {
    margin: 0 20px;
    position: relative; /* Для подчеркивания */
}

.mytheme-main-navigation .menu-item a {
    color: #f0f0f0;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 5px;
    transition: color 0.3s ease;
    display: block; /* Для предотвращения перехода в мобильном */
}

.mytheme-main-navigation .menu-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00cc66;
    transition: width 0.3s ease;
}

.mytheme-main-navigation .menu-item a:hover::after {
    width: 100%; /* Линия пробегает слева направо */
}

.mytheme-main-navigation .menu-item a:hover {
    color: #00cc66; /* Цвет при наведении */
}

.mytheme-main-navigation .sub-menu {
    display: none;
    position: absolute;
    background: #0a1c2b;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-top: 2px; /* Добавлен отступ */
    z-index: 1000;
}

.mytheme-main-navigation .menu-item-has-children:hover .sub-menu {
    display: block;
}

.mytheme-main-navigation .sub-menu li {
    margin: 5px 0;
}

/* Hamburger для мобильных */
.menu-toggle-checkbox {
    display: none;
}

.menu-toggle {
    display: none; /* Скрыто на десктопе */
    cursor: pointer;
    font-size: 24px;
    color: #f0f0f0;
    padding: 10px;
}

@media (max-width: 768px) {
    .mytheme-main-navigation ul {
        display: none; /* Скрываем меню по умолчанию */
        flex-direction: column;
        align-items: center;
        background: #0a1c2b;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .menu-toggle {
        display: block; /* Показываем hamburger */
        text-align: right;
    }

    .menu-toggle-checkbox:checked + .menu-toggle + ul {
        display: flex; /* Показываем меню при checked */
    }

    .mytheme-main-navigation .menu-item-has-children > a {
        pointer-events: none; /* Отключаем клик на родительской ссылке */
    }

    .mytheme-main-navigation .sub-menu {
        position: static; /* Для мобильного - не absolute */
        display: none;
        margin-top: 0;
        box-shadow: none;
    }

    .mytheme-main-navigation .menu-item-has-children:hover .sub-menu,
    .mytheme-main-navigation .menu-item-has-children:focus-within .sub-menu {
        display: block; /* Открытие подменю на hover/focus */
    }
}

/* Brokers Rating */
.brokers-rating {
    padding: 40px 0;
}

.section-title {
    font-size: 32px;
    margin-bottom: 30px;
}

.rating-list {
    list-style: none;
}

.rating-item {
    margin-bottom: 30px;
    display: flex;
    align-items: center; /* Для центрирования номера по вертикали */
}

.broker-card {
    flex: 1;
    display: flex;
    align-items: center; /* Центрирование содержимого карточки */
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 204, 102, 0.5); /* Однотонная обводка */
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease; /* Только box-shadow */
}

.broker-card:hover {
    box-shadow: 0 6px 20px rgba(0, 204, 102, 0.2); /* Мягкое размытие краёв без transform */
}

.broker-number {
    font-size: 28px;
    color: #00cc66;
    font-weight: bold;
    margin-right: 20px;
    align-self: center; /* Вертикальное центрирование относительно карточки */
}

.broker-thumbnail {
    width: 250px;
    height: 310px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.broker-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.broker-info {
    flex: 1;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрирование по вертикали */
}

.broker-info-item {
    margin-bottom: 12px;
}

.broker-info-item .label {
    font-weight: 600;
    color: #00cc66;
}

.broker-info-item .value {
    color: #f0f0f0;
}

.broker-right-column {
    flex: 2;
    padding: 0 20px;
}

.broker-title {
    font-size: 26px;
    margin-bottom: 15px;
}

.broker-description {
    margin-bottom: 20px;
    color: #f0f0f0;
    font-size: 16px;
}

.broker-details-lower {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.broker-rating-text {
    color: #00cc66;
    font-size: 16px;
}

.broker-buttons {
    position: relative;
}

.broker-buttons .broker-btn {
    display: inline-block;
    padding: 11px 62px; /* Новый padding */
    margin-right: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.broker-buttons .broker-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -200%;
    width: 300%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewY(-30deg);
    transition: left 0.5s ease;
}

.broker-buttons .broker-btn:hover::before {
    left: 100%; /* Блик пробегает слева направо */
}

.broker-buttons .broker-btn:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.broker-btn.goto {
    background: #00cc66;
    color: #0a1c2b;
}

.broker-btn.review {
    background: #1e90ff;
    color: #fff;
}

/* Review Page */
.review-seo-text {
    margin: 40px auto;
    text-align: center;
}

.review-seo-text h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.review-article {
    margin: 20px 0;
}

.review-info {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.review-info td {
    padding: 12px;
    border: 1px solid #00cc66;
    color: #f0f0f0;
	width: 50%
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.review-card {
    padding: 20px;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.review-card.pros {
    background: linear-gradient(to top, rgba(0, 204, 102, 0.15), transparent); /* Мягкий зелёный градиент */
    border: 1px solid rgba(0, 204, 102, 0.5); /* Обводка */
}

.review-card.pros:hover {
    border-color: #00cc66; /* Fade при hover */
}

.review-card.cons {
    background: linear-gradient(to top, rgba(255, 165, 0, 0.15), transparent); /* Мягкий оранжевый градиент */
    border: 1px solid rgba(255, 165, 0, 0.5); /* Обводка */
}

.review-card.cons:hover {
    border-color: #ffa500; /* Fade при hover */
}

.review-desc {
    list-style: disc;
    padding-left: 20px;
}

.review-btn {
    display: inline-block;
    position: relative;
    overflow: hidden;
    background: #00cc66;
    color: #0a1c2b;
    padding: 11px 62px; /* Новый padding */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: box-shadow 0.3s ease;
}

.review-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -200%;
    width: 300%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewY(-30deg);
    transition: left 0.5s ease;
}

.review-btn:hover::before {
    left: 100%; /* Блик пробегает */
}

.review-btn:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* SEO Text */
.seo-text {
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(30, 144, 255, 0.1), transparent);
}

.seo-text h1 {
    font-size: 28px;
    color: #00cc66;
    margin-bottom: 20px;
}

.seo-text p {
    font-size: 16px;
    color: #f0f0f0;
}

/* Footer */
.mytheme-footer {
    background: #0a1c2b;
    padding: 40px 0;
    color: #f0f0f0;
}

.mytheme-footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.mytheme-footer-logo {
    flex: 1;
    min-width: 200px;
}

.mytheme-footer-column {
    flex: 1;
    min-width: 150px;
    margin: 10px;
}

.mytheme-footer-column h3 {
    margin-bottom: 15px;
}

.mytheme-footer-column ul {
    list-style: none;
}

.mytheme-footer-column li {
    margin-bottom: 10px;
}

.mytheme-footer-bottom {
    text-align: center;
    margin-top: 20px;
}

.social-links a {
    margin: 0 10px;
    color: #1e90ff;
}

.social-links a:hover {
    color: #00cc66;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .broker-card {
        flex-direction: column;
        align-items: center;
    }

    .rating-item {
        flex-direction: column; /* Номер сверху в мобильной версии */
        align-items: center;
    }

    .broker-number {
        text-align: center;
        margin-bottom: 10px;
        order: -3; /* Номер самый верхний */
    }

    .broker-title {
        text-align: center;
        margin: 0 0 10px;
        order: -2; /* Заголовок сразу после номера, выше thumbnail */
    }

    .broker-thumbnail {
        width: 100%;
        height: 210px;
        margin-bottom: 15px;
        order: -1; /* Thumbnail после заголовка */
    }

    .broker-info {
        padding: 0;
        margin-bottom: 15px;
        order: 0; /* После thumbnail */
    }

    .broker-description {
        text-align: center;
        margin-bottom: 15px;
    }

    .broker-details-lower {
        flex-direction: column;
        align-items: center;
    }

    .broker-buttons {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    .broker-buttons .broker-btn {
        padding: 11px 62px; /* Новый padding для мобильных */
    }

    .mytheme-main-navigation .menu-item {
        margin: 10px 0;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }
}
