/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.floating-shapes:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.floating-shapes:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 5s;
    animation-duration: 30s;
}

.floating-shapes:nth-child(3) {
    bottom: 20%;
    left: 50%;
    animation-delay: 10s;
    animation-duration: 35s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0.3;
    }
    100% {
        transform: translateY(0px) rotate(360deg);
        opacity: 0.7;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo h1 {
    color: #ffd700;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffd700;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    font-size: 0.9rem;
}

.btn-login {
    background: transparent;
    color: #fff;
    border: 2px solid #ffd700;
}

.btn-login:hover {
    background: #ffd700;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-register {
    background: #ffd700;
    color: #000;
}

.btn-register:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.btn-secondary:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
}

.btn-login-large, .btn-register-large {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
    margin-top: 2rem;
    display: inline-block;
}

.btn-login-large:hover, .btn-register-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding-top: 2rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3.5rem;
    color: #ffd700;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.login-section, .register-section, .games-section, .features-section {
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.login-section {
    background: rgba(255, 255, 255, 0.05);
}

.register-section {
    background: rgba(0, 0, 0, 0.3);
}

.games-section {
    background: rgba(255, 255, 255, 0.05);
}

.features-section {
    background: rgba(0, 0, 0, 0.3);
}

.login-section h3, .register-section h3, .games-section h3, .features-section h3 {
    font-size: 2.5rem;
    color: #ffd700;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.login-content, .register-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.login-content p, .register-content p {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.login-steps, .register-steps {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
}

.login-steps h4, .register-steps h4 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.login-steps ol, .register-steps ol {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.login-steps li, .register-steps li {
    color: #fff;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

/* Games Grid */
.games-section p {
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.game-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.game-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.game-card h4 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.game-card p {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h4 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #fff;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #fff;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-buttons {
        margin-top: 1rem;
    }
    
    .games-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .floating-shapes {
        animation: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .game-card:hover, .feature-item:hover {
        transform: none;
    }
}

/* Focus styles for accessibility */
.btn:focus, .nav-link:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .game-card, .feature-item {
        border: 2px solid #fff;
    }
}

/* Content Section Styles */
.content-section {
    padding: 2rem 0;
}

.content-section h1 {
    font-size: 3rem;
    color: #ffd700;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.last-updated {
    text-align: center;
    color: #ccc;
    font-style: italic;
    margin-bottom: 2rem;
}

.policy-content h2 {
    color: #ffd700;
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 0.5rem;
}

.policy-content p {
    color: #fff;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.policy-content li {
    color: #fff;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Contact Page Styles */
.contact-intro {
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-method {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-method h3 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-method p {
    color: #fff;
    margin-bottom: 1rem;
}

.contact-method ul {
    list-style: none;
    padding: 0;
}

.contact-method li {
    color: #fff;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.contact-method li:before {
    content: '•';
    color: #ffd700;
    position: absolute;
    left: 0;
}

.contact-form-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.contact-form-section h2 {
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-form-section p {
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 3rem;
}

.faq-section h2 {
    color: #ffd700;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.faq-section p {
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-item h3 {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.faq-item p {
    color: #fff;
    text-align: left;
    margin: 0;
    line-height: 1.6;
}

/* Support Channels */
.support-channels h2 {
    color: #ffd700;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.support-channels p {
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.support-channel {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.support-channel h3 {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.support-channel p {
    color: #fff;
    text-align: center;
    margin: 0;
    line-height: 1.6;
}

/* 404 Error Page Styles */
.error-section {
    text-align: center;
    padding: 4rem 0;
}

.error-content {
    max-width: 800px;
    margin: 0 auto;
}

.error-code h1 {
    font-size: 8rem;
    color: #ffd700;
    margin: 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    line-height: 1;
}

.error-code h2 {
    font-size: 2.5rem;
    color: #fff;
    margin: 0 0 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.error-message p {
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.error-suggestions {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
}

.error-suggestions h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-suggestions ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.error-suggestions li {
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.error-actions {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.popular-pages {
    margin: 2rem 0;
}

.popular-pages h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.page-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.page-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #ffd700;
    color: #000;
    border-color: #ffd700;
}

.gaming-reminder {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
}

.gaming-reminder h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.gaming-reminder p {
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.gaming-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-help {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.error-help h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-help p {
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {
    .contact-methods,
    .faq-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .error-code h1 {
        font-size: 6rem;
    }
    
    .error-code h2 {
        font-size: 2rem;
    }
    
    .error-actions,
    .gaming-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .page-links {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-form {
        padding: 0 1rem;
    }
}
