/* ===== GLOBAL ===== */
body {
    font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
    background-color: #0b0f14;
    color: #c7d5e0;
    margin: 0;
    padding: 0;
}

.page-wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

/* ===== NAVIGATION ===== */
.top-nav {
    background-color: #171a21;
    padding: 15px 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.top-nav .nav-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #66c0f4;
    margin-right: 40px;
}

.top-nav a {
    color: #c7d5e0;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.25s ease;
}

.top-nav a:hover {
    background-color: #2a475e;
}

/* ===== HERO BANNER (FLEX LAYOUT — NO OVERLAP) ===== */
#hero-banner {
    position: relative;
    height: 380px;
    width: 100%;
    overflow: hidden;
}

/* Blurred background */
#hero-banner .hero-blur {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.55);
    transform: scale(1.2);
    z-index: 1;
}

/* FLEX container for image + overlay */
.hero-content {
    position: absolute;
    bottom: 30px;
    left: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 3;
}

/* Sharp header image */
#hero-foreground {
    height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

/* Glass overlay box */
.hero-overlay {
    height: 200px; /* same height as image */
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 20px 28px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 10px;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    color: white;
}

.hero-overlay h1 {
    font-size: 2.6em;
    margin-bottom: 10px;
}

.hero-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.hero-btn {
    background-color: #66c0f4;
    border: none;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    color: #0b0f14;
    transition: background-color 0.25s ease;
}

.hero-btn:hover {
    background-color: #8fdaff;
}

/* ===== STATS BAR ===== */
#stats-bar {
    display: flex;
    justify-content: space-around;
    background-color: #1b2838;
    padding: 18px 0;
    border-bottom: 1px solid #2a475e;
}

#stats-bar .stat-item {
    color: #c7d5e0;
    font-size: 1.1em;
}

/* ===== CARDS ===== */
.card {
    background-color: #1b2838;
    padding: 25px;
    border-radius: 10px;
    margin-top: 35px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.35);
    border: 1px solid #2a475e;
}

.card h2 {
    color: #66c0f4;
    margin-bottom: 15px;
}

/* ===== SCREENSHOT CAROUSEL ===== */
#screenshot-carousel {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
}

#screenshot-carousel img {
    width: 260px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

/* ===== TAGS (UPDATED) ===== */
#tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding: 10px;
    background: rgba(0,0,0,0.35);
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.tag-pill {
    background-color: #2a475e;
    padding: 8px 14px;
    border-radius: 20px;
    color: #c7d5e0;
    font-size: 0.9em;
    transition: background-color 0.25s ease;
}

.tag-pill:hover {
    background-color: #66c0f4;
    color: #0b0f14;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    gap: 10px;
}

.search-bar input {
    width: 45%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #2a475e;
    background-color: #0e141b;
    color: #c7d5e0;
}

.search-bar button {
    padding: 12px 20px;
    background-color: #66c0f4;
    border: none;
    border-radius: 6px;
    color: #0e141b;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.search-bar button:hover {
    background-color: #8fdaff;
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.card {
    background-color: #1b2838;
    padding: 20px;
    border-radius: 8px;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.card h3 {
    color: #66c0f4;
    margin-bottom: 10px;
}

/* ===== BUTTON SECTION ===== */
.button-section {
    margin-top: 40px;
}

.button-section h2 {
    color: #ffffff;
    margin-bottom: 20px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.steam-btn {
    background-color: #2a475e;
    color: #c7d5e0;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.steam-btn:hover {
    background-color: #66c0f4;
    color: #0e141b;
    transform: translateY(-2px);
}

/* ===== TABLES ===== */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.table th, .table td {
    padding: 12px;
    border-bottom: 1px solid #2a475e;
}

.table th {
    background-color: #1b2838;
    color: #66c0f4;
    text-align: left;
}

.table tr:hover {
    background-color: #16202d;
}

/* ===== GRAPH SECTION ===== */
.graph-section {
    margin-top: 40px;
}

.graph-section h2 {
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.chart-container {
    background-color: #1b2838;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.35);
    border: 1px solid #2a475e;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.chart-container:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    transform: translateY(-2px);
}

#playerChart {
    width: 100% !important;
    height: 400px !important;
}

/* --- Games Page Grid Layout --- */

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

.game-card {
    background: #1b1b1b;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.game-card img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
}

.game-card h3 {
    margin: 6px 0;
}

.game-card p {
    margin: 4px 0;
}

/* ============================
   COMPARE PAGE STYLES
   ============================ */

.compare-container {
    width: 90%;
    margin: auto;
    padding-top: 40px;
}

.page-title {
    font-size: 32px;
    margin-bottom: 25px;
    color: #c7d5e0;
}

.compare-input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.compare-input {
    flex: 1;
    padding: 12px;
    background: #1b2838;
    border: 1px solid #2a475e;
    border-radius: 6px;
    color: #c7d5e0;
    font-size: 16px;
}

.compare-input:focus {
    outline: none;
    border-color: #66c0f4;
}

.compare-btn {
    padding: 12px 20px;
    background: #66c0f4;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #0b0f14;
    font-weight: bold;
    transition: 0.2s;
}

.compare-btn:hover {
    background: #8fdaff;
}

.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-bottom: 30px;
}

.compare-card {
    background: #1b2838;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #2a475e;
    position: relative;
}

.compare-img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 12px;
}

.compare-title {
    font-size: 22px;
    margin-bottom: 10px;
    color: #c7d5e0;
}

.compare-stat {
    margin: 6px 0;
    font-size: 15px;
    color: #a7bacc;
}

.compare-chart-box {
    margin-top: 20px;
    background: #0b0f14;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #2a475e;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.suggestions {
    position: absolute;
    top: 45px;
    width: 100%;
    background: #1b2838;
    border: 1px solid #2a475e;
    border-radius: 6px;
    z-index: 20;
    max-height: 250px;
    overflow-y: auto;
}

.suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #2a475e;
}

