/**
 * H5 Games Tools - Game Page Styles
 * Styling for game pages
 */

/* Import base styles */
@import '../../css/style.css';

/* Game Page Styles
-------------------------------------------------- */

/* General Page Styles */
:root {
    --primary-color: #00F0FF;
    --secondary-color: #FF0080;
    --background-color: #0A0A12;
    --card-bg-color: rgba(25, 25, 39, 0.8);
    --text-color: #ffffff;
    --border-color: #2A2A40;
    --shadow-color: rgba(0, 240, 255, 0.3);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb Navigation */
.breadcrumbs {
    margin: 20px 0;
    font-size: 0.9rem;
    color: #8888a0;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--secondary-color);
}

/* Game Container */
.game-container {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(15, 15, 25, 0.9);
    border-bottom: 1px solid var(--border-color);
}

.game-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

.fullscreen-button {
    background-color: rgba(0, 240, 255, 0.2);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    padding: 8px 15px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fullscreen-button:hover {
    background-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Game iframe */
.game-iframe-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
}

.game-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Game Details Section */
.game-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.game-info {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.game-info h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.game-info h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-top: 25px;
}

.game-description {
    font-size: 1.1rem;
    line-height: 1.6;
}

.game-features {
    padding-left: 20px;
}

.game-features li {
    margin-bottom: 10px;
    position: relative;
}

.game-features li::before {
    content: '•';
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.game-tag {
    background-color: rgba(255, 0, 128, 0.2);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Sidebar */
.game-sidebar {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.popularity-container h3, .share-buttons h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.2rem;
}

.popularity-meter {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    height: 30px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.popularity-fill {
    background-color: var(--primary-color);
    height: 100%;
    border-radius: 5px;
    width: 0;
    transition: width 1s ease-in-out;
}

.popularity-score {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Favorite Button */
.cyber-button {
    display: block;
    width: 100%;
    background-color: rgba(0, 240, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    padding: 12px 15px;
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.cyber-button:hover {
    background-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 15px var(--shadow-color);
    transform: translateY(-2px);
}

/* Share Buttons */
.share-buttons {
    margin-top: 30px;
}

.share-buttons .share-btn {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    text-align: center;
    line-height: 40px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn.twitter:hover { background-color: #1DA1F2; }
.share-btn.facebook:hover { background-color: #4267B2; }
.share-btn.whatsapp:hover { background-color: #25D366; }
.share-btn.pinterest:hover { background-color: #E60023; }

/* Related Games */
.related-games {
    margin-bottom: 50px;
}

.related-games h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 20px;
}

.related-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-game-card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--shadow-color);
}

.related-game-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-game-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.related-game-info {
    padding: 15px;
}

.related-game-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.related-game-category {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary-color);
    background-color: rgba(0, 240, 255, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .game-details {
        grid-template-columns: 1fr;
    }
    
    .game-title {
        font-size: 1.5rem;
    }
    
    .related-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .game-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .fullscreen-button {
        align-self: flex-end;
    }
    
    .related-games-grid {
        grid-template-columns: 1fr;
    }
} 