/* wiki-style.css */

.wiki-container {
    display: flex;
    max-width: 1400px;
    margin: 2rem auto;
    gap: 2rem;
    padding: 0 2rem;
    align-items: flex-start;
}

/* Sidebar Styling */
.wiki-sidebar {
    width: 300px;
    background-color: var(--card-bg);
    border-left: 4px solid var(--mc-gold);
    border-radius: 8px;
    padding: 1.5rem;
    position: sticky;
    top: 100px; /* Bleibt beim Scrollen kleben */
}

.wiki-sidebar h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    text-align: center;
}

.wiki-cat {
    margin-bottom: 1.5rem;
}

.wiki-cat h3 {
    color: var(--mc-gold);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.wiki-sidebar ul {
    list-style: none;
}

.wiki-sidebar ul li {
    margin: 8px 0;
}

.wiki-sidebar ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.wiki-sidebar ul li a:hover {
    color: var(--mc-gold);
    padding-left: 5px;
}

/* Content Bereich */
.wiki-content {
    flex: 1;
    background-color: rgba(30, 30, 30, 0.8);
    padding: 3rem;
    border-radius: 8px;
    min-height: 600px;
    border-top: 4px solid var(--mc-gold);
}

.wiki-content h1 {
    color: var(--mc-gold);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.wiki-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
}

.wiki-hero-img {
    margin-top: 2rem;
    width: 100%;
    height: 300px;
    /*background-image: url('../images/background.png');*/
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    opacity: 0.5;
}

/* Phasen Übersicht Grid */
.phase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.phase-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.phase-card:hover {
    border-color: var(--mc-gold);
    transform: scale(1.02);
}

.phase-header {
    background: #252525;
    padding: 1rem;
    border-bottom: 2px solid var(--mc-gold);
}

.phase-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-main);
}

.phase-min {
    font-size: 0.75rem;
    color: var(--mc-gold);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.phase-body {
    padding: 1rem;
    font-size: 0.9rem;
}

.phase-body p {
    margin: 5px 0;
    line-height: 1.4;
}

.phase-body strong {
    color: var(--mc-gold);
}

.phase-body code {
    background: #111;
    padding: 2px 5px;
    border-radius: 3px;
    color: #eee;
}


/* Command List Styling */
.command-list {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 2rem;
}

.command-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #222;
    transition: background 0.2s;
}

.command-item:last-child {
    border-bottom: none;
}

.command-item:hover {
    background: rgba(255, 170, 0, 0.05); /* Ganz leichter Gold-Schimmer */
}

.command-syntax {
    flex: 0 0 250px; /* Feste Breite für die Befehle */
}

.command-syntax code {
    background: #2a2a2a;
    color: var(--mc-gold);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    border: 1px solid #444;
}

.command-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.wiki-note {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 170, 0, 0.1);
    border-left: 4px solid var(--mc-gold);
    border-radius: 4px;
    color: var(--text-main);
}

/* Mobil-Anpassung */
@media (max-width: 768px) {
    .command-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .command-syntax {
        flex: none;
    }
}



/* Crafting Rezepte */
.recipe-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.recipe-card {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
}

.recipe-header {
    background: #252525;
    padding: 1rem;
    border-bottom: 2px solid var(--mc-gold);
}

