/* Thai Lottery Plugin Styles - Mirrored from The Thaiger */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&family=Sarabun:wght@400;700&display=swap');

/* Main Wrappers */
#mvp-content-main {
    width: 100%;
    font-family: 'Sarabun', sans-serif;
}

/* Ensure Container Constraint works for Single Lottery Page */
.single-lottery_draw .container,
.single-lottery-draw .container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1140px; /* Bootstrap default for lg, close to Jannah 1220px */
}

/* Responsive Container */
@media (min-width: 1200px) {
    .single-lottery_draw .container, .single-lottery-draw .container { max-width: 1140px; }
}
@media (max-width: 1200px) {
    .single-lottery_draw .container, .single-lottery-draw .container { max-width: 960px; }
}
@media (max-width: 992px) {
    .single-lottery_draw .container, .single-lottery-draw .container { max-width: 720px; }
}
@media (max-width: 768px) {
    .single-lottery_draw .container, .single-lottery-draw .container { max-width: 540px; }
}
@media (max-width: 576px) {
    .single-lottery_draw .container, .single-lottery-draw .container { max-width: 100%; }
}

.mvp-post-soc-in {
    display: block;
}


/* Hide Duplicate H1 (The Thaiger hides this H1) */
.lottery-left h1 {
    position: absolute;
    z-index: -9999;
    color: rgba(0,0,0,0);
}

/* Typography Defaults */
.result-main h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.result-main h3 span {
    display: inline-block;
    font-weight: normal;
    font-size: 0.9em;
}

.result-main h3 span a {
    color: #333;
    text-decoration: none;
}

/* Main Highlight Box */
.lottery-main-hightlight {
    border: 2px dashed #dbaa09;
    border-radius: 15px;
    padding: 30px;
    background-color: #fff;
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,.05);
}

/* Grid Layout for Top Prizes (Desktop) */
.result-main ul.list-unstyled {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 0;
    margin: 2rem 0 0;
    list-style: none;
}

.result-main ul.list-unstyled li {
    background-color: #f9fafb;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: inset 0 0 0 1px #e5e7eb;
    transition: all 0.3s ease;
    border: none !important;
}

.result-main ul.list-unstyled li:hover {
    box-shadow: inset 0 0 0 2px #10b981;
}

/* 1st Prize Highlight (Green) */
#mvp-content-main .result-main ul.list-unstyled li:first-child {
    border: 2px solid #19AD79 !important;
}

#mvp-content-main .result-main ul.list-unstyled li:first-child strong {
    background-color: #19AD79;
    padding: 5px 15px 8px 15px;
    border-radius: 7px;
    color: #fff;
}

/* Typography inside grid */
.result-main h6 {
    font-size: 1rem;
    color: #374151;
    margin-bottom: .5rem;
    margin-top: 0;
    font-weight: normal;
}

.result-main strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: .5rem;
    letter-spacing: 1px;
}

.result-main h5 {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    font-weight: normal;
}

/* 3-digit prefix/suffix layout */
.result-main .pull-left, 
.result-main .pull-right {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    padding: 0 10px;
}

.result-main .pull-left {
    border-right: 1px solid #e5e7eb;
}

/* Lower Section (Table-like rows) */
.lottery-result {
    margin-top: 30px;
}

.lottery-result h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.lottery-result h3 span {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: normal;
    background: #f3f4f6;
    padding: 2px 10px;
    border-radius: 20px;
}

.flex-result {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.lotto__number {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 1.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .result-main ul.list-unstyled {
        grid-template-columns: 1fr;
    }
    
    .lottery-result h3 {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .flex-result {
        justify-content: center;
    }
}
