/**
 * Seamou Wiki - Single Item Page Styles
 * High-performance styles for 2-column Fandom item layout, moveset deck, and infobox.
 *
 * @package SeamouBuilder
 */

@keyframes sm-skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.sm-skeleton-loader {
    background: linear-gradient(90deg, #18181b 25%, #27272a 50%, #18181b 75%) !important;
    background-size: 200% 100% !important;
    animation: sm-skeleton-shimmer 1.5s infinite linear !important;
}

.sm-lazy-img {
    opacity: 1 !important;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.sm-lazy-img.sm-loaded {
    opacity: 1 !important;
}

.sm-fandom-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.sm-fandom-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sm-fandom-nav a {
    color: #00f0ff;
    text-decoration: none;
    font-weight: 700;
}

.sm-fandom-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 900px) {
    .sm-fandom-grid {
        grid-template-columns: 1fr;
    }
    .sm-fandom-sidebar-col {
        order: -1;
    }
}

.sm-fandom-title-box {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.sm-fandom-title-box h1 {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1.2;
}

.sm-fandom-taxo-bar {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.sm-fandom-taxo-bar a {
    color: #38bdf8;
    text-decoration: none;
}

.sm-fandom-tab-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    border-bottom: 2px solid #1e293b;
    padding-bottom: 2px;
    overflow-x: auto;
}

.sm-fandom-tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 16px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s;
    white-space: nowrap;
}

.sm-fandom-tab-btn:hover {
    color: #ffffff;
    background: #1e293b;
}

.sm-fandom-tab-btn.active {
    color: #00f0ff;
    border-bottom-color: #00f0ff;
    background: #1e293b;
}

.sm-fandom-quote {
    background: rgba(30, 41, 59, 0.5);
    border-left: 4px solid #00f0ff;
    padding: 12px 18px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 24px;
    font-style: italic;
}

.sm-fandom-quote-text {
    color: #e2e8f0;
    font-size: 0.95rem;
}

.sm-fandom-quote-author {
    color: #94a3b8;
    font-size: 0.78rem;
    margin-top: 6px;
    font-style: normal;
}

.sm-fandom-section {
    margin-bottom: 32px;
}

.sm-fandom-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 8px;
}

.sm-fandom-table-wrap {
    overflow: visible;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 10px;
    position: relative;
}

@media (max-width: 768px) {
    .sm-fandom-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.sm-fandom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.sm-fandom-table th {
    background: #1e293b;
    color: #94a3b8;
    font-weight: 800;
    padding: 10px 14px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.sm-fandom-table td {
    padding: 10px 14px;
    border-top: 1px solid #1e293b;
    color: #e2e8f0;
}

/* Moveset Deck */
.sm-moveset-deck {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
}

.sm-moveset-header-deck {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.sm-moveset-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-moveset-main-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
}

.sm-moveset-count-badge {
    background: #1e293b;
    color: #38bdf8;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
}

.sm-stance-switcher {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: #0b1120;
    padding: 4px;
    border-radius: 8px;
}

.sm-stance-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.sm-stance-tab.active-v1 {
    background: #1e293b;
    color: #00f0ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.sm-stance-tab.active-v2 {
    background: #1e293b;
    color: #fbbf24;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.sm-stance-pill-v1 {
    background: #00f0ff20;
    color: #00f0ff;
    border: 1px solid #00f0ff40;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 900;
}

.sm-stance-pill-v2 {
    background: #fbbf2420;
    color: #fbbf24;
    border: 1px solid #fbbf2440;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 900;
}

.sm-moveset-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.sm-moveset-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0b1120;
    border: 1px solid #1e293b;
    padding: 6px 12px;
    border-radius: 8px;
    flex: 1;
    min-width: 200px;
    color: #94a3b8;
}

.sm-moveset-search-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
    width: 100%;
}

.sm-moveset-controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-moveset-key-filters {
    display: flex;
    gap: 4px;
}

.sm-key-filter-btn {
    background: #0b1120;
    border: 1px solid #1e293b;
    color: #94a3b8;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.sm-key-filter-btn.active {
    background: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
}

.sm-moveset-toggle-all-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.sm-moveset-toggle-all-btn:hover {
    color: #ffffff;
    border-color: #38bdf8;
}

.sm-moveset-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sm-skill-card {
    background: #0b1120;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s;
}

.sm-skill-card:hover {
    border-color: #334155;
}

.sm-skill-card.is-awakened {
    border-left: 3px solid #fbbf24;
}

.sm-skill-card.is-ultimate {
    border-left: 3px solid #f43f5e;
}

.sm-skill-card.is-mobility {
    border-left: 3px solid #38bdf8;
}

.sm-skill-row-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.sm-skill-keycap {
    background: #1e293b;
    border: 2px solid #334155;
    border-bottom: 4px solid #0f172a;
    border-radius: 8px;
    min-width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #00f0ff;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.sm-skill-keycap-sub {
    font-size: 0.55rem;
    color: #94a3b8;
    font-weight: 700;
}

