/* Library Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

:root {
    --primary-color: #1e0033;
    --secondary-color: #480d73;
    --accent-color: #ff9f1c;
    --dark-accent: #c97615;
    --light-color: #f5f5f5;
    --dark-color: #111;
    --gray-color: #666;
    --light-gray: #f0f0f0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    --gold-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --purple-gradient: linear-gradient(135deg, #2a0845 0%, #6441a5 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fcfcfc;
    color: var(--dark-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Ubuntu', Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar Styles */
.navbar {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo span {
    color: var(--light-color);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--light-color);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.user-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.login-btn {
    background-color: transparent;
    color: var(--light-color);
    border: 2px solid var(--accent-color);
}

.login-btn:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.signup-btn {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.signup-btn:hover {
    background-color: var(--dark-accent);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background-color: var(--light-color);
}

/* Featured Banner */
.featured-banner {
    background-image: url('themes/gemstones/images/background.png');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 0;
    color: var(--light-color);
}

.featured-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.featured-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
}

.featured-info {
    max-width: 600px;
}

.featured-info h2 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.featured-info h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.featured-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.banner-cta {
    display: flex;
    gap: 1rem;
}

.play-now,
.learn-more {
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
}

.play-now {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.play-now:hover {
    background-color: var(--dark-accent);
}

.learn-more {
    background-color: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
}

.learn-more:hover {
    background-color: var(--light-color);
    color: var(--dark-color);
}

/* Games Library Section */
.games-library {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 5%;
}

.library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.library-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.search-container {
    display: flex;
    width: 300px;
    position: relative;
}

#game-search {
    padding: 0.8rem 1rem;
    border-radius: 30px;
    border: 2px solid var(--light-gray);
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s;
}

#game-search:focus {
    border-color: var(--secondary-color);
    outline: none;
}

#search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--secondary-color);
}

.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--light-gray);
    color: var(--gray-color);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.game-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.game-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--accent-color);
    color: var(--dark-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.game-info {
    padding: 1.5rem;
}

.game-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.game-description {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.2rem;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.game-date {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.play-btn {
    padding: 0.5rem 1rem;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.play-btn:hover {
    background-color: var(--primary-color);
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding-top: 3rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.footer-section.links ul {
    list-style: none;
}

.footer-section.links ul li {
    margin-bottom: 0.8rem;
}

.footer-section.links ul li a {
    transition: all 0.3s;
    opacity: 0.8;
}

.footer-section.links ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-section.contact p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section.contact i {
    color: var(--accent-color);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

/* Responsive styles */
@media (max-width: 992px) {
    .featured-info h1 {
        font-size: 2.8rem;
    }

    .library-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-container {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        gap: 1.5rem;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 0;
    }

    .user-actions {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .featured-banner {
        padding: 60px 0;
    }

    .featured-info h1 {
        font-size: 2.3rem;
    }

    .featured-info p {
        font-size: 1rem;
    }

    .banner-cta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .library-header h2 {
        font-size: 1.8rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        justify-content: center;
    }
}