/* Dublin Lottery 4D - Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0fdf4;
    color: #1a1a1a;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== HEADER / NAVBAR ===== */
.navbar {
    background: linear-gradient(135deg, #042f2e 0%, #115e59 100%);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-wrapper img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.logo-wrapper h1 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.official-badge {
    color: #a3e635;
    font-size: 0.8rem;
}

.official-badge strong {
    color: #84cc16;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-list li a {
    color: #d4d4d4;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    padding: 5px 0;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: #a3e635;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu-content {
    display: none;
    background: #042f2e;
    padding: 15px 20px;
}

.mobile-menu-content ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu-content ul li a {
    color: #d4d4d4;
    font-size: 1rem;
    display: block;
    padding: 8px 0;
}

.mobile-menu-content ul li a:hover {
    color: #a3e635;
}

/* ===== LIVE DRAW SECTION ===== */
.livedraw-section {
    background: url('../images/bg-livedraw.webp') center/cover no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

.livedraw-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.livedraw-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}

.livedraw-card {
    background: rgba(20, 40, 20, 0.85);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(5px);
}

.livedraw-card h2 {
    color: #a3e635;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 800;
}

.draw-date {
    color: #84cc16;
    text-align: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.prize-section {
    text-align: center;
    margin-bottom: 15px;
}

.prize-section h4 {
    color: #a3e635;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 700;
}

.prizes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.ball-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ball {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #1a1a1a;
    background: linear-gradient(145deg, #ffffff 0%, #d4d4d4 100%);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3), inset 0 -2px 4px rgba(0,0,0,0.1);
}

.ball.main-ball {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
}

.ball.small-ball {
    width: 38px;
    height: 38px;
    font-size: 1rem;
}

/* Countdown */
.countdown-section {
    border: 2px dashed #4d7c0f;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.countdown-section h4 {
    color: #a3e635;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.countdown-item {
    text-align: center;
}

.countdown-item .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    background: #1a2e1a;
    padding: 8px 15px;
    border-radius: 8px;
    min-width: 60px;
}

.countdown-item .label {
    display: block;
    color: #a3e635;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-top: 4px;
}

.check-result-link {
    display: block;
    text-align: center;
    color: #a3e635;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 12px;
    border: 2px dashed #4d7c0f;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

.check-result-link:hover {
    background: rgba(163, 230, 53, 0.1);
}

.current-time {
    text-align: center;
    color: #84cc16;
    font-size: 0.8rem;
    margin-top: 8px;
}

/* Logo Display (right side) */
.logo-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.logo-display img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    margin-bottom: 15px;
}

.logo-display h2 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* ===== MIDDLE SECTION ===== */
.middle-section {
    padding: 60px 0;
    background: #f0fdf4;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    color: #1a1a1a;
    font-size: 2rem;
    font-weight: 800;
}

.section-title p {
    color: #525252;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title-border {
    padding-bottom: 15px;
    border-bottom: 2px dashed #84cc16;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.about-grid img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-content h3 {
    color: #365314;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.about-content p {
    color: #404040;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.btn-more {
    display: inline-block;
    background: linear-gradient(135deg, #365314, #4d7c0f);
    color: #fff;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(54, 83, 20, 0.4);
}

/* ===== RESULTS SECTION ===== */
.results-section {
    padding: 60px 0;
    background: #ecfccb;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.result-card {
    background: linear-gradient(145deg, #1a3a1a 0%, #2d5a2d 50%, #1a3a1a 100%);
    border-radius: 40px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(163, 230, 53, 0.2);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.ticket-no {
    display: inline-block;
    background: rgba(163, 230, 53, 0.15);
    color: #a3e635;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid rgba(163, 230, 53, 0.3);
    margin-bottom: 8px;
}

.ticket-date {
    color: #84cc16;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.prize-label {
    color: #a3e635;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* ===== PAYMENTS SECTION ===== */
.payments-section {
    background: #ecfccb;
    padding: 30px 0;
    text-align: center;
    border-top: 2px solid #d9f99d;
}

.payments-section h3 {
    color: #365314;
    margin-bottom: 15px;
    font-size: 1rem;
    text-transform: uppercase;
}

.payments-section img {
    max-width: 500px;
    width: 100%;
}

/* ===== FOOTER ===== */
footer {
    background: #1a1a1a;
    padding: 40px 20px 20px;
    color: #d4d4d4;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.footer-col p {
    font-size: 0.85rem;
    color: #a3a3a3;
    margin-bottom: 10px;
}

.contact-list {
    margin-top: 10px;
}

.contact-list li {
    color: #a3a3a3;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.contact-list li i {
    color: #84cc16;
    margin-right: 5px;
}

.footer-responsible {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-responsible img {
    height: 30px;
    object-fit: contain;
}

.footer-col h3 {
    color: #a3e635;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.wla-section {
    margin-bottom: 15px;
}

.wla-section img {
    height: 60px;
    opacity: 0.8;
}

.copyright {
    text-align: center;
    color: #737373;
    font-size: 0.8rem;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.copyright span {
    color: #a3e635;
    font-style: italic;
}

/* ===== RESULT PAGE ===== */
.result-page-section {
    padding: 40px 0;
    min-height: 60vh;
}

.result-page-section h1 {
    text-align: center;
    color: #1a1a1a;
    font-size: 2rem;
    margin-bottom: 5px;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.result-table thead {
    background: linear-gradient(135deg, #365314, #4d7c0f);
}

.result-table th {
    color: #fff;
    padding: 12px 15px;
    text-align: center;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.result-table td {
    padding: 10px 15px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.result-table tbody tr:hover {
    background: #f0fdf4;
}

/* ===== FAQ PAGE ===== */
.faq-section {
    padding: 50px 0;
    min-height: 60vh;
}

.faq-section h1 {
    text-align: center;
    color: #1a1a1a;
    font-size: 2rem;
    margin-bottom: 30px;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid #84cc16;
}

.faq-item h3 {
    color: #365314;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.faq-item p {
    color: #525252;
    font-size: 0.9rem;
}

/* ===== ABOUT PAGE ===== */
.about-page-section {
    padding: 50px 0;
    min-height: 60vh;
    text-align: center;
}

.about-page-section h1 {
    color: #1a1a1a;
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-page-section p {
    color: #404040;
    max-width: 800px;
    margin: 0 auto 15px;
    font-size: 0.95rem;
}

/* ===== ADMIN PANEL ===== */
.admin-login {
    max-width: 400px;
    margin: 100px auto;
    background: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.admin-login h2 {
    color: #a3e635;
    margin-bottom: 20px;
}

.admin-login label {
    color: #d4d4d4;
    display: block;
    text-align: left;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.admin-login input {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #262626;
    color: #fff;
    margin-bottom: 15px;
    font-size: 1rem;
}

.admin-login button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #365314, #4d7c0f);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.admin-login button:hover {
    transform: translateY(-2px);
}

.admin-panel {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
}

.admin-panel h2 {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: linear-gradient(135deg, #042f2e, #115e59);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #a3e635;
}

.stat-label {
    display: block;
    color: #d4d4d4;
    font-size: 0.8rem;
    margin-top: 5px;
}

.admin-tabs {
    display: flex;
    gap: 5px;
    margin: 20px 0 15px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    color: #525252;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px 6px 0 0;
    transition: background 0.3s, color 0.3s;
}

.tab:hover {
    background: #f0fdf4;
}

.tab.active {
    background: #365314;
    color: #fff;
}

.tab-content {
    background: #fff;
    padding: 25px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tab-content h3 {
    color: #365314;
    margin-bottom: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: #525252;
    margin-bottom: 4px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #84cc16;
    box-shadow: 0 0 0 2px rgba(132, 204, 22, 0.2);
}

.btn-save {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #365314, #4d7c0f);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: transform 0.2s;
}

.btn-save:hover {
    transform: translateY(-2px);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table th {
    background: #365314;
    color: #fff;
    padding: 10px;
    text-align: center;
}

.admin-table td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table tbody tr:hover {
    background: #f0fdf4;
}

.btn-edit {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 3px;
}

.btn-delete {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 10px 15px;
    }

    .header-right {
        flex-wrap: wrap;
    }

    .nav-list {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .livedraw-container {
        grid-template-columns: 1fr;
    }

    .logo-display {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .prizes-grid {
        grid-template-columns: 1fr;
    }

    .ball.main-ball {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .ball.small-ball {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* ===== REVEAL STATUS ===== */
.reveal-status {
    text-align: center;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.reveal-status.live {
    background: rgba(220, 38, 38, 0.2);
    color: #ef4444;
    border: 1px solid rgba(220, 38, 38, 0.4);
    animation: pulse 1.5s infinite;
}

.reveal-pending {
    animation: pendingPulse 1s infinite;
    opacity: 0.6;
}

@keyframes pendingPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.reveal-animate {
    animation: revealBounce 0.5s ease-out;
}

@keyframes revealBounce {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}
