/* Globaal */
html, body{
    height: 100%;
}

body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #14181C;
    color: white;
}


/* index.php */
.stat-box {
    background-color: #1e2529;
}

.stat-number {
    color: #0080ff;
}

/* index.php – recent toegevoegde game cards */
.index-game-card .card-body {
    background-color: #1e2529;
}

.index-game-card .card-title {
    color: #ffffff;
    font-size: 0.85rem;
}



/* header.php */
main.container{
    flex: 1;
    max-width: 800px;
}

.navbar .container{
    max-width: 800px;
}


/* footer.php */
#toast-container{
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}


/* zoeken.php */
.search-bar {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    background: #1e2529;
    border: 1px solid #333;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: #00c030;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.game-card {
    background: #1e2529;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: transform 0.2s;
}

.game-card:hover {
    transform: translateY(-4px);
}

.game-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.game-card-no-cover {
    width: 100%;
    aspect-ratio: 16/9;
    background: #2a3038;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.85rem;
}

.game-card-info {
    padding: 10px;
}

.game-card-info h3 {
    font-size: 0.95rem;
    margin: 0 0 4px;
}

.game-card-info p {
    font-size: 0.8rem;
    color: #aaa;
    margin: 0;
}

.geen-resultaten {
    color: #aaa;
    margin-top: 20px;
}


/* detail.php */
.game-detail-header {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    align-items: flex-start;
}

.game-detail-cover {
    width: 220px;
    min-width: 220px;
    border-radius: 8px;
    object-fit: cover;
}

.game-detail-info {
    flex: 1;
}

.game-detail-info h1 {
    margin-top: 0;
    margin-bottom: 16px;
}

.game-detail-info p {
    color: #ccc;
    margin-bottom: 8px;
}

.game-detail-description {
    margin: 20px 0;
    color: #ccc;
    line-height: 1.6;
}

.game-detail-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.game-detail-actions h2 {
    width: 100%;
    margin-bottom: 4px;
}

.game-detail-actions form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-detail-actions input[type="number"] {
    width: 70px;
    padding: 6px 10px;
    background: #1e2529;
    border: 1px solid #333;
    border-radius: 6px;
    color: white;
}

.game-detail-actions textarea {
    padding: 8px 12px;
    background: #1e2529;
    border: 1px solid #333;
    border-radius: 6px;
    color: white;
    resize: vertical;
    width: 300px;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.screenshot-grid img {
    width: 100%;
    border-radius: 6px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Sterren rating */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    gap: 4px;
    cursor: pointer;
}

.star {
    font-size: 2rem;
    color: #444;
    transition: color 0.15s;
    -webkit-text-fill-color: unset;
    background: none;
}

.star.hovered,
.star.selected {
    color: #00c030;
    background: none;
    -webkit-text-fill-color: #00c030;
}

.star.half-selected {
    background: linear-gradient(90deg, #00c030 50%, #444 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* profiel.php */

/* Hero blok bovenaan */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 0 8px;
    border-bottom: 1px solid #2a2a30;
}

/* Grote letter-avatar */
.profile-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #1e2529;
    border: 2px solid #00c030;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #00c030;
}

.profile-username {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 2px;
    color: #fff;
}

.profile-since {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
    font-style: italic;
}

.stat-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Sectie titel */
.profile-section-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin: 28px 0 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid #2a2a30;
}

/* Game card uitbreiding voor profiel (cover = portret ipv 16/9) */
.profile-game-card {
    position: relative;
    overflow: hidden;
}

.profile-game-card img,
.profile-game-card .game-card-no-cover {
    aspect-ratio: 2/3;      /* portret cover, zoals Letterboxd */
    object-fit: cover;
}

/* Hover overlay */
.profile-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.profile-game-card:hover .profile-card-overlay {
    opacity: 1;
}

.profile-card-score {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00c030;
    line-height: 1;
    margin-bottom: 4px;
}

.profile-card-review {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.8);
    font-style: italic;
    margin: 0;
    line-height: 1.4;
}

/* Kleine sterren onder de naam */
.profile-stars {
    display: flex;
    gap: 1px;
    flex-direction: row-reverse;       /* zelfde volgorde als jouw star-rating */
    margin-top: 3px;
}

.profile-stars .star {
    font-size: 0.85rem;                /* kleiner dan de grote rating-sterren */
    color: #444;
    -webkit-text-fill-color: unset;
    background: none;
    cursor: default;
    pointer-events: none;
}

.profile-stars .star.selected {
    color: #00c030;
    -webkit-text-fill-color: #00c030;
}

.profile-stars .star.half-selected {
    background: linear-gradient(90deg, #00c030 50%, #444 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
