/* Base Styles and Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333333;
    --gray-color: #95a5a6;
    --gray-light: #f5f5f5;
    --border-color: #dcdde1;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 5px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f9f9f9;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #27ae60;
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header and Navigation */
header {
    background-color: white;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.user-actions {
    display: flex;
    gap: 10px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #ccc;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-column p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-column i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
}

.footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footer-links a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links span {
    color: #666;
}

/* Youth protection and parental control pages */
.protection-content {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin: 3rem auto;
    max-width: 900px;
}

.protection-content h2 {
    color: var(--primary-color);
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.protection-content h3 {
    color: var(--dark-color);
    margin: 1.8rem 0 1rem;
    font-size: 1.3rem;
}

.protection-content h4 {
    color: var(--dark-color);
    margin: 1.5rem 0 0.8rem;
    font-size: 1.1rem;
}

.protection-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.protection-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.protection-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.protection-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.protection-content ol ol {
    margin-top: 0.8rem;
    margin-bottom: 1rem;
}

.protection-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.protection-content .emphasis {
    font-weight: 600;
    color: var(--accent-color);
}

.protection-content .box {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.protection-content .note {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.protection-content .note p {
    margin: 0;
    color: #555;
}

.section-content {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.section-content strong {
    color: var(--primary-color);
}

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 2rem 0;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me,
.terms {
    display: flex;
    align-items: center;
}

.remember-me input,
.terms input {
    margin-right: 8px;
}

.forgot-password {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.forgot-password:hover {
    color: var(--primary-color);
}

.required {
    color: var(--accent-color);
}

/* Hero Sections */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Game Cards */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 2rem;
}

.game-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.game-card-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.05);
}

.game-card-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.game-card-tag.free {
    background-color: var(--secondary-color);
}

.game-card-tag.paid {
    background-color: var(--accent-color);
}

.game-card-content {
    padding: 15px;
}

.game-card-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--gray-color);
}

.game-card-content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.4;
}

.game-card-actions {
    display: flex;
    gap: 10px;
}

/* Featured Game */
.featured-game {
    padding: 3rem 0;
}

.game-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.game-image {
    height: 100%;
    overflow: hidden;
    text-align: center;
    padding: 10px;
}

.game-image img {
    width: 400px;
    height: 100%;
    object-fit: contain;
}

.game-details {
    padding: 2rem;
}

.game-details h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.game-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--gray-color);
}

.game-info span {
    display: flex;
    align-items: center;
}

.game-info i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.game-description {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.game-actions {
    display: flex;
    gap: 1rem;
}

/* Auth Pages (Login & Register) */
.auth-section {
    padding: 3rem 0;
    background-color: #f9f9f9;
    min-height: calc(100vh - 70px - 400px);
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form .form-group:last-of-type {
    margin-bottom: 1.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.auth-footer a {
    font-weight: 600;
}

/* Games List Page */
.games-hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../images/games-hero.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.games-hero-content h1 {
    color: white;
    margin-bottom: 1rem;
}

.search-container {
    max-width: 600px;
    margin: 2rem auto 0;
}

.search-form {
    display: flex;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: var(--primary-dark);
}

.games-filter {
    margin-top: -30px;
    margin-bottom: 2rem;
}

.filter-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.filter-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.filter-btn, .reset-btn {
    margin-top: 1.5rem;
}

.games-list {
    padding: 2rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.developer-callout {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), url('../images/developer-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.callout-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.callout-content p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .game-showcase {
        grid-template-columns: 1fr;
    }
    
    .game-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin: 1rem 0;
    }
    
    .user-actions {
        margin-top: 1rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-btn, .reset-btn {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort-options {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}

/* About page styles */
.about-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/about-hero.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.about-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-company {
    padding: 80px 0;
}

.company-intro {
    display: flex;
    align-items: center;
    gap: 40px;
}

.company-image {
    flex: 1;
    max-width: 500px;
}

.company-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.company-content {
    flex: 1;
}

.about-mission {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.mission-values {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
}

.mission-item {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.mission-item:hover {
    transform: translateY(-10px);
}

.mission-icon {
    width: 80px;
    height: 80px;
    background-color: #4a90e2;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.mission-icon i {
    font-size: 2rem;
}

.about-team {
    padding: 80px 0;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #666;
    font-size: 1.1rem;
}

.team-members {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.team-member h3 {
    margin: 20px 0 5px;
    color: #333;
}

.member-title {
    color: #4a90e2;
    font-weight: 600;
    margin-bottom: 10px;
}

.member-desc {
    padding: 0 20px 20px;
    color: #666;
}

.about-milestones {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.timeline {
    max-width: 800px;
    margin: 40px auto 0;
    position: relative;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: #4a90e2;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-date {
    min-width: 150px;
    background-color: #4a90e2;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    text-align: center;
    font-weight: 600;
    z-index: 1;
}

.timeline-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    margin-left: 30px;
}

.timeline-content h3 {
    margin-top: 0;
    color: #4a90e2;
}

.about-contact {
    padding: 80px 0;
}

.contact-info {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.contact-details {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-item i {
    width: 60px;
    height: 60px;
    background-color: #f0f8ff;
    color: #4a90e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
}

.contact-text h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
}

.contact-text p {
    margin: 0;
    color: #666;
}

.contact-map {
    flex: 1;
}

.contact-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.join-us {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/join-us.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.join-content {
    max-width: 700px;
    margin: 0 auto;
}

.join-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.join-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .company-intro {
        flex-direction: column;
    }
    
    .company-image {
        max-width: 100%;
    }
    
    .mission-values,
    .contact-info {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .timeline:before {
        left: 30px;
    }
    
    .timeline-item {
        justify-content: flex-start;
    }
    
    .timeline-date {
        min-width: auto;
        padding: 5px 10px;
        font-size: 0.9rem;
    }
    
    .timeline-content {
        margin-left: 15px;
    }
}

@media (max-width: 576px) {
    .about-hero-content h1 {
        font-size: 2rem;
    }
    
    .team-member {
        min-width: 100%;
    }
} 