.recipe-body {
    display: flex;
    padding: 1.5rem;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Das 3x3 Grid */
.crafting-grid {
    display: grid;
    grid-template-columns: repeat(3, 60px);
    grid-template-rows: repeat(3, 60px);
    gap: 5px;
    background: #8b8b8b; /* Minecraft Inventar Grau */
    padding: 10px;
    border: 3px solid #373737;
    border-radius: 4px;
}

/* Der Slot (das graue Quadrat) */
.crafting-slot {
    width: 50px;           /* Feste Größe des Slots */
    height: 50px;
    display: flex;         /* Zentriert das Bild */
    align-items: center;
    justify-content: center;
    background: #3b3b3b;   /* Dein Slot-Grau */
    border: 2px solid #1e1e1e;
    padding: 2px;          /* Kleiner Abstand zum Rand */
    box-sizing: border-box;
	margin-left: 4px;
	margin-top: 3px;
}

/* Das Bild im Slot */
.crafting-slot img {
    max-width: 100%;       /* Bild wird nie breiter als der Slot */
    max-height: 100%;      /* Bild wird nie höher als der Slot */
    width: auto;           /* Behält Seitenverhältnis bei */
    height: auto;
    
    /* WICHTIG für Minecraft-Items (verhindert Verschwimmen) */
    image-rendering: pixelated; 
    
    /* Verhindert Verzerrung, falls das Bild nicht quadratisch ist */
    object-fit: contain;
}

.crafting-slot {
    display: flex;
    align-items: center;
    justify-content: center;
}

.crafting-slot img {
    width: 40px;  /* Oder eine Größe, die dir gefällt */
    height: 40px;
    object-fit: contain;
}

.recipe-details {
    flex: 1;
    min-width: 250px;
}

.recipe-desc {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.recipe-info {
    font-size: 0.9rem;
    color: var(--mc-gold);
    background: rgba(255, 170, 0, 0.1);
    padding: 10px;
    border-radius: 4px;
}

.ingredient-list {
    margin-top: 15px;
    list-style: none;
    padding: 0;
}

.ingredient-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

/* Mobil-Optimierung */
@media (max-width: 600px) {
    .recipe-body {
        flex-direction: column;
        align-items: center;
    }
}



.warning-note {
    background: rgba(255, 85, 85, 0.1) !important;
    border-left: 4px solid #ff5555 !important;
    padding: 1.5rem !important;
    margin: 2rem 0;
}

.warning-note h3 {
    color: #ff5555;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.warning-note ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.warning-note li {
    margin-bottom: 5px;
    color: var(--text-main);
}




/* Erste Schritte Styling */
.step-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #333;
    transition: transform 0.2s ease;
}

.step-item:hover {
    transform: translateX(10px);
    background: rgba(45, 45, 45, 0.8);
    border-color: var(--mc-gold);
}

.step-icon {
    font-size: 2.5rem;
    margin-right: 1.5rem;
    min-width: 60px;
    display: flex;
    justify-content: center;
}

.step-content h3 {
    color: var(--mc-gold);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.step-content p {
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
}

.step-content code {
    background: #2a2a2a;
    color: var(--mc-gold);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    border: 1px solid #444;
}


/* Startseiten-Design */
.wiki-welcome {
    text-align: center;
    padding: 2rem 0;
}

.welcome-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.welcome-header h1 span {
    color: var(--mc-gold);
}

.mode-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mode-card {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-top: 4px solid var(--mc-gold);
}

.mode-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 170, 0, 0.05);
    border-color: var(--mc-gold);
}

.mode-card img {
    width: 150px;
    height: 165px;
    margin-bottom: 1rem;
    image-rendering: pixelated;
}

.mode-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.mode-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}


/* Mobil-Anpassung */
@media (max-width: 600px) {
    .step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .step-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}




/* Spezielle Anpassungen für Perks */
.perk-card .phase-header {
    border-bottom: 2px solid #5555ff; /* Blau für WoolBattle Perks */
}

.perk-card .phase-min {
    color: #55ff55; /* Grün für die Coin-Preise */
}

.perk-desc {
    font-style: italic;
    color: var(--text-main);
    min-height: 40px;
}

.perk-card code {
    font-size: 0.75rem;
    color: var(--text-muted);
}


/* Sektionstitel */
.wiki-section-title {
    border-left: 5px solid var(--mc-gold);
    padding-left: 15px;
    margin-bottom: 10px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Trennlinie in Karten */
.wiki-hr {
    border: 0;
    border-top: 1px solid #333;
    margin: 10px 0;
}

/* Aktive Perks bekommen einen blauen Akzent */
.active-border .phase-header {
    border-bottom: 2px solid #00AAFF;
}

/* Passive Perks bekommen einen grünen Akzent */
.passive-border .phase-header {
    border-bottom: 2px solid #55ff55;
}

.passive-border .phase-min {
    color: #55ff55 !important;
}


/* Map-Listen Styling (Untereinander) */
.map-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.map-entry {
    background: rgba(30, 30, 30, 0.7);
    border-left: 5px solid var(--mc-gold);
    border-radius: 4px 8px 8px 4px;
    padding: 1.5rem;
    transition: background 0.3s;
}

.map-entry:hover {
    background: rgba(45, 45, 45, 0.9);
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.map-header h3 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--text-main);
    letter-spacing: 1px;
}

.map-author {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.map-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}



.map-detail-box {
    font-size: 1rem;
    line-height: 1.4;
}

.tag-pro {
    color: #55ff55;
    font-weight: bold;
    margin-right: 5px;
}

.tag-con {
    color: #ff5555;
    font-weight: bold;
    margin-right: 5px;
}

/* Mobil-Anpassung */
@media (max-width: 600px) {
    .map-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}


/* Mobil-Optimierung */
@media (max-width: 900px) {
    .wiki-container {
        flex-direction: column;
    }
    .wiki-sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }
}