/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1,h2,h3,h4,h5,h6,p,a {
word-break: break-all;
}


body {
    font-family: 'Kodchasan', sans-serif;
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 50%, #6D28D9 100%);
    color: white;
    min-height: 100vh;
    line-height: 1.6;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(139, 92, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.8rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 4rem;
    align-items: center;

    img {
        width: 100%;
    }
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-button {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    padding: 1rem 2rem;
    border-radius: 8px;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Kodchasan', sans-serif;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.hero-graphics {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-person,
.hero-wheel,
.hero-gift,
.hero-dollar {
    position: absolute;
    max-width: 100px;
    height: auto;
}

.hero-person {
    max-width: 200px;
    z-index: 2;
}

.hero-wheel {
    top: -50px;
    right: -50px;
    z-index: 1;
}

.hero-gift {
    bottom: -30px;
    left: -30px;
}

.hero-dollar {
    bottom: 20px;
    right: 20px;
}

/* Warning Banner */
.warning-banner {
    background: #F59E0B;
    color: #000;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.8rem;
}

.feature-card {
    background: rgba(16, 185, 129, 0.9);
    padding: 0.8rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.teal-card {
    background: rgba(16, 185, 129, 0.9);
}

.orange-card {
    background: rgba(245, 158, 11, 0.9);
    color: #000;
}

.green-check {
    background: rgba(16, 185, 129, 0.9);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsible Section */
.responsible-section {
    padding: 4rem 0;
}

.responsible-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.8rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.responsible-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.responsible-card {
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.bingo-card {
    text-align: center;
    margin-top: 2rem;

    img {
        width: 100%;
    }
}

.bingo-img {
    height: auto;
    border-radius: 8px;
}

.bingo-label {
    background: #8B5CF6;
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 20px;
    margin-top: 1rem;
    display: inline-block;
    font-weight: 600;
}

/* Victory Section */
.victory-section {
    padding: 4rem 0;
}

.victory-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.8rem;
}

.victory-card {
    margin-bottom: 3rem;
    padding: 0.8rem;
    border-radius: 12px;
}

.lottery-machine {
    text-align: center;
    margin: 3rem 0;
}

.machine-img {
    max-width: 400px;
    height: auto;
    border-radius: 12px;
}

.bottom-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.bottom-card {
    padding: 0.8rem;
    border-radius: 12px;
}

.bottom-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Auth Pages */
.auth-main {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-container {
    max-width: 500px;
    width: 100%;
    padding: 0 0.8rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.auth-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #4C1D95;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Kodchasan', sans-serif;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-hint {
    color: #F59E0B;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: block;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #F59E0B;
}

.auth-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    font-family: 'Kodchasan', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 1rem;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.forgot-link {
    color: #F59E0B;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Legal Pages */
.legal-main {
    padding: 2rem 0;
    min-height: 80vh;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 0.8rem;
}

.legal-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.legal-updated {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.8;
    font-style: italic;
}

.legal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #F59E0B;
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Gambling Page Specific */
.gambling-main {
    padding: 2rem 0;
}

.gambling-hero {
    padding: 2rem 0;
}

.gambling-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.gambling-subtitle {
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 3rem;
}

.tips-section {
    padding: 2rem 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tip-card {
    padding: 1.5rem;
    border-radius: 8px;
}

.tip-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.understanding-section {
    padding: 2rem 0;
}

.checklist {
    max-width: 600px;
    margin: 0 auto;
}

.check-item {
    background: rgba(16, 185, 129, 0.9);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.checkmark {
    font-size: 1.2rem;
}

.car-illustration {
    text-align: center;
    margin: 3rem 0;
}

.car-img {
    width: 100%;
    max-width: 600px;
    height: auto;
}

.tools-section {
    padding: 2rem 0;
}

.tools-illustration {
    text-align: center;
    margin-bottom: 2rem;
}

.tools-img {
    max-width: 200px;
    height: auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.tool-card {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.tool-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tool-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.support-section {
    padding: 2rem 0;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.support-card {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.support-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lottery-ticket {
    text-align: center;
    margin-top: 2rem;
}

.ticket-img {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
}

.commitment-section {
    padding: 2rem 0;
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.commitment-card {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.commitment-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #10B981;
}

.commitment-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-section {
    padding: 2rem 0;
}

.contact-card {
    padding: 0.8rem;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.age-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.967);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.age-modal-content {
  background: #9744D3;
  padding: 0.8rem;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  margin: 1rem;
}

.age-modal-content h2 {
  color: #dc2626;
  margin-bottom: 1rem;
}

.age-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-confirm {
  background: #2c5530;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

.btn-deny {
  background: #dc2626;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

.age-error {
  margin-top: 1rem;
  border-radius: 5px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.8rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-logo-text {
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-info {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-notice {
    margin-bottom: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #F59E0B;
}

.footer-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-cert {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-cert:hover {
    opacity: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #F59E0B;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10000;
    transform: translateY(100px);
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
    visibility: visible;
}

.cookie-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-family: 'Kodchasan', sans-serif;
    transition: all 0.3s ease;
}

.cookie-btn.accept {
    background: #10B981;
    color: white;
}

.cookie-btn.decline {
    background: #6B7280;
    color: white;
}

.cookie-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Container utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(139, 92, 246, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-container {
        padding: 0 1rem;
    }
    
    .responsible-grid {
        grid-template-columns: 1fr;
    }
    
    .bottom-cards {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .commitment-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-logos {
        gap: 1rem;
    }
    
    .cookie-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .auth-card {
        padding: 0.8rem;
    }
    
    .legal-content {
        padding: 0.8rem;
    }
    
    .legal-title {
        font-size: 2rem;
    }
    
    .gambling-title {
        font-size: 2rem;
    }
    
    .gambling-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .legal-content {
        padding: 1.5rem;
    }

    .security-grid,
    .rights-grid,
    .toc-grid {
        display: flex !important;
        flex-direction: column;
    }
}

/* Animation utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover effects */
.feature-card:hover,
.tip-card:hover,
.tool-card:hover,
.support-card:hover,
.commitment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
.nav-link:focus,
.form-input:focus,
.auth-button:focus,
.cookie-btn:focus {
    outline: 2px solid #F59E0B;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cookie-banner {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .legal-content,
    .auth-card {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}