@import "pagination.css";

/* Global Styles */
body {
    background-color: #f7f9fc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* Home Page */
.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #eef2f3 0%, #8e9eab 100%); /* Elegant light gradient */
    background: url('/assets/img/login-head.png') no-repeat center center;
    background-size: cover;
    position: relative;
}

.home-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.35); /* White overlay to ensure readability */
    backdrop-filter: blur(5px);
}

.home-content {
    position: relative;
    z-index: 1;
    text-align: center;
    background: #fff;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
}

.site-title {
    font-size: 2.5em;
    color: #0044cc; /* Premium Blue */
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.site-intro {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #666;
    font-weight: 300;
}

.activation-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activation-input {
    padding: 15px;
    font-size: 16px;
    border: 2px solid #e1e4e8;
    background: #f8f9fa;
    color: #333;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
    text-align: center;
}

.activation-input:focus {
    border-color: #0044cc;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 68, 204, 0.1);
}

.activation-btn {
    padding: 15px;
    font-size: 18px;
    background: linear-gradient(135deg, #0044cc 0%, #0066ff 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0, 68, 204, 0.2);
}

.activation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 68, 204, 0.3);
}

/* List Page */
.header {
    background: #fff;
    padding: 0 40px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

.header .logo {
    font-size: 24px;
    color: #0044cc;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.separator {
    width: 1px;
    height: 40px;
    background: #e1e4e8;
    margin: 0 25px;
}

.time-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.header-right {
    display: flex;
    align-items: center;
}

.logout-btn {
    color: #0044cc;
    font-weight: 600;
    padding: 8px 24px;
    border: 1px solid #0044cc;
    border-radius: 20px;
    transition: all 0.3s;
    height: 20px;
    line-height: 20px;
}

.logout-btn:hover {
    background: #0044cc;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 68, 204, 0.2);
}

.footer {
    background: #fff;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: 50px;
}

.footer-contact {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.copyright {
    font-size: 14px;
    color: #999;
}

.nav-wrapper {
    background: #fff;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.nav-bar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-bar a {
    color: #666;
    margin: 0 5px;
    font-size: 16px;
    padding: 20px 15px;
    position: relative;
    font-weight: 500;
}

.nav-bar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #0044cc;
    transition: width 0.3s;
    border-radius: 3px 3px 0 0;
}

.nav-bar a:hover {
    color: #0044cc;
}

.nav-bar a.active {
    color: #0044cc;
}

.nav-bar a.active::after {
    width: 80%;
}

.intro-section {
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.intro-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.intro-section p {
    color: #888;
    font-size: 16px;
}

.game-list {
    display: flex;
    flex-wrap: wrap;
    padding: 0 20px 40px;
    max-width: 1440px;
    margin: 0 auto;
}

.game-item {
    width: 20%;
    padding: 15px;
    box-sizing: border-box;
}

@media (max-width: 1400px) { .game-item { width: 25%; } }
@media (max-width: 1100px) { .game-item { width: 33.33%; } }
@media (max-width: 800px) { .game-item { width: 50%; } }
@media (max-width: 500px) { .game-item { width: 100%; } }

.game-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #dbeafe;
}

.img-wrapper {
    overflow: hidden;
    height: 200px;
    position: relative;
}

.game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.game-card:hover .game-img {
    transform: scale(1.05);
}

.game-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-title {
    font-size: 18px;
    color: #222;
    margin-bottom: 8px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-desc {
    color: #888;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Detail Page */
.detail-wrapper {
    background: #fff;
    min-height: 100vh;
    padding-bottom: 50px;
}

.detail-container {
    max-width: 1000px;
    margin: 40px auto;
    background: #fff;
    padding: 0;
    border-radius: 16px;
    /* box-shadow: 0 10px 40px rgba(0,0,0,0.05); */
}

.detail-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.detail-title {
    font-size: 36px;
    color: #1a1a1a;
    margin: 30px 0;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.detail-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #0044cc;
    margin: 15px auto 0;
    border-radius: 2px;
}

.detail-img-box {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: inline-block;
    max-width: 100%;
}

.detail-img {
    max-width: 100%;
    display: block;
}

.detail-content {
    line-height: 1.9;
    color: #555;
    margin-bottom: 50px;
    font-size: 17px;
    text-align: justify;
    padding: 0 40px;
}

.start-btn {
    display: block;
    width: 280px;
    margin: 0 auto;
    padding: 18px;
    background: linear-gradient(135deg, #0044cc 0%, #0066ff 100%);
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-size: 20px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 68, 204, 0.3);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 68, 204, 0.4);
    background: linear-gradient(135deg, #003db3 0%, #005ce6 100%);
}
