/* OP Meta Stats - Tier Ranking Styles */

.op-tier-ranking {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.op-tier-section {
    border: 1px solid #e8699c;
    overflow: hidden;
}

.op-tier-header {
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 700;
    color: #e8699c;
    text-align: center;
    background-color: #ffcfdc;
    border-bottom: 1px solid #e8699c;
}

.op-tier-leaders {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    background: #fff;
    justify-content: flex-start;
}

.op-tier-leader {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.op-tier-leader img {
    width: 120px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.op-tier-leader img:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.op-tier-leader-link {
    display: block;
    text-decoration: none;
}

.op-tier-leader-name {
    display: none;
}

.op-tier-leader-pct {
    font-size: 11px;
    color: #718096;
    margin-top: 2px;
}

.op-tier-empty {
    text-align: center;
    padding: 20px;
    color: #a0aec0;
    font-size: 14px;
}

.op-tier-error {
    text-align: center;
    padding: 20px;
    color: #e53e3e;
    font-size: 14px;
}

/* =============================================================
   Deck Recipes Styles ([op_deck_recipes])
   ============================================================= */

.op-recipe-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.op-recipe-tier-heading {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid #e53e3e;
    color: #1a202c;
}

.op-recipe-card {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.op-recipe-card-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #2d3748;
}

.op-recipe-card-image {
    text-align: center;
    margin-bottom: 16px;
}

.op-recipe-card-image img {
    max-width: 250px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.op-recipe-card-info {
    margin-bottom: 16px;
    line-height: 1.8;
}

.op-recipe-card-info p {
    margin: 4px 0;
    font-size: 14px;
    color: #4a5568;
}

.op-recipe-card-info strong {
    color: #2d3748;
}

.op-recipe-link {
    margin-top: 12px;
}

.op-recipe-link a {
    display: inline-block;
    padding: 8px 16px;
    background: #e53e3e;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.op-recipe-link a:hover {
    background: #c53030;
}

.op-recipe-deck-image {
    margin: 16px 0;
    text-align: center;
}

.op-recipe-deck-image-label {
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.op-recipe-deck-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* =============================================================
   Leader Deck Styles ([op_leader_deck])
   ============================================================= */

.op-leader-deck-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.op-leader-deck-segments {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border: 1px solid #e8699c;
    border-radius: 6px;
    overflow: hidden;
}

.op-leader-deck-seg {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    background: #fff;
    color: #e8699c;
    border: none;
    border-right: 1px solid #e8699c;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.op-leader-deck-seg:last-child {
    border-right: none;
}

.op-leader-deck-seg:hover {
    background: #fff0f5;
}

.op-leader-deck-seg.is-active {
    background: #e8699c;
    color: #fff;
}

.op-leader-deck-empty {
    text-align: center;
    padding: 20px;
    color: #a0aec0;
    font-size: 14px;
}

.op-leader-deck-item {
    margin-bottom: 32px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.op-leader-deck-event {
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 16px;
    line-height: 1.6;
}

.op-leader-deck-image {
    text-align: center;
}

.op-leader-deck-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 480px) {
    .op-tier-leader img {
        width: 140px;
    }

    .op-tier-leaders {
        gap: 8px;
        padding: 12px;
    }

    .op-recipe-card {
        padding: 14px;
    }

    .op-recipe-card-image img {
        max-width: 180px;
    }

    .op-leader-deck-seg {
        font-size: 12px;
        padding: 8px 6px;
    }

    .op-leader-deck-item {
        padding: 14px;
    }
}
