/*
Theme Name: MerryBoar ESO Theme
Description: Темная тема для ESO билдов в стиле The Elder Scrolls Online
Version: 4.5
Author: MerryBoar
*/

/* === ОБЩИЕ СТИЛИ === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 18px;
}

/* === HEADER === */
.site-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-bottom: 1px solid #444;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e0e0e0;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.site-title:hover {
    color: #fff;
    transition: color 0.3s ease;
}

/* === НАВИГАЦИЯ === */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-navigation a {
    color: #c0c0c0;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.main-navigation a:hover {
    color: #fff;
    background-color: rgba(100, 149, 237, 0.2);
    transform: translateY(-1px);
}

/* === КОНТЕЙНЕР === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === ГЛАВНЫЙ КОНТЕНТ === */
.site-main {
    padding: 2rem 0;
    min-height: calc(100vh - 150px);
}

/* === КОНТЕНТНЫЕ ОБЛАСТИ === */
.content-area {
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid #444;
}

/* === ЗАГОЛОВКИ === */
h1, h2, h3, h4, h5, h6 {
    color: #e0e0e0;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid #444;
    padding-bottom: 0.5rem;
    color: #e0e0e0;
}

h2 {
    font-size: 1.8rem;
    color: #e0e0e0;
}

h3 {
    font-size: 1.4rem;
    color: #c0c0c0;
}

/* === ССЫЛКИ === */
a {
    color: #6495ed;
    transition: color 0.3s ease;
}

a:hover {
    color: #8db4e2;
}

/* === КНОПКИ === */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #555 0%, #444 100%);
    color: #e0e0e0;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn:hover {
    background: linear-gradient(135deg, #666 0%, #555 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    color: #fff;
}

/* === КАРТОЧКИ БИЛДОВ === */
.build-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.build-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #555;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.build-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #555, #666, #555);
}

.build-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
    border-color: #666;
}

.build-title {
    color: #e0e0e0;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.build-class {
    color: #8DB4E2;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.build-description {
    color: #c0c0c0;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* === FOOTER === */
.site-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #888;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #333;
}

.site-footer p {
    font-size: 0.9rem;
}

/* === ТАБЛИЦЫ === */
.equipment-table, .skills-table, .consumables-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: rgba(45, 45, 45, 0.5);
    border: 1px solid #444;
    font-size: 0.875rem;
    max-width: 800px;
}

/* === ИЗОБРАЖЕНИЯ СЛОТОВ И НАВЫКОВ === */
.item-icon, .slot-icon {
    width: 32px;
    height: 32px;
    border: 1px solid #666;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
    transition: border-color 0.3s ease;
}

.item-icon:hover, .slot-icon:hover {
    border-color: #d4af37;
}

/* Отступы для мобильных устройств */
@media (max-width: 768px) {
    .item-icon, .slot-icon {
        width: 24px;
        height: 24px;
        margin-right: 6px;
    }
}

.equipment-table th, .equipment-table td,
.skills-table th, .skills-table td,
.consumables-table th, .consumables-table td {
    padding: 0.1rem 0.25rem;
    text-align: left;
    border-bottom: 1px solid #555;
    border-right: 1px solid #555;
    line-height: 0.9;
    font-size: 0.9rem;
}

.equipment-table td:last-child,
.skills-table td:last-child,
.consumables-table td:last-child,
.equipment-table th:last-child,
.skills-table th:last-child,
.consumables-table th:last-child {
    border-right: none;
}

.equipment-table th, .skills-table th, .consumables-table th {
    background: rgba(100, 149, 237, 0.15);
    color: #6495ed;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.equipment-table td, .skills-table td, .consumables-table td {
    color: #c0c0c0;
    font-size: 0.875rem;
}

.equipment-table tr:last-child td,
.skills-table tr:last-child td,
.consumables-table tr:last-child td {
    border-bottom: none;
}

.equipment-table tr:hover,
.skills-table tr:hover,
.consumables-table tr:hover {
    background: rgba(100, 149, 237, 0.08);
}

