/* Enhanced Endfield Guide Styles */

/* Section Header with Last Updated */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
}

.last-updated {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}

/* Overview Hero */
.overview-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--gray-50), #fff);
    border-radius: 16px;
    overflow: hidden;
}

.overview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

.overview-text {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.overview-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--endfield-primary), var(--endfield-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.overview-text p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-600);
}

/* Key Features Grid */
.key-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.feature-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-100);
    transition: all 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.feature-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.feature-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Beginner Guide Styles */
.guide-box {
    background: linear-gradient(135deg, #fff9e6, #fff);
    border: 2px solid #ffd700;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 32px;
}

.guide-box.important {
    background: linear-gradient(135deg, #e8f4ff, #fff);
    border-color: #3498db;
}

.guide-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.check-item:hover {
    background: rgba(0,0,0,0.03);
}

.check-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--endfield-primary);
}

.check-item span {
    font-size: 15px;
    color: var(--gray-700);
}

.check-item input:checked + span {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Two Column Grid */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.guide-column h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.numbered-guide {
    counter-reset: step;
    list-style: none;
}

.numbered-guide li {
    position: relative;
    padding-left: 48px;
    margin-bottom: 20px;
}

.numbered-guide li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--endfield-primary), var(--endfield-accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.numbered-guide li strong {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--gray-900);
}

.numbered-guide li p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Mistake List */
.mistake-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mistake-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #fff5f5;
    border-radius: 10px;
    border-left: 4px solid #ff4d4d;
}

.mistake-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.mistake-item strong {
    font-size: 14px;
    color: var(--gray-900);
    display: block;
    margin-bottom: 4px;
}

.mistake-item p {
    font-size: 13px;
    color: var(--gray-600);
}

/* Reroll Box */
.reroll-box {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.reroll-warning {
    background: #fff5f5;
    border: 2px solid #ff4d4d;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.reroll-warning strong {
    color: #dc2626;
    font-size: 16px;
    display: block;
    margin-bottom: 12px;
}

.reroll-warning ul {
    padding-left: 20px;
    margin-top: 12px;
}

.reroll-warning li {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--gray-700);
}

.reroll-targets {
    margin: 24px 0;
}

.reroll-targets h4 {
    font-size: 16px;
    margin-bottom: 16px;
}

.target-tier {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 12px;
}