.suggest-item img {
    width: 40px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
}

.suggest-item:hover {
    background: #2a475e;
}

.worth-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #171a21;
    border: 1px solid #66c0f4;
    color: #c7d5e0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
}

.compare-insights {
    margin-top: 20px;
    background: #1b2838;
    border-radius: 10px;
    border: 1px solid #2a475e;
    padding: 20px;
}

.insights-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #c7d5e0;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #c7d5e0;
}

.compare-table th,
.compare-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #2a475e;
}

.compare-table th {
    text-align: left;
    background: #0b0f14;
}

/* ============================
   LIBRARY PAGE
   ============================ */

.library-header {
    margin-top: 30px;
    margin-bottom: 20px;
}

.library-header h1 {
    font-size: 28px;
    color: #c7d5e0;
    margin-bottom: 8px;
}

.library-header p {
    color: #a7bacc;
    margin-bottom: 15px;
}

.library-search-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
}

.library-search-form input {
    flex: 1;
    padding: 10px;
    background: #1b2838;
    border: 1px solid #2a475e;
    border-radius: 4px;
    color: #c7d5e0;
}

.library-search-form button {
    padding: 10px 16px;
    background: #66c0f4;
    border: none;
    border-radius: 4px;
    color: #0b0f14;
    font-weight: bold;
    cursor: pointer;
}

.library-search-form button:hover {
    background: #8fdaff;
}

.library-user-section {
    margin-top: 25px;
    margin-bottom: 20px;
}

.library-user-card {
    display: flex;
    gap: 15px;
    background: #1b2838;
    border-radius: 8px;
    border: 1px solid #2a475e;
    padding: 15px;
    align-items: center;
}

.library-avatar {
    width: 80px;
    height: 80px;
    border-radius: 6px;
}

.library-user-info h2 {
    margin: 0 0 6px;
    color: #c7d5e0;
}

.library-user-info p {
    margin: 2px 0;
    color: #a7bacc;
    font-size: 14px;
}

.library-games-section {
    margin-top: 10px;
}

.library-games-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: #c7d5e0;
}

.library-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
}

.library-game-card {
    background: #1b2838;
    border-radius: 8px;
    border: 1px solid #2a475e;
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

.library-game-img {
    width: 120px;
    height: 100%;
    object-fit: cover;
}

.library-game-body {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.library-game-title {
    font-size: 16px;
    margin: 0 0 4px;
    color: #c7d5e0;
}

.library-game-hours {
    font-size: 13px;
    color: #a7bacc;
    margin-bottom: 8px;
}

.library-game-actions {
    display: flex;
    gap: 8px;
}

.library-loading,
.library-error,
.library-empty {
    margin-top: 15px;
    color: #a7bacc;
}

/* Small button variants reusing your Steam style */
.steam-btn.small {
    padding: 6px 10px;
    font-size: 12px;
}

.steam-btn-outline.small {
    padding: 6px 10px;
    font-size: 12px;
}