.ultimate-skill {
    background: rgba(255, 215, 0, 0.1);
}

.ultimate-skill td {
    color: #ffd700;
    font-weight: 500;
}

/* Компактность для мобильных */
@media (max-width: 768px) {
    .equipment-table, .skills-table, .consumables-table {
        font-size: 0.875rem;
    }
    
    .equipment-table th, .equipment-table td,
    .skills-table th, .skills-table td,
    .consumables-table th, .consumables-table td {
        padding: 0.3rem 0.4rem;
    }
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .main-navigation ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .container {
        padding: 0 1rem;
    }

    .build-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.8rem;
    }

    .gear-table, .skills-table {
        font-size: 0.875rem;
    }

    .gear-table th, .gear-table td,
    .skills-table th, .skills-table td {
        padding: 0.5rem;
    }

    .gear-table th:nth-child(3),
    .gear-table th:nth-child(4),
    .gear-table th:nth-child(5),
    .gear-table td:nth-child(3),
    .gear-table td:nth-child(4),
    .gear-table td:nth-child(5) {
        display: none;
    }
}

/* === ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ === */
.content-area:hover {
    border-color: #555;
    transition: border-color 0.3s ease;
}

/* === ESO HUB ССЫЛКИ === */
.item-name a, .skill-name a, .consumable-info a {
    color: #6495ed;
    text-decoration: none;
    transition: color 0.3s ease;
}

.item-name a:hover, .skill-name a:hover, .consumable-info a:hover {
    color: #8db4e2;
    text-decoration: underline;
}

/* === СЕТКА СКИЛЛОВ В СТИЛЕ ALCASTHQ === */
.skills-grid {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.skill-bar-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0.3rem 0;
    margin: 0.2rem 0;
    padding-bottom: 0.5rem;
    position: relative;
}

.skill-bar-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 65%; /* 65% от ширины блока скиллов */
    height: 1px;
    background-color: #444;
}

.skill-bar-container:last-child {
    border-bottom: none;
}

.bar-label-left {
    text-align: left;
    color: #d4af37;
    font-size: 1.4rem;
    font-weight: bold;
    min-width: 180px;
    flex-shrink: 0;
}

.bar-label-left .bar-name {
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 1.2rem;
}

.skill-row {
    display: flex;
    justify-content: flex-start;
    gap: 7px;
    flex-wrap: wrap;
}

/* Дополнительный отступ перед ультимейт скиллом */
.skill-row .skill-icon-link:nth-child(6) {
    margin-left: 1px;
}

/* Убираем полосу после последней строки (Back Bar) */
.skill-bar-container:last-child::after {
    display: none;
}

.skill-icon-link {
    display: inline-block;
    position: relative;
    text-decoration: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    flex-grow: 0;
    width: 52px;
    height: 52px;
}

.skill-icon-link:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.skill-icon {
    width: 50px !important;
    height: 50px !important;
    border-radius: 8px;
    border: 1.5px solid #666;
    transition: all 0.3s ease;
    background: #1a1a1a;
    margin: 1px;
}

