/* ============================================================
   PARHAAT NETTIKASINOT 2026 – style.css
   Blue-purple gradient, casino table fixes, author blocks
   ============================================================ */

/* ----- Reset ----- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ----- Body ----- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.7;
    padding: 20px 0;
}

/* ----- Main container ----- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* ----- Header ----- */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
header::before {
    content: '🎰';
    position: absolute;
    font-size: 180px;
    opacity: 0.07;
    right: -30px;
    top: -30px;
    pointer-events: none;
}
header h1 {
    font-size: 2.4em;
    margin-bottom: 12px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
}
.subtitle {
    font-size: 1.15em;
    opacity: 0.9;
}

/* ----- Author section ----- */
.author-section {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #f0f4ff;
    border-left: 5px solid #2a5298;
    padding: 18px 24px;
    margin: 28px 40px;
    border-radius: 10px;
}
.author-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2a5298;
    flex-shrink: 0;
}
.author-info h4 {
    color: #1e3c72;
    font-size: 1.05em;
    margin-bottom: 4px;
}
.author-info p {
    color: #6b7280;
    font-size: 0.88em;
    margin: 0;
}

/* ----- Content area ----- */
.content {
    padding: 30px 40px 40px;
}

h2 {
    color: #1e3c72;
    margin: 36px 0 16px;
    font-size: 1.85em;
    border-bottom: 3px solid #667eea;
    padding-bottom: 8px;
}
h3 {
    color: #2a5298;
    margin: 24px 0 12px;
    font-size: 1.35em;
}
h4 {
    color: #374151;
    margin: 16px 0 8px;
    font-size: 1.1em;
}
p {
    margin-bottom: 14px;
    color: #374151;
}
ul, ol {
    padding-left: 22px;
    margin-bottom: 14px;
}
li {
    margin-bottom: 6px;
    color: #374151;
}

/* ----- Content boxes ----- */
.info-box {
    background: #e0f2fe;
    border-left: 5px solid #0284c7;
    padding: 18px 20px;
    margin: 20px 0;
    border-radius: 6px;
}
.success-box {
    background: #d1fae5;
    border-left: 5px solid #10b981;
    padding: 18px 20px;
    margin: 20px 0;
    border-radius: 6px;
}
.warning-box {
    background: #fef3c7;
    border-left: 5px solid #f59e0b;
    padding: 18px 20px;
    margin: 20px 0;
    border-radius: 6px;
}
.highlight-box {
    background: linear-gradient(120deg, #fef9c3 0%, #fde68a 100%);
    border-left: 5px solid #f59e0b;
    padding: 18px 20px;
    margin: 20px 0;
    border-radius: 6px;
}

/* ----- Features list with icons ----- */
.features-list {
    list-style: none;
    padding: 0;
}
.features-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    border-bottom: 1px solid #e5e7eb;
}
.features-list li:last-child { border-bottom: none; }
.features-list li::before { content: '✅'; position: absolute; left: 0; }

/* ----- QA / FAQ section ----- */
.qa-section {
    margin: 30px 0;
}
.faq-item {
    background: #f9fafb;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    padding: 18px 22px;
    margin: 14px 0;
}
.faq-question {
    font-weight: 700;
    color: #1e3c72;
    font-size: 1.05em;
    margin-bottom: 8px;
}
.faq-answer {
    color: #4b5563;
    margin: 0;
}

/* ============================================================
   CASINO TABLE – fixes for logos, buttons, stars
   ============================================================ */

.casino-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
}

/* Table head */
.casino-table thead {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
}
.casino-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.92em;
    letter-spacing: 0.3px;
}
.casino-table th:nth-child(1),
.casino-table td:nth-child(1) { width: 36px; text-align: center; }
.casino-table th:nth-child(2),
.casino-table td:nth-child(2) { width: 170px; }
.casino-table th:nth-child(4),
.casino-table td:nth-child(4) { width: 90px; text-align: center; }
.casino-table th:nth-child(5),
.casino-table td:nth-child(5) { width: 110px; text-align: center; }

