/* Yono Games - Casino Website Styles */
:root {
    --primary-yellow: #FFE135;
    --secondary-yellow: #FFF59D;
    --white: #FFFFFF;
    --dark-gray: #2C2C2C;
    --light-gray: #F5F5F5;
    --accent-blue: #1976D2;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Image Optimization Styles */
img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* WebP Support Detection */
.webp img[src$=".jpg"],
.webp img[src$=".jpeg"],
.webp img[src$=".png"] {
    content: url(attr(src) ".webp");
}

/* Lazy Loading Styles */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Responsive Images */
picture {
    display: block;
    width: 100%;
}

picture img {
    width: 100%;
    height: auto;
    display: block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--white) 50%, var(--secondary-yellow) 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Animated Background Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 225, 53, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 245, 157, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-yellow);
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-yellow);
    color: var(--dark-gray);
    transform: translateY(-2px);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-yellow));
    color: var(--dark-gray);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 225, 53, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark-gray);
    border: 2px solid var(--primary-yellow);
}

.btn-secondary:hover {
    background: var(--primary-yellow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--dark-gray);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-yellow);
}

.btn-login {
    background: var(--accent-blue);
    color: var(--white);
}

.btn-login:hover {
    background: #1565C0;
    transform: translateY(-2px);
}

.btn-register {
    background: var(--primary-yellow);
    color: var(--dark-gray);
}

.btn-register:hover {
    background: var(--secondary-yellow);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    display: flex;
    align-items: center;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-content h2 {
    font-size: 3.5rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideInLeft 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--dark-gray);
    opacity: 0.9;
    animation: slideInLeft 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: slideInRight 1s ease-out 0.6s both;
}

.hero-images {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    width: 100%;
}

.hero-image-slot {
    flex: 1;
    position: relative;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-yellow));
}

.hero-image-slot:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.hero-image-slot:hover .hero-img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.hero-image-slot:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.image-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Fallback for missing images */
.hero-img {
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-yellow));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    font-weight: 600;
    text-align: center;
    position: relative;
}

.hero-img::before {
    content: "🎰\A Image\A Placeholder";
    white-space: pre;
    text-align: center;
    font-size: 0.9rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* When actual images are loaded, hide the placeholder */
.hero-img[src]::before {
    display: none;
}

.hero-img[src] {
    background: none;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.features h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-yellow);
    box-shadow: 0 10px 30px rgba(255, 225, 53, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.feature-card p {
    color: var(--dark-gray);
    opacity: 0.8;
}

/* Games Showcase */
.games-showcase {
    padding: 4rem 0;
}

.games-showcase h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-gray);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-item {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.game-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-yellow));
    position: relative;
    overflow: hidden;
}

.game-image::before {
    content: '🎰';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.7;
}

.game-item:nth-child(2) .game-image::before {
    content: '🃏';
}

.game-item:nth-child(3) .game-image::before {
    content: '🎲';
}

.game-item h4 {
    padding: 1rem;
    font-size: 1.3rem;
    color: var(--dark-gray);
}

.game-item p {
    padding: 0 1rem 1rem;
    color: var(--dark-gray);
    opacity: 0.8;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-yellow));
    text-align: center;
}

.cta-section h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--dark-gray);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-yellow);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-images {
        flex-direction: column;
        max-width: 300px;
        gap: 1rem;
    }
    
    .hero-image-slot {
        height: 200px;
    }
    
    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-images {
        max-width: 250px;
    }
    
    .hero-image-slot {
        height: 180px;
    }
    
    .image-overlay h3 {
        font-size: 1rem;
    }
    
    .image-overlay p {
        font-size: 0.8rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav-link:focus {
    outline: 3px solid var(--accent-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-yellow: #FFD700;
        --dark-gray: #000000;
    }
}

/* Page Header Styles */
.page-header {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    border-bottom: 3px solid var(--primary-yellow);
}

.page-header h1 {
    font-size: 3rem;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    opacity: 0.8;
}

/* Content Section Styles */
.content-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.content-wrapper h2 {
    color: var(--dark-gray);
    margin: 2rem 0 1rem 0;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-yellow);
    padding-bottom: 0.5rem;
}

.content-wrapper h3 {
    color: var(--dark-gray);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.4rem;
}

.content-wrapper p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--dark-gray);
}

.content-wrapper ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.content-wrapper a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition);
}

.content-wrapper a:hover {
    color: var(--primary-yellow);
    text-decoration: underline;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #ffeb3b, #ffc107);
    border: 2px solid #ff9800;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.warning-box h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.warning-box p {
    color: var(--dark-gray);
    font-weight: 500;
    margin: 0;
}

/* Contact Page Styles */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-method {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-method h3 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-method p {
    color: var(--dark-gray);
    opacity: 0.8;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.contact-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-yellow);
}

.response-time {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.response-time h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.response-time ul {
    list-style: none;
    padding-left: 0;
}

.response-time li {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

/* Contact Form Styles */
.contact-form-section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form-section h2 {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 225, 53, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--primary-yellow);
}

.faq-section h2 {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--dark-gray);
    opacity: 0.8;
    margin: 0;
    font-size: 0.95rem;
}

/* 404 Error Page Styles */
.error-page {
    padding: 4rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-visual {
    position: relative;
    margin-bottom: 2rem;
}

.error-number {
    font-size: 8rem;
    font-weight: bold;
    color: var(--primary-yellow);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
    animation: bounce 2s infinite;
}

.error-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    animation: spin 3s linear infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.error-content h1 {
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.error-content p {
    font-size: 1.2rem;
    color: var(--dark-gray);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.helpful-links {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.helpful-links h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.helpful-links ul {
    list-style: none;
    padding: 0;
}

.helpful-links li {
    margin-bottom: 0.5rem;
}

.helpful-links a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition);
}

.helpful-links a:hover {
    color: var(--primary-yellow);
    text-decoration: underline;
}

.search-suggestion {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.search-suggestion h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.search-suggestion p {
    color: var(--dark-gray);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

/* Responsive Design for New Pages */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-wrapper {
        padding: 2rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .error-number {
        font-size: 6rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .auth-buttons {
        display: none;
    }
    
    body {
        background: white;
    }
}
