
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #0d0d15;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 6%;
    background: #151520;
    border-bottom: 1px solid #292938;
}

.logo {
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.logo span, h1 span {
    color: #a78bfa;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
}

.button {
    display: inline-block;
    background: #7c3aed;
    color: white;
    padding: 13px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.button:hover {
    background: #9333ea;
}

.hero {
    text-align: center;
    padding: 100px 20px;
    background: radial-gradient(
        ellipse at top, #302052, #0d0d15 75%
    );
}

.hero h1 {
    font-size: clamp(36px, 6vw, 65px);
    margin: 20px 0;
}

.hero p {
    color: #b5b5c5;
    max-width: 600px;
    margin: 20px auto 30px;
    line-height: 1.7;
}

.hero .tag {
    color: #a78bfa;
    letter-spacing: 3px;
    font-size: 12px;
}

.games {
    padding: 20px 6% 60px;
}

.games h2 {
    font-size: 28px;
    margin-bottom: 25px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit, minmax(190px, 1fr)
    );
    gap: 20px;
}

.game-card {
    background: #191925;
    border: 1px solid #292938;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: #a78bfa;
}

.cover {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-size: 25px;
    font-weight: bold;
}

.purple {
    background: linear-gradient(145deg, #45366e, #171021);
}

.red {
    background: linear-gradient(145deg, #b91c1c, #350909);
}

.blue {
    background: linear-gradient(145deg, #1e40af, #101827);
}

.green {
    background: linear-gradient(145deg, #15803d, #10291c);
}

.orange {
    background: linear-gradient(145deg, #b45309, #301507);
}

.pink {
    background: linear-gradient(145deg, #be185d, #35112e);
}

.game-card h3 {
    margin: 18px 15px 8px;
}

.game-card p {
    color: #9999aa;
    font-size: 14px;
    margin: 0 15px 20px;
}

footer {
    text-align: center;
    padding: 25px;
    color: #777788;
    border-top: 1px solid #292938;
}

.game-cover {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}


.library-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0 40px;
}

.library-stats > div {
    background: #1c1b29;
    border: 1px solid #302d42;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.library-stats h2 {
    color: #a78bfa;
    font-size: 32px;
    margin-bottom: 8px;
}

.empty-library {
    text-align: center;
    padding: 70px 20px;
}

.empty-library p {
    margin: 20px 0 30px;
    color: #aaa;
}

@media (max-width: 700px) {
    .library-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.game-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
}

.game-form label {
    font-size: 13px;
    color: #bcb8ce;
}

.game-form select {
    width: 100%;
    padding: 9px;
    background: #252335;
    color: white;
    border: 1px solid #403b55;
    border-radius: 6px;
}

.favorite-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.game-form button {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 13px;
    padding: 12px 5px;
}

.game-form button:hover {
    background: #9061f9;
}


.remove-form {
    padding: 0 15px 15px;
}

.remove-button {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #f87171;
    border: 1px solid #7f1d1d;
    border-radius: 6px;
    cursor: pointer;
}

.remove-button:hover {
    background: #7f1d1d;
    color: white;
}

.friends-page {
    padding: 50px 6%;
    min-height: 80vh;
}

.friends-page h1 {
    font-size: 36px;
    margin-bottom: 12px;
}

.friend-panel {
    background: #1c1c28;
    border: 1px solid #2d2d3b;
    border-radius: 14px;
    padding: 25px;
    margin-top: 25px;
}

.friend-panel h2 {
    margin-bottom: 20px;
}

.friend-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.friend-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 14px;
    background: #101019;
    color: white;
    border: 1px solid #39394b;
    border-radius: 8px;
}

.friend-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid #333340;
    flex-wrap: wrap;
}

.friend-row span {
    flex: 1;
}

.secondary-button {
    background: #30303e;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
}

.friend-message {
    background: #292044;
    color: #bba4ff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

