/* Custom styles for Solitaire Games */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f5f7;
    color: #242424;
}

.site-content-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrapper {
    flex: 1;
    padding: 24px 0 60px 0;
}

.container {
    max-width: 1346px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.container.with-sidebar {
    display: flex;
    gap: 32px;
}

.content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* Header Elements */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header_body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

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

.header_burger {
    width: 28px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.header_burger span, .header_burger::before, .header_burger::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: #374151;
    border-radius: 2px;
}

.header_logo img {
    display: block;
    height: 38px;
    width: auto;
}

.header_menu {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header_menu a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 600;
    font-size: 15px;
    padding: 6px 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.header_menu a:hover, .header_menu a.active {
    color: #16a34a;
    border-bottom-color: #16a34a;
}

.header_btn {
    background: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 24px;
    padding: 10px 22px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.header_btn:hover {
    background: #15803d;
}

.header_btn_group {
    position: relative;
}

.header_btn_menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    padding: 20px;
    width: 300px;
    display: none;
    z-index: 1010;
    margin-top: 8px;
}

.header_btn_menu.active {
    display: block;
}

.header_btn_menu_title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.header_btn_menu_desc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}

.header_btn_menu_modes {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.header_btn_menu_modes button {
    border: none;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.header_btn_menu_modes button.active {
    background: #16a34a;
    color: #ffffff;
}

.header_btn_menu_items {
    display: none;
    flex-direction: column;
    gap: 8px;
}

.header_btn_menu_items.active {
    display: flex;
}

.header_btn_menu_item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2937;
    font-weight: 600;
    background: #f9fafb;
    cursor: pointer;
}

.header_btn_menu_item:hover, .header_btn_menu_item.active {
    background: #e0f2fe;
    color: #0369a1;
}

.header_timer {
    background: #fef3c7;
    color: #b45309;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 4px;
}

.header_infobar {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-right: 6px;
}

/* Dropdown Drawer */
.header_dropdown-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 260px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 16px;
    z-index: 999;
}

.header_dropdown-menu.active {
    display: block;
}

.header_dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: #374151;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
}

.header_dropdown-menu a:hover {
    background: #f3f4f6;
    color: #16a34a;
}

/* Game Bar */
.game_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.game_mode {
    display: flex;
    align-items: center;
    gap: 14px;
}

.game_mode_title {
    font-weight: 700;
    font-size: 14px;
    color: #374151;
}

.game_mode_items {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.mode-menu-item {
    text-decoration: none;
    color: #1f2937;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 16px;
    background: #f3f4f6;
    transition: all 0.2s ease;
}

/* USER REQUEST: Teks Draw 1 / Selected mode wajib hitam jelas saat background hijau! */
.mode-menu-item.active {
    background: #22c55e !important;
    color: #0f172a !important; /* Hitam tegas */
    font-weight: 800 !important;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.35);
}

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

.game_stat {
    display: flex;
    align-items: center;
    gap: 16px;
}

.game_stat_item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.game_stat_item_title {
    color: #6b7280;
}

.game_stat_item_value {
    color: #111827;
    font-weight: 700;
}