/* Table body */
.casino-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}
.casino-table tbody tr:last-child td { border-bottom: none; }
.casino-table tbody tr:nth-child(even) { background: #f9fafb; }
.casino-table tbody tr:hover { background: #eef2ff; transition: background .2s; }

/* ── FIX 1: Uniform logo size ── */
.casino-logo {
    display: block;
    width: 100px;
    height: 34px;
    object-fit: contain;
    object-position: center;
}

/* ── FIX 2: Dark panel behind each logo so text/artwork is visible ── */
.logo-cell {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 7px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 48px;
}

/* Logo + badge wrapper */
.badge-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

/* Badges */
.badge-hot {
    display: inline-block;
    background: #fff3e0;
    color: #e65100;
    font-size: 0.7em;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #ff9800;
}
.badge-new {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.7em;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #4caf50;
}

/* Bonus text */
.bonus-title {
    display: block;
    font-size: 0.75em;
    color: #6b7280;
    margin-bottom: 3px;
}
.bonus-value {
    display: block;
    font-weight: 700;
    color: #1e3c72;
    font-size: 0.92em;
    line-height: 1.4;
}

/* ── FIX 3: Stars ── */
.stars {
    color: #f59e0b;
    font-size: 1.05em;
    letter-spacing: 1px;
    display: block;
    line-height: 1.4;
    margin-bottom: 1px;
}
.rating-num {
    font-weight: 700;
    color: #1e3c72;
    font-size: 0.88em;
}

/* ── FIX 4: Play button ── */
.btn-play {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82em;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(16,185,129,0.4);
    transition: transform .2s, box-shadow .2s;
    letter-spacing: .3px;
}
.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(16,185,129,0.55);
}

/* ----- Author bio footer ----- */
.author-bio-footer {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #f0f4ff;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 30px 0;
}
.author-bio-footer img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2a5298;
    flex-shrink: 0;
}
.author-bio-footer p { margin: 0; font-size: 0.92em; color: #374151; }

/* ----- Pros / Cons table ----- */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}
.pros {
    background: #d1fae5;
    border: 2px solid #10b981;
    border-radius: 10px;
    padding: 16px 18px;
}
.cons {
    background: #fee2e2;
    border: 2px solid #ef4444;
    border-radius: 10px;
    padding: 16px 18px;
}
.pros h4, .cons h4 { margin-top: 0; }

/* ----- Footer ----- */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #e5e7eb;
    padding: 40px;
    text-align: center;
}
footer p { color: #9ca3af; margin-bottom: 8px; }
footer a { color: #93c5fd; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-links { list-style: none; padding: 0; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.footer-logos { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 18px 0; }
.footer-logos img { height: 32px; object-fit: contain; filter: brightness(0) invert(0.7); }
.footer-warning {
    background: #ef4444;
    color: #fff;
    padding: 14px 20px;
    margin-top: 18px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .content { padding: 20px 24px; }
    header { padding: 36px 24px; }
    .author-section { margin: 20px 24px; }
    .casino-table th, .casino-table td { padding: 10px 10px; }
    .pros-cons { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    header h1 { font-size: 1.7em; }
    h2 { font-size: 1.4em; }
    .content { padding: 16px 16px; }
    .author-section { margin: 14px 16px; flex-direction: column; }

    /* Stack table on mobile */
    .casino-table thead { display: none; }
    .casino-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 12px;
        border-bottom: 2px solid #e5e7eb;
    }
    .casino-table td { border: none; padding: 4px; }
    .casino-table td:first-child { grid-column: 1 / -1; font-weight: 700; }
    .logo-cell { min-width: 120px; min-height: 52px; }
    .casino-logo { width: 110px; height: 38px; }
}

@media (max-width: 480px) {
    header h1 { font-size: 1.35em; }
    .btn-play { padding: 8px 14px; font-size: 0.82em; }
}