.sm-skill-body {
    flex: 1;
}

.sm-skill-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 8px;
}

.sm-skill-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin-right: 6px;
}

.sm-skill-name-sub {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
}

.sm-skill-tags-block {
    display: flex;
    gap: 6px;
}

.sm-skill-type-tag {
    font-size: 0.7rem;
    font-weight: 800;
    background: #1e293b;
    color: #cbd5e1;
    padding: 2px 8px;
    border-radius: 4px;
}

.sm-skill-form-tag {
    font-size: 0.65rem;
    font-weight: 900;
    background: rgba(234, 179, 8, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(234, 179, 8, 0.3);
    padding: 1px 6px;
    border-radius: 4px;
}

.sm-skill-desc {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 10px;
}

.sm-skill-meta-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.sm-skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid #334155;
}

.sm-skill-chip svg {
    width: 13px;
    height: 13px;
}

.sm-skill-chip.chip-mastery {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}

.sm-skill-chip.chip-cd {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}

.sm-skill-chip.chip-cost {
    color: #a855f7;
    border-color: rgba(168, 85, 247, 0.3);
}

.sm-skill-chip.chip-ken {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.sm-skill-chip.chip-ken.no-break {
    color: #94a3b8;
    border-color: #334155;
}

.sm-skill-actions-bar {
    margin-top: 10px;
}

.sm-skill-expand-btn {
    background: transparent;
    border: 1px solid #1e293b;
    color: #38bdf8;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.sm-skill-expand-btn:hover {
    background: #1e293b;
}

.sm-skill-expand-icon {
    transition: transform 0.25s ease;
}

.sm-skill-card.is-expanded .sm-skill-expand-icon {
    transform: rotate(180deg);
}

.sm-skill-drawer {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #1e293b;
}

.sm-skill-card.is-expanded .sm-skill-drawer {
    display: block;
}

.sm-drawer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.sm-drawer-box {
    background: #090e17;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 12px;
}

.sm-drawer-box-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-drawer-box-title svg {
    width: 13px;
    height: 13px;
}

.sm-combo-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sm-combo-step {
    background: #1e293b;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #334155;
}

.sm-pros-cons-list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.sm-pros-list li { color: #4ade80; }
.sm-cons-list li { color: #f87171; }

/* Infobox Styles */
.sm-infobox-tabs {
    display: flex;
    gap: 2px;
    background: #09090b;
    padding: 4px;
}

.sm-infobox-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #71717a;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 4px;
    border-radius: 4px;
    cursor: pointer;
}

.sm-infobox-tab.active {
    background: #27272a;
    color: #ffffff;
}

.sm-infobox-rows {
    padding: 12px 16px;
    font-size: 0.85rem;
}

.sm-infobox-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sm-infobox-label {
    color: #94a3b8;
    font-weight: 700;
}

.sm-infobox-val {
    font-weight: 800;
}

.sm-infobox-price-bar {
    background: #18181b;
    padding: 12px 16px;
    border-top: 2px solid #27272a;
}

.sm-infobox-price-title {
    font-size: 0.75rem;
    font-weight: 900;
    color: #a1a1aa;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-align: center;
}

.sm-infobox-price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sm-infobox-price-cell {
    background: #09090b;
    border: 1px solid #27272a;
    padding: 8px 10px;
    border-radius: 8px;
    text-align: center;
}

.sm-infobox-price-tag {
    font-size: 0.7rem;
    color: #71717a;
    font-weight: 800;
    text-transform: uppercase;
}

.sm-infobox-price-val {
    font-size: 0.95rem;
    font-weight: 900;
    margin-top: 2px;
}

.sm-chromatic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.sm-chromatic-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: all 0.2s;
}

.sm-chromatic-card:hover {
    transform: translateY(-3px);
    border-color: #38bdf8;
}

.sm-chromatic-thumb {
    height: 120px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px !important;
    overflow: hidden;
    background: #0b1120;
}

.sm-chromatic-thumb img {
    width: auto !important;
    height: auto !important;
    max-width: 92% !important;
    max-height: 92% !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
    transition: transform 0.35s ease;
}

.sm-chromatic-card:hover .sm-chromatic-thumb img {
    transform: scale(1.08);
}

.sm-chromatic-name {
    font-size: 0.75rem;
    font-weight: 800;
    color: #cbd5e1;
    padding: 6px 4px;
    background: #1e293b;
}

/* Quick Edit Action Button in Breadcrumbs */
.sm-wiki-edit-action-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: 6px;
    color: #00f0ff !important;
    text-decoration: none !important;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.sm-wiki-edit-action-btn:hover {
    background: #00f0ff;
    color: #090d16 !important;
    border-color: #00f0ff;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.6);
    transform: translateY(-1px);
}

.sm-wiki-edit-action-btn svg {
    transition: transform 0.2s ease;
}

.sm-wiki-edit-action-btn:hover svg {
    transform: rotate(-10deg) scale(1.1);
}
