/* Planets - Celestial Knights */

/* Container for Planets */
.planets-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    padding: 10px;
}

/* Planet Buttons */
.planet-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
    flex-shrink: 0;
}

.planet-buttons button {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 150px;
    min-height: 44px;
}

.planet-buttons button:hover {
    background-color: #555;
    transform: scale(1.05);
}

.planet-buttons button:active {
    transform: scale(0.98);
}

/* Planet Info Section */
.planet-info {
    flex: 1;
    background-color: #222;
    color: #fff;
    border-radius: 10px;
    padding: 20px;
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    text-align: justify;
    min-height: 300px;
}

.planet-info img {
    width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 10px;
}

.planet-info pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
    overflow: hidden;
    background-color: #1e1e1e;
    padding: 10px;
    border-radius: 5px;
    color: #f1f1f1;
}

.planet-info h2 {
    margin-top: 10px;
}

/* Quest Links */
.quest-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quest-links a {
    display: block;
    color: #ffcc00;
    text-decoration: none;
    padding: 10px;
    background-color: #1e1e1e;
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.quest-links a:hover {
    color: #ffa500;
    background-color: #333;
}

/* TABLET - Responsive Design (768px and below) */
@media screen and (max-width: 768px) {
    .planets-container {
        flex-direction: column;
        gap: 15px;
        overflow-x: visible;
    }

    .planet-buttons {
        flex-direction: row;
        gap: 8px;
        padding-bottom: 0;
        min-width: auto;
        flex-wrap: wrap;
    }

    .planet-buttons button {
        flex: 1;
        min-width: 100px;
        padding: 12px 10px;
        font-size: 14px;
        min-height: 44px;
    }

    .planet-info {
        min-height: auto;
        padding: 16px;
    }

    .quest-links a {
        padding: 9px;
        font-size: 14px;
    }
}

/* MOBILE - Small Phones (480px and below) */
@media screen and (max-width: 480px) {
    .planets-container {
        gap: 12px;
        padding: 8px;
    }

    .planet-buttons {
        gap: 6px;
    }

    .planet-buttons button {
        flex: 1 1 45%;
        min-width: 80px;
        padding: 10px 8px;
        font-size: 13px;
        min-height: 44px;
    }

    .planet-info {
        padding: 12px;
    }

    .planet-info img {
        max-height: 200px;
    }

    .quest-links {
        margin-top: 15px;
        gap: 8px;
    }

    .quest-links a {
        padding: 8px;
        font-size: 13px;
    }

    .planet-info pre {
        padding: 8px;
        font-size: 12px;
    }
}