.skill-icon-link:hover .skill-icon {
    border-color: #d4af37;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

/* Ultimate skills - золотая рамка */
.skill-icon-link.ultimate .skill-icon {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.skill-icon-link.ultimate:hover .skill-icon {
    border-color: #ffed4e;
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.5);
}

/* Убираем старые стили для названий баров */
.skill-bars-labels {
    display: none;
}

/* Детали скиллов - две колонки */
.skills-details {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skills-details .skills-table {
    width: 100%;
    margin: 0;
}

.skills-details .skills-table th {
    font-size: 1.1rem;
    padding: 0.8rem;
}

.skills-details .skills-table td {
    font-size: 1rem;
    padding: 0.6rem;
}

.skills-details .skills-table th:first-child {
    width: 250px;
}

.skills-details .skills-table th:nth-child(2) {
    width: auto;
}

/* Упрощенные контейнеры таблиц */
.skills-table-container {
    margin-bottom: 1.5rem;
}

/* Мобильная адаптивность для скиллов */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .skill-icon {
        width: 35px !important;
        height: 35px !important;
    }
    
    .skill-icon-link {
        width: 37px;
        height: 37px;
    }
    
    .skill-row {
        gap: 5px;
        justify-content: center;
    }
    
    .skill-bar-container {
        flex-direction: column;
        text-align: center;
    }
    
    .skill-bar-container::after {
        width: 65%; /* 65% от ширины блока скиллов */
    }
    
    .bar-label-left {
        display: none; /* Скрываем надписи Front Bar / Back Bar на мобильных */
    }
    
    .skills-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Все столбцы видимы на мобильных */
}

/* Увеличиваем общий размер шрифтов для лучшей читаемости */
.build-section {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
    border-radius: 12px;
    border: 1px solid #555;
    font-size: 1.1rem; /* Увеличил с обычного размера */
}

.build-section h2 {
    color: #e0e0e0;
    font-size: 1.8rem; /* Увеличил с 1.5rem */
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #555;
    padding-bottom: 0.8rem;
}

.build-section h3 {
    color: #d4af37;
    font-size: 1.5rem; /* Увеличил с 1.2rem */
    margin: 1.5rem 0 1rem 0;
}

.build-section p, .build-section li {
    font-size: 1.15rem; /* Увеличил с 1rem */
    line-height: 1.7; /* Увеличил для лучшей читаемости */
    margin-bottom: 1rem;
}

/* Размеры текста в таблицах */
.build-table, .skills-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 8px;
    overflow: hidden;
    font-size: 1.1rem; /* Увеличил с 1rem */
}

.build-table th, .skills-table th {
    background: linear-gradient(135deg, #555 0%, #666 100%);
    color: #e0e0e0;
    padding: 1rem 0.8rem; /* Увеличил padding */
    text-align: left;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.2rem; /* Увеличил с 1.1rem */
}

.build-table td, .skills-table td {
    padding: 1rem 0.8rem; /* Увеличил padding */
    border-bottom: 1px solid #444;
    vertical-align: middle;
    font-size: 1.1rem; /* Увеличил с 1rem */
}

/* Увеличиваем размеры статистики билда */
.build-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: linear-gradient(135deg, #333 0%, #444 100%);
    padding: 1.5rem; /* Увеличил с 1rem */
    border-radius: 10px;
    border: 1px solid #555;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: #d4af37;
}

.stat-value {
    font-size: 2.2rem; /* Увеличил с 2rem */
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem; /* Увеличил с 1rem */
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Размеры для ротации и других секций */
.rotation-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rotation-step {
    background: rgba(45, 45, 45, 0.8);
    padding: 1.5rem; /* Увеличил с 1rem */
    border-radius: 8px;
    border-left: 4px solid #d4af37;
}

.rotation-step h4 {
    color: #d4af37;
    font-size: 1.4rem; /* Увеличил с 1.2rem */
    margin-bottom: 1rem;
}

.rotation-step p {
    font-size: 1.2rem; /* Увеличил с 1rem */
    line-height: 1.6;
    color: #e0e0e0;
}

/* Мобильная адаптивность с увеличенными размерами */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* На мобильных оставляем базовый размер */
    }
    
    .build-section {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .build-section h2 {
        font-size: 1.5rem;
    }
    
    .build-section p, .build-section li {
        font-size: 1rem;
    }
    
    .item-icon {
        width: 24px; /* На мобильных меньше */
        height: 24px;
        margin-right: 6px;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .skill-icon {
        width: 40px !important;
        height: 40px !important;
    }
    
    .skill-icon-link {
        width: 42px;
        height: 42px;
    }
    
    .skill-row {
        gap: 5px;
        justify-content: center;
    }
    
    .skill-bar-container {
        flex-direction: column;
        text-align: center;
    }
    
    .skill-bar-container::after {
        width: 65%; /* 65% от ширины блока скиллов */
    }
    
    .bar-label-left {
        display: none; /* Скрываем надписи Front Bar / Back Bar на мобильных */
    }
    
    .skills-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Все столбцы видимы на мобильных */
}