/* Wiki Specific Styles */

/* Wiki Header */
.wiki-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 4rem 0;
}

.wiki-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.wiki-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.wiki-description {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.wiki-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.wiki-stats .stat {
    text-align: center;
}

.wiki-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.wiki-stats .stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Game Overview */
.game-overview {
    padding: 4rem 0;
    background: var(--background-primary);
}

.game-overview h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.overview-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.overview-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.key-features {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--background-secondary);
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
}

.key-features h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.key-features ul {
    list-style: none;
    padding: 0;
}

.key-features li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.key-features li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.overview-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.game-highlight {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
}

.game-highlight h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.game-highlight p {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Quick Start */
.quick-start {
    padding: 4rem 0;
    background: var(--background-secondary);
}

.quick-start h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.start-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.start-step {
    background: var(--background-primary);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.start-step:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.start-step h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.start-step p {
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Wiki Categories */
.wiki-categories {
    padding: 4rem 0;
    background: var(--background-primary);
}

.wiki-categories h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--background-secondary);
    border-radius: 20px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card.featured::before {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transform: scaleX(1);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-description {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.guide-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.difficulty {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty.easy {
    background: #10b981;
    color: white;
}

.difficulty.medium {
    background: #f59e0b;
    color: white;
}

.difficulty.hard {
    background: #ef4444;
    color: white;
}

.card-topics {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.topic {
    background: var(--background-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Latest Updates */
.latest-updates {
    padding: 4rem 0;
    background: var(--background-secondary);
}

.latest-updates h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.update-card {
    background: var(--background-primary);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.update-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.update-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.update-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.update-card p {
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.update-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.update-link:hover {
    color: var(--secondary-color);
}

/* Pro Tips */
.pro-tips {
    padding: 4rem 0;
    background: var(--background-primary);
}

.pro-tips h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tip-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tip-card p {
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Community Section */
.community-section {
    padding: 4rem 0;
    background: var(--background-secondary);
}

.community-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.community-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.community-content h3 {
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.community-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.community-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--background-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.feature-icon {
    font-size: 1.5rem;
}

/* Contributing */
.contributing {
    padding: 4rem 0;
    background: var(--background-primary);
}

.contributing h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.contribute-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contribute-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: var(--text-secondary);
}

.contribute-ways {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contribute-way {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.contribute-way:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.contribute-way h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contribute-way p {
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: left;
}

/* Guide Pages Specific Styles */

/* Guide Header */
.guide-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 4rem 0;
}

.guide-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.guide-icon {
    font-size: 5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.guide-info h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.guide-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.guide-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.guide-meta span {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Table of Contents */
.table-of-contents {
    padding: 3rem 0;
    background: var(--background-secondary);
}

.table-of-contents h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.toc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-primary);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.toc-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.toc-number {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.toc-title {
    font-weight: 600;
    color: var(--text-primary);
}

/* Guide Content */
.guide-content {
    padding: 4rem 0;
    background: var(--background-primary);
}

.content-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.content-text {
    max-width: none;
}

.content-text h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: var(--text-primary);
}

.content-text h4 {
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem 0;
    color: var(--text-primary);
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.content-text ul {
    margin-bottom: 2rem;
}

.content-text li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Special Content Boxes */
.highlight-box,
.tip-box,
.warning-box,
.success-box {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid;
}

.highlight-box {
    background: rgba(99, 102, 241, 0.1);
    border-left-color: #6366f1;
}

.tip-box {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
}

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: #f59e0b;
}

.success-box {
    background: rgba(34, 197, 94, 0.1);
    border-left-color: #22c55e;
}

/* Controls Grid */
.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.control-key {
    background: var(--text-primary);
    color: var(--background-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: center;
}

.control-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Steps List */
.steps-list {
    margin: 2rem 0;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--background-secondary);
    border-radius: 16px;
    border: 2px solid var(--border-color);
    align-items: flex-start;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Equipment Grid */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.equipment-item {
    background: var(--background-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.equipment-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.equipment-item h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.equipment-item p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Stats Explanation */
.stats-explanation {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.stat-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.stat-item:last-child {
    border-bottom: none;
}

/* Mining Locations */
.mining-locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.location-item {
    background: var(--background-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.location-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.location-item h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.location-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* Rarity Guide */
.rarity-guide {
    margin: 2rem 0;
}

.rarity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--background-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.rarity-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rarity-item.common .rarity-color {
    background: #9ca3af;
}

.rarity-item.uncommon .rarity-color {
    background: #10b981;
}

.rarity-item.rare .rarity-color {
    background: #3b82f6;
}

.rarity-item.epic .rarity-color {
    background: #8b5cf6;
}

.rarity-item.legendary .rarity-color {
    background: #f59e0b;
}

/* Progression Phases */
.progression-phase {
    background: var(--background-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.progression-phase ul {
    margin: 0;
}

/* Mistakes List */
.mistakes-list {
    margin: 2rem 0;
}

.mistake-item {
    background: rgba(239, 68, 68, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #ef4444;
}

.mistake-item h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.mistake-item p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Next Steps */
.next-steps {
    padding: 4rem 0;
    background: var(--background-secondary);
}

.next-steps h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.next-guides {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.next-guide {
    background: var(--background-primary);
    padding: 2rem;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.next-guide:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.next-guide .guide-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.next-guide h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.next-guide p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wiki-hero h1 {
        font-size: 2.5rem;
    }
    
    .wiki-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .overview-content {
        grid-template-columns: 1fr;
    }
    
    .guide-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .guide-info h1 {
        font-size: 2rem;
    }
    
    .guide-meta {
        justify-content: center;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}