/**
 * Pokemon Game Plugin Styles
 * Version: 1.0.0
 */

/* Pokemon Game Container */
.pokemon-game-container {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 780px;
    position: relative;
    overflow: hidden;
}

/* Pokemon Game Iframe */
.pokemon-game-iframe {
    border: none;
    width: 100%;
    height: 900px;
    display: block;
    margin: 0;
    padding: 0;
    background-color: #fff;
    overflow: hidden;
}

/* Responsive iframe - maintain full viewport */
@media (max-width: 768px) {
    .pokemon-game-iframe {
        width: 100% !important;
        height: 100vh !important;
    }

    .pokemon-game-container {
        height: 100vh !important;
    }
}

@media (max-width: 480px) {
    .pokemon-game-iframe {
        width: 100% !important;
        height: 100vh !important;
    }

    .pokemon-game-container {
        height: 100vh !important;
    }
}

/* Error Message Styles */
.pokemon-game-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.pokemon-game-error p {
    margin: 0;
    font-size: 14px;
}

.pokemon-game-error strong {
    font-weight: bold;
}

/* Ensure full viewport display */
body.pokemon-game-active {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Hide WordPress admin bar when viewing game */
.pokemon-game-container ~ #wpadminbar {
    display: none !important;
}

/* Full screen mode styles */
.pokemon-game-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background: #fff !important;
}

.pokemon-game-fullscreen .pokemon-game-iframe {
    width: 100vw !important;
    height: 100vh !important;
}

/* Loading state (optional) */
.pokemon-game-container.loading {
    position: relative;
}

.pokemon-game-container.loading::before {
    content: "Loading Pokemon Quest Recipes...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 10;
}

/* Fullscreen button (if needed in future) */
.pokemon-game-fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #007cba;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    z-index: 5;
}

.pokemon-game-fullscreen-btn:hover {
    background: #005a87;
}

/* Container wrapper for better spacing */
.pokemon-game-wrapper {
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    overflow: hidden;
}

/* Title styling (if added) */
.pokemon-game-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* Description styling (if added) */
.pokemon-game-description {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}