/* Floating Controls */
.game-controls-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.game_button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.game_button:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.game_button_count {
    background: #16a34a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Posts & Articles */
.post {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 32px;
    margin-top: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.post_title {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin-top: 0;
    margin-bottom: 16px;
}

.post p {
    font-size: 15px;
    line-height: 1.65;
    color: #4b5563;
    margin-bottom: 14px;
}

.post ul, .post ol {
    padding-left: 24px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
}

.post li {
    margin-bottom: 8px;
}

.post img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    display: block;
}

/* Solitaire Games Grid - USER REQUEST: Teks jelas tidak abu-abu di background putih */
.solitaire-games {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.solitaire-games li a {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: #f3f4f6;
    color: #0f172a !important; /* Hitam tegas */
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.solitaire-games li a:hover {
    background: #22c55e;
    color: #000000 !important;
    border-color: #22c55e;
}

/* Selected item / Classic Solitaire badge */
.solitaire-games li span,
.solitaire-games li a.active {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 800;
    background: #22c55e !important;
    color: #000000 !important; /* Teks hitam tegas saat container hijau */
    border: 1px solid #22c55e;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
}

/* FAQ */
.post_faq {
    border-bottom: 1px solid #f3f4f6;
    padding: 16px 0;
}

.post_faq b {
    display: block;
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 8px;
}

/* Articles Section - Diperbaiki Grid & Gambarnya */
.articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.articles_item {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.articles_item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.articles_item_image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e2e8f0;
}

.articles_item_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 !important;
    border-radius: 0 !important;
    display: block;
}

.articles_item_title {
    font-size: 17px;
    font-weight: 800;
    padding: 16px 18px 8px 18px;
    color: #0f172a;
    line-height: 1.4;
}

.articles_item_desc {
    font-size: 14px;
    color: #64748b;
    padding: 0 18px 16px 18px;
    line-height: 1.6;
    flex: 1;
}

.articles_item_more {
    color: #16a34a;
    font-weight: 800;
    font-size: 13px;
    padding: 0 18px 18px 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Reviews Section & Download Banner Rich Content */
.reviews {
    margin-top: 28px;
}

.reviews_info {
    position: relative;
    background: radial-gradient(circle at 75% 50%, #15803d 0%, #166534 60%, #14532d 100%);
    border-radius: 16px;
    padding: 40px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(22, 101, 52, 0.25);
    gap: 24px;
}

.reviews_info_body {
    max-width: 520px;
    z-index: 2;
}

.reviews_info_title {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.reviews_info_desc {
    font-size: 15px;
    opacity: 0.95;
    margin-bottom: 24px;
    line-height: 1.6;
}

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

.reviews_info_links_qr {
    width: 100px;
    height: 100px;
    background: #ffffff;
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.reviews_info_links_buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reviews_info_showcase {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviews_showcase_img {
    max-height: 240px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    object-fit: cover;
}

/* Reviews Data & Fixed Carousel (Teks tidak tertiban) */
.reviews_data {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    margin-top: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.reviews_data_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.reviews_data_title {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
}

.reviews_data_buttons {
    display: flex;
    gap: 8px;
}

.reviews_data_buttons button {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.reviews_data_buttons button:hover {
    background: #e2e8f0;
}

.reviews_carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.reviews_carousel .glide__slides {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 4px 0 16px 0;
    margin: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card Review Diperbaiki: Lebar tetap, flex-shrink 0 agar teks rapi */
.reviews_item {
    width: 320px;
    min-width: 320px;
    flex-shrink: 0;
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reviews_item_stars {
    margin-bottom: 12px;
}

.reviews_item_stars img {
    width: 18px;
    height: 18px;
    margin-right: 2px;
    display: inline-block !important;
}

.reviews_item_text {
    font-size: 14.5px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 16px;
    word-break: break-word;
    font-style: italic;
}

.reviews_item_name {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

/* Sidebar Banner */
.sidebar .banner {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    position: sticky;
    top: 84px;
}

.banner_info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.banner_icon img {
    width: 54px;
    height: 54px;
    border-radius: 12px;
}

.banner_text_title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.banner_text_company {
    font-size: 13px;
    color: #6b7280;
}

.sidebar .qr {
    text-align: center;
    margin-bottom: 16px;
}

.sidebar .qr img {
    width: 140px;
    height: 140px;
}

.sidebar .banner_buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

/* Footer Global */
.footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    margin-top: 40px;
    padding-top: 40px;
}

.footer_top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
}

.footer_logo_copyright {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 12px;
}

.footer_menu {
    display: flex;
    gap: 48px;
}

.footer_menu_col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer_menu_item a {
    text-decoration: none;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer_menu_item a:hover {
    color: #16a34a;
}

.footer_bottom {
    border-top: 1px solid #f3f4f6;
    padding: 20px 0;
}

.policy-links {
    display: flex;
    gap: 24px;
}

.policy-links a {
    text-decoration: none;
    color: #9ca3af;
    font-size: 13px;
}

.policy-links a:hover {
    color: #16a34a;
}

@media (max-width: 992px) {
    .container.with-sidebar {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .articles {
        grid-template-columns: 1fr;
    }
    .reviews_info {
        flex-direction: column;
        text-align: center;
    }
    .reviews_info_links {
        justify-content: center;
    }
    .footer_top {
        flex-direction: column;
        gap: 30px;
    }
}
