/*
Theme Name: SBOBET381 Pro
Theme URI: https://sbobet381.com
Description: Professional responsive sportsbook theme with category-based URL structure and prominent CTA buttons
Author: SBOBET381
Version: 2.0
*/

/* ===========================
   RESET & BASE
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a1628 0%, #152235 100%);
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ===========================
   TYPOGRAPHY HIERARCHY
   Super jelas perbedaan H1-H5 dan paragraf
   =========================== */

/* H1 - Judul Utama (Paling Besar) */
h1, .h1 {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* H2 - Section Header */
h2, .h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #00bfff;
}

/* H3 - Subsection (Biru Muda) */
h3, .h3 {
    font-size: 22px;
    font-weight: 600;
    color: #4a90e2;
    line-height: 1.4;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* H4 - Detail (Emas) */
h4, .h4 {
    font-size: 18px;
    font-weight: 600;
    color: #ffd700;
    line-height: 1.4;
    margin-top: 25px;
    margin-bottom: 12px;
}

/* H5 - Note Kecil */
h5, .h5 {
    font-size: 16px;
    font-weight: 500;
    color: #cccccc;
    line-height: 1.5;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Paragraf - Spacing Bagus */
p {
    font-size: 16px;
    font-weight: 400;
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* List Styling */
ul, ol {
    margin: 15px 0 20px 25px;
    line-height: 1.8;
    color: #cccccc;
}

ul li, ol li {
    margin-bottom: 10px;
}

/* Strong & Bold */
strong, b {
    color: #ffffff;
    font-weight: 700;
}

/* Link in Content */
.content a {
    color: #4a90e2;
    text-decoration: underline;
}

.content a:hover {
    color: #00bfff;
}

/* ===========================
   HEADER - Desktop & Mobile Optimized
   =========================== */
.site-header {
    background: linear-gradient(135deg, #152235 0%, #1a2942 100%);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-logo {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

.site-logo span {
    color: #00bfff;
}

.site-tagline {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}

/* CTA Buttons di Header - BESAR & MENCOLOK */
.header-cta {
    display: flex;
    gap: 15px;
}

.btn-daftar,
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.btn-daftar {
    background: linear-gradient(135deg, #1e90ff 0%, #4a90e2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.5);
    animation: pulse 2s infinite;
}

.btn-daftar:hover {
    background: linear-gradient(135deg, #00bfff 0%, #1e90ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.7);
}

.btn-login {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00bfff;
    color: #00bfff;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(30, 144, 255, 0.5);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 191, 255, 0.8);
    }
}

/* ===========================
   MENU UTAMA - Responsive
   =========================== */
.main-navigation {
    background: linear-gradient(90deg, #1565c0 0%, #1e88e5 100%);
    box-shadow: 0 3px 10px rgba(30, 136, 229, 0.4);
}

.main-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu > li {
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.main-menu > li:last-child {
    border-right: none;
}

.main-menu > li > a {
    display: block;
    padding: 16px 24px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a {
    background: rgba(0, 0, 0, 0.2);
    color: #00bfff;
}

/* ===========================
   MENU GAME - Responsive
   =========================== */
.game-navigation {
    background: linear-gradient(90deg, #1a2942 0%, #1e3a5f 100%);
    border-bottom: 3px solid #00bfff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.game-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.game-menu li {
    flex: 1;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 100px;
}

.game-menu li:last-child {
    border-right: none;
}

.game-menu a {
    display: block;
    padding: 14px 16px;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
}

.game-menu a:hover {
    background: rgba(0, 191, 255, 0.15);
    color: #00bfff;
}

.game-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #00bfff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.game-menu a:hover::after,
.game-menu .current-menu-item a::after {
    width: 80%;
}

.game-menu .current-menu-item a {
    background: rgba(0, 191, 255, 0.2);
    color: #00bfff;
}

/* ===========================
   MENU KATEGORI - Auto dari WP
   =========================== */
.category-navigation {
    background: #152235;
    border-bottom: 2px solid rgba(0, 191, 255, 0.3);
    padding: 12px 0;
}

.category-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-menu a {
    display: block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    color: #bbb;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: capitalize;
    white-space: nowrap;
}

.category-menu a:hover,
.category-menu .current-cat a {
    background: rgba(0, 191, 255, 0.15);
    color: #00bfff;
    border-color: #00bfff;
}

/* ===========================
   MAIN CONTENT AREA
   =========================== */
.site-content {
    padding: 40px 0;
    min-height: 60vh;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.main-content {
    background: rgba(15, 23, 41, 0.8);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Post Item */
.post-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
    transition: all 0.3s ease;
}

.post-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
}

.post-thumbnail {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

.post-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.3;
}

.post-title a {
    color: #fff;
}

.post-title a:hover {
    color: #4a90e2;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #888;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-excerpt {
    color: #bbb;
    line-height: 1.8;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(90deg, #4a90e2 0%, #1e90ff 100%);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more:hover {
    background: linear-gradient(90deg, #1e90ff 0%, #4a90e2 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* Single Post Content */
.single-post-content {
    background: rgba(15, 23, 41, 0.8);
    padding: 50px;
    border-radius: 12px;
}

.single-post-content .content {
    color: #ccc;
    font-size: 16px;
    line-height: 1.8;
}

/* ===========================
   SIDEBAR - Sticky CTA
   =========================== */
.sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
}

/* Sidebar CTA - BESAR & STICKY */
.sidebar-cta {
    background: linear-gradient(135deg, #4a90e2 0%, #1e90ff 100%);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.5);
    animation: pulse 2s infinite;
}

.sidebar-cta h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.sidebar-cta p {
    color: #fff;
    font-size: 14px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.sidebar-cta .btn-cta-big {
    display: block;
    width: 100%;
    padding: 18px 30px;
    background: #fff;
    color: #4a90e2;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.sidebar-cta .btn-cta-big:hover {
    background: #ffd700;
    color: #000;
    transform: scale(1.05);
}

/* Widget Area */
.widget {
    background: rgba(15, 23, 41, 0.8);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #4a90e2;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #bbb;
    display: flex;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.widget ul li a:hover {
    color: #4a90e2;
    padding-left: 10px;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    background: #050816;
    padding: 50px 0 20px;
    border-top: 3px solid #4a90e2;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #888;
    font-size: 14px;
}

.footer-widget ul li a:hover {
    color: #4a90e2;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 13px;
}

/* ===========================
   MOBILE CTA - Floating Bottom
   =========================== */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 12px 15px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    border-top: 3px solid #4a90e2;
}

.mobile-cta-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.mobile-cta-buttons .btn-daftar,
.mobile-cta-buttons .btn-login {
    padding: 16px 20px;
    font-size: 15px;
    border-radius: 6px;
    text-align: center;
}

/* ===========================
   PAGINATION
   =========================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination .nav-links {
    display: flex;
    gap: 8px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.pagination .page-numbers:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #4a90e2;
    border-color: #4a90e2;
}

.pagination .page-numbers.current {
    background: linear-gradient(90deg, #4a90e2 0%, #1e90ff 100%);
    border-color: #4a90e2;
}

/* ===========================
   RESPONSIVE - PERFECT untuk semua device
   =========================== */

/* Tablet Landscape (1024px - 768px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }
    
    .main-content {
        padding: 30px;
    }
    
    .single-post-content {
        padding: 35px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
}

/* Tablet Portrait (768px - 480px) */
@media (max-width: 768px) {
    /* Header */
    .site-logo {
        font-size: 24px;
    }
    
    .site-tagline {
        font-size: 10px;
    }
    
    .header-cta {
        display: none; /* Hide desktop CTA, show mobile CTA instead */
    }
    
    /* Main Menu - Scroll Horizontal */
    .main-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        scrollbar-width: none;
    }
    
    .main-menu::-webkit-scrollbar {
        display: none;
    }
    
    .main-menu > li > a {
        padding: 14px 18px;
        font-size: 13px;
    }
    
    /* Game Menu - Scroll Horizontal */
    .game-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }
    
    .game-menu li {
        flex: 0 0 auto;
        min-width: 100px;
    }
    
    .game-menu a {
        padding: 12px 12px;
        font-size: 12px;
    }
    
    /* Category Menu */
    .category-menu {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 0 15px;
    }
    
    /* Content Layout - Stack */
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar {
        order: 2;
    }
    
    .sidebar-sticky {
        position: static;
    }
    
    .main-content {
        padding: 25px;
    }
    
    .single-post-content {
        padding: 25px;
    }
    
    /* Typography */
    h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    h2 {
        font-size: 22px;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    
    h3 {
        font-size: 18px;
        margin-top: 25px;
    }
    
    h4 {
        font-size: 16px;
    }
    
    p {
        font-size: 15px;
    }
    
    /* Footer */
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* Mobile CTA removed - only header buttons now */
}

/* Mobile (< 480px) */
@media (max-width: 480px) {
    /* Header */
    .site-logo {
        font-size: 20px;
    }
    
    .header-wrapper {
        gap: 10px;
    }
    
    /* Menu */
    .main-menu > li > a {
        padding: 12px 15px;
        font-size: 12px;
    }
    
    .game-menu li {
        min-width: 85px;
    }
    
    .game-menu a {
        padding: 10px 8px;
        font-size: 11px;
    }
    
    .category-menu a {
        padding: 6px 15px;
        font-size: 12px;
    }
    
    /* Content */
    .main-content {
        padding: 20px;
    }
    
    .single-post-content {
        padding: 20px;
    }
    
    .post-item {
        padding: 20px;
    }
    
    /* Typography */
    h1 {
        font-size: 24px;
        margin-bottom: 18px;
    }
    
    h2 {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 12px;
    }
    
    h3 {
        font-size: 17px;
        margin-top: 20px;
    }
    
    h4 {
        font-size: 15px;
    }
    
    h5 {
        font-size: 14px;
    }
    
    p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 18px;
    }
    
    /* Sidebar CTA */
    .sidebar-cta {
        padding: 30px 20px;
    }
    
    .sidebar-cta h3 {
        font-size: 20px;
    }
    
    .sidebar-cta .btn-cta-big {
        padding: 16px 25px;
        font-size: 16px;
    }
    
    /* Footer */
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Mobile CTA */
    .mobile-cta-buttons .btn-daftar,
    .mobile-cta-buttons .btn-login {
        padding: 14px 16px;
        font-size: 14px;
    }
}

/* Extra Small Mobile (< 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .site-logo {
        font-size: 18px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    .main-content,
    .single-post-content,
    .post-item {
        padding: 15px;
    }
}

/* Desktop Large (> 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr 400px;
    }
    
    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 32px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .main-navigation,
    .game-navigation,
    .category-navigation,
    .sidebar,
    .mobile-cta-bar,
    .site-footer {
        display: none;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    body {
        background: white;
        color: black;
    }
}