.target-tier.ss-tier {
    background: linear-gradient(135deg, #fff9e6, #fff);
    border: 2px solid #ffd700;
}

.target-tier.s-tier {
    background: linear-gradient(135deg, #f0f9ff, #fff);
    border: 2px solid #3b82f6;
}

.tier-name {
    font-weight: 700;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.ss-tier .tier-name {
    color: #d97706;
}

.s-tier .tier-name {
    color: #2563eb;
}

.target-chars {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.target-char {
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--gray-200);
}

.reroll-steps {
    margin-top: 24px;
}

.reroll-steps h4 {
    margin-bottom: 12px;
}

.reroll-steps ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.reroll-steps li {
    margin-bottom: 8px;
    font-size: 14px;
}

.reroll-rewards {
    background: #f0fdf4;
    border: 1px solid #22c55e;
    border-radius: 12px;
    padding: 16px;
    margin-top: 20px;
}

.reroll-rewards h5 {
    margin-bottom: 10px;
    color: #166534;
}

.reroll-rewards ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.reroll-rewards li {
    font-size: 14px;
    margin-bottom: 4px;
}

/* Enhanced Tier List */
.tier-tabs {
    display: flex;
    gap: 8px;
}

.tier-tab {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    background: var(--gray-100);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tier-tab:hover {
    background: var(--gray-200);
}

.tier-tab.active {
    background: var(--endfield-primary);
    color: white;
}

/* Tier Category */
.tier-category {
    margin-bottom: 32px;
}

.tier-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.tier-label {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: white;
}

.tier-label.ss {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
}

.tier-label.s {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.tier-label.a {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.tier-desc {
    font-size: 14px;
    color: var(--gray-600);
}

/* Character Tier Grid */
.character-tier-grid {
    display: grid;
    gap: 16px;
}

.tier-character-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-100);
    transition: all 0.2s;
}

.tier-character-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.char-img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.char-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.char-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-name-row h4 {
    font-size: 18px;
    font-weight: 700;
}

.char-rarity {
    color: #ffd700;
    font-size: 12px;
    letter-spacing: 1px;
}

.class-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.class-tag.warrior {
    background: #fef3c7;
    color: #92400e;
}

.class-tag.defender {
    background: #ede9fe;
    color: #5b21b6;
}

.class-tag.sniper {
    background: #dbeafe;
    color: #1e40af;
}

.class-tag.caster {
    background: #fce7f3;
    color: #9d174d;
}

.class-tag.support {
    background: #d1fae5;
    color: #065f46;
}

.class-tag.specialist {
    background: #e5e7eb;
    color: #374151;
}

.char-desc {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 4px 0;
}

.char-pros {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.pro {
    font-size: 13px;
    color: var(--gray-700);
}

/* Tier Legend */
.tier-legend-box {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
}

.tier-legend-box h4 {
    margin-bottom: 16px;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.legend-item {
    text-align: center;
}

.legend-tier {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.legend-tier.ss {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
}

.legend-tier.s {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.legend-tier.a {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.legend-tier.b {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
}

.legend-item p {
    font-size: 13px;
    color: var(--gray-600);
}

/* Character Database */
.character-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    background: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--endfield-primary);
}

.filter-btn.active {
    background: var(--endfield-primary);
    color: white;
    border-color: var(--endfield-primary);
}

/* Class Section */
.class-section {
    margin-bottom: 48px;
}

.class-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}

.class-header.warrior {
    border-color: #f59e0b;
}

.class-header.defender {
    border-color: #8b5cf6;
}

.class-header.sniper {
    border-color: #3b82f6;
}

.class-header.caster {
    border-color: #ec4899;
}

.class-header.support {
    border-color: #10b981;
}

.class-header.specialist {
    border-color: #6b7280;
}

/* Characters Detailed Grid */
.characters-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.char-detailed-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-100);
}

.char-header-section {
    display: flex;
    gap: 16px;
    padding: 20px;
    color: white;
}

.warrior-gradient {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.defender-gradient {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.support-gradient {
    background: linear-gradient(135deg, #10b981, #059669);
}

.char-portrait-large {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
}

.char-title-section h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.rarity-stars {
    display: block;
    font-size: 12px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.class-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.char-stats-section {
    padding: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-row span:first-child {
    width: 40px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
}

.stat-bar-container {
    flex: 1;
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--endfield-primary), var(--endfield-accent));
    border-radius: 4px;
}

.stat-value {
    width: 30px;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
}

.char-skills {
    padding: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.char-skills h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.char-skills ul {
    list-style: none;
}

.char-skills li {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.char-skills li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--endfield-primary);
    font-weight: 700;
}

.char-skills strong {
    color: var(--gray-900);
}

.char-rating {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-50);
}

.rating-label {
    font-size: 14px;
    color: var(--gray-600);
}

.rating-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--endfield-primary);
}

/* Team Compositions */
.team-comps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.team-comp-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 2px solid var(--gray-100);
}

.team-comp-card.recommended {
    border-color: var(--endfield-primary);
    position: relative;
}

.comp-header {
    padding: 24px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.comp-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
}

.comp-badge:not(.budget):not(.boss) {
    background: linear-gradient(135deg, var(--endfield-primary), var(--endfield-accent));
    color: white;
}

.comp-badge.budget {
    background: #dbeafe;
    color: #1e40af;
}

.comp-badge.boss {
    background: #fce7f3;
    color: #9d174d;
}

.comp-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.comp-desc {
    font-size: 13px;
    color: var(--gray-500);
}

.comp-members {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.comp-member {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 8px;
}

.member-role {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
}

.member-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
}

/* Weapons Section */
.weapons-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.weapons-overview h3,
.weapon-tier-list h3,
.weapon-obtaining h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.weapons-overview p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

.weapon-categories {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.weapon-category h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-200);
}

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

.weapon-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--gray-300);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.weapon-item.ss-tier {
    border-left-color: #ffd700;
}

.weapon-item.s-tier {
    border-left-color: #3b82f6;
}

.weapon-item.a-tier {
    border-left-color: #22c55e;
}

.weapon-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.weapon-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
}

.weapon-rarity {
    font-size: 12px;
    color: #ffd700;
    font-weight: 600;
}

.weapon-desc {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 8px;
    line-height: 1.5;
}

.best-for {
    font-size: 12px;
    color: var(--endfield-primary);
    font-weight: 600;
}

.obtain-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.obtain-method {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.obtain-method h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.obtain-method p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Outpost Section */
.outpost-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.outpost-overview h3,
.outpost-list h3,
.liaison-guide h3,
.regional-development h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.outpost-overview p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

.outpost-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.outpost-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.outpost-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.outpost-location {
    font-size: 12px;
    color: var(--endfield-primary);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.outpost-card p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 12px;
}

.best-liaison {
    font-size: 13px;
    padding: 10px;
    background: var(--gray-50);
    border-radius: 8px;
}

.outpost-skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.skill-box {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.skill-box h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--endfield-primary);
}

.skill-box p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

.liaison-priority {
    background: #f0fdf4;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.liaison-priority h4 {
    margin-bottom: 12px;
}

.liaison-priority ol {
    padding-left: 20px;
}

.liaison-priority li {
    margin-bottom: 8px;
    font-size: 14px;
}

.regional-development ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.regional-development li {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--gray-700);
}

/* Currency Section */
.currency-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.currency-priority h3,
.currency-farming h3,
.f2p-tips h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.priority-list-detailed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.priority-item-currency {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-left: 4px solid var(--endfield-primary);
}

