/* === SHARED STYLES (Body, Nav, Responsive) === */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    color: #1f2937;
}

.styled-paragraph {
    color: #333;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px; 
    text-align: justify;
    
}

.nav-link {
    padding: 8px 12px; border-radius: 12px; transition: background .3s, color .3s;
    font-weight: 600;
}
.nav-link:hover { background: #f0fdf4; color: #16a34a; }

.nav-logo { 
    height: 50px; 
    width: auto; transition: transform .2s; 
}
.nav-logo:hover { transform: scale(1.1); }

.hamburger { 
    display: none; cursor: pointer; 
    padding: 8px; 
    border-radius: 8px; 
}
.hamburger:hover { background: #f3f4f6; }


/* === LOTTERY PAGE STYLES (index.html) === */
.lotto-ball {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.25rem;
    color: #1f2937;
    background-color: #ffffff;
    border: 2px solid #d1d5db;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.special-ball { background: #ffde17; border: 2px solid #e5c616; color: #000; }
.power-ball   { background: #ef4444; border: 2px solid #dc2626; color: #fff; }
.cash-ball    { background: #15803d; border: 2px solid #166534; color: #fff; }

.game-title {
  font-size: 1.2rem; 
  font-weight: 700;    
  color: #1f2937;     
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .game-title {
    font-size: 1.4rem;
  }
}

.generate-button {
    background: #006400; border: none; color: white; padding: 10px 20px;
    font-size: 16px; font-weight: bold; margin: 1px; cursor: pointer;
    transition: 0.4s; border-radius: 12px;
}
.generate-button:hover { box-shadow: 0 8px 16px rgba(0,0,0,0.3); }

.copy-button {
    background: #3b82f6; border: none; color: white; padding: 4px 10px;
    border-radius: 8px; cursor: pointer; font-weight: bold; margin-top: 4px;
}
.copy-button:hover { background: #2563eb; }

.toast {
    position: fixed; top: 20px; right: 20px; background: #10b981; color: white;
    padding: 8px 12px; border-radius: 8px; display: none; z-index: 1000;
    font-weight: bold;
}

/* === GALLERY PAGE STYLES (about.html) === */
.photo { transition: transform .3s ease, box-shadow .3s ease; }
.photo:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }

/* === SMOOTH MODAL === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px); /* Smooth blur */
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.35s ease-out;
    padding: 20px;
}
.modal.active {
    display: flex;
    opacity: 1;
}

.modal img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    transform: scale(0.85);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                opacity 0.4s ease-out;
    object-fit: contain;
}
.modal.active img {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 24px; right: 32px;
    color: #fff;
    font-size: 42px;
    font-weight: 300;
    cursor: pointer;
    background: rgba(0,0,0,0.4);
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}
.modal-close:hover {
    background: rgba(239, 68, 68, 0.7);
    transform: scale(1.1);
}

@media (max-width: 640px) {
    .hamburger { display: flex; } /* Changed from display: block */
    .nav-menu {
        position: absolute; top: 100%; left: 0; right: 0; background: white;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1); flex-direction: column;
        padding: 0.5rem;
        
        /* --- Animation --- */
        opacity: 0;
        transform: translateY(-100%);
        visibility: hidden;
        transition: transform 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s;
    }
    .nav-menu.open {
        /* --- Animation --- */
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        display: flex; /* Keep this */
    }
    .nav-menu a { width: 100%; text-align: center; padding: 8px; }

    .modal img { max-width: 95%; border-radius: 12px; }
    .modal-close { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 36px; }
}

/* === NEW: Body Scroll Lock === */
body.noscroll {
    overflow: hidden;
}

/* === NEW: Text-based Menu Button (Mobile) === */
#menu-btn {
    background-color: transparent;
    color: #1f2937;
    transition: all 0.3s ease;
}

#menu-btn.open {
    background-color: #1f2937; /* Background when menu is open */
    color: white;
}

#menu-btn:hover:not(.open) {
    background-color: #f3f4f6; /* Subtle hover effect when closed */
}