.priority-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--endfield-primary), var(--endfield-accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.priority-item-currency h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.priority-item-currency p {
    font-size: 14px;
    color: var(--gray-600);
}

.currency-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.currency-method {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.currency-method h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.currency-method ul {
    padding-left: 16px;
}

.currency-method li {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.tips-box {
    background: linear-gradient(135deg, #fef3c7, #fff);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 24px;
}

.tips-box ul {
    padding-left: 20px;
}

.tips-box li {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--gray-800);
}

/* Boss Cards */
.boss-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.boss-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-100);
}

.boss-card.major-boss {
    border: 2px solid #8b5cf6;
}

.boss-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
}

.boss-icon {
    font-size: 40px;
}

.boss-title {
    flex: 1;
}

.boss-title h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.boss-subtitle {
    font-size: 14px;
    opacity: 0.7;
}

.difficulty {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.difficulty.hard {
    background: #ef4444;
}

.difficulty.medium {
    background: #f59e0b;
}

.boss-content {
    padding: 24px;
}

.boss-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-100);
}

.boss-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-label {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    font-weight: 600;
}

.info-value {
    font-size: 15px;
    font-weight: 700;
}

.info-value.ice {
    color: #3b82f6;
}

.info-value.fire {
    color: #ef4444;
}

.boss-mechanics,
.boss-strategy {
    margin-bottom: 24px;
}

.boss-mechanics h4,
.boss-strategy h4,
.boss-rewards h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.boss-mechanics ul {
    padding-left: 20px;
}

.boss-mechanics li {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.5;
}

.boss-mechanics strong {
    color: var(--gray-900);
}

.boss-strategy ol {
    padding-left: 20px;
}

.boss-strategy li {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.5;
}

.boss-rewards {
    background: #f0fdf4;
    padding: 16px 20px;
    border-radius: 12px;
}

.reward-item {
    display: inline-block;
    margin-right: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #166534;
}

/* Factory Content */
.factory-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.blueprint-showcase h3,
.factory-tips-detailed h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.blueprint-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.blueprint-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid var(--gray-100);
}

.bp-preview {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bp-info {
    padding: 16px;
}

.bp-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.bp-info p {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.bp-code {
    display: inline-block;
    background: var(--gray-100);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 12px;
}

.bp-stats {
    display: flex;
    gap: 12px;
}

.bp-stats span {
    font-size: 12px;
    color: var(--gray-600);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tip-card-detailed {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.tip-card-detailed h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--endfield-primary);
}

.tip-card-detailed ul {
    padding-left: 20px;
}

.tip-card-detailed li {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--gray-700);
}

/* Responsive */
@media (max-width: 1024px) {
    .key-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .overview-hero {
        grid-template-columns: 1fr;
    }
    
    .overview-image img {
        max-height: 250px;
    }
    
    .outpost-grid,
    .outpost-skills,
    .currency-methods,
    .obtain-methods {
        grid-template-columns: 1fr;
    }
    
    .sets-grid,
    .blueprint-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .two-column-grid {
        grid-template-columns: 1fr;
    }
    
    .checklist {
        grid-template-columns: 1fr;
    }
    
    .tier-character-card {
        grid-template-columns: 80px 1fr;
    }
    
    .char-img {
        width: 80px;
        height: 80px;
    }
    
    .characters-detailed-grid {
        grid-template-columns: 1fr;
    }
    
    .legend-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-comps-grid {
        grid-template-columns: 1fr;
    }
    
    .boss-info-grid {
        grid-template-columns: 1fr;
    }
    
    .blueprint-grid,
    .sets-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   LAYOUT FIXES - Sidebar & Text Colors
   ============================================ */

/* Featured Guides Bar (replaces ugly overview) */
.featured-guides-bar {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 32px;
}

.featured-guides-bar h3 {
    color: #92400e;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.featured-link {
    background: white;
    color: #1f2937;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.featured-link:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    transform: translateY(-1px);
}

/* Fix Sidebar Positioning - Push to edge */
.game-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

.game-sidebar {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

/* Fix text colors for better readability */
.game-main h2 {
    color: #111827;
    font-weight: 800;
}

.game-main h3 {
    color: #1f2937;
    font-weight: 700;
}

.game-main p {
    color: #374151;
    line-height: 1.7;
}

.feature-card h4 {
    color: #111827;
}

.feature-card p {
    color: #4b5563;
}

/* Sidebar improvements */
.sidebar-nav {
    padding-right: 0;
}

.sidebar-section h4 {
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-section ul li a {
    color: #374151;
    font-weight: 500;
}

.sidebar-section ul li a:hover {
    color: #2563eb;
}

/* Code widget improvements */
.codes-widget code {
    color: #111827;
    background: #f3f4f6;
}

.code-reward {
    color: #059669;
    font-weight: 600;
}

/* Tips widget */
.tip-item p {
    color: #374151;
}

/* Responsive fixes */
@media (max-width: 1024px) {
    .game-layout {
        grid-template-columns: 1fr;
    }
    
    .game-sidebar {
        position: relative;
        top: 0;
        order: -1;
        max-height: none;
    }
    
    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .featured-links {
        justify-content: center;
    }
    
    .key-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .key-features-grid {
        grid-template-columns: 1fr;
    }
}
