/* =============================================
   Dafabet Theme - Main Stylesheet
   ============================================= */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: #0d0d0d;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #F5A623;
}

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

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

ul, ol {
    list-style: none;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

/* === Header === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.header-top {
    background: #CC0000;
    padding: 10px 0;
}

.header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 45px;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-form input {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 140px;
    font-size: 13px;
    outline: none;
}

.login-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.login-form input:focus {
    background: rgba(255, 255, 255, 0.3);
}

.btn-login {
    display: inline-block;
    padding: 8px 20px;
    background: #fff;
    color: #CC0000;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #f0f0f0;
    color: #CC0000;
}

.btn-join {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #FFD700, #F5A623);
    color: #1a1a1a;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-join:hover {
    background: linear-gradient(135deg, #F5A623, #FFD700);
    color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* === Navigation === */
.main-nav {
    background: #1a1a1a;
    border-bottom: 2px solid #333;
}

.main-nav .container {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: block;
    padding: 14px 20px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a,
.nav-list > li.active > a {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

/* Dropdown */
.nav-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #222;
    min-width: 200px;
    z-index: 100;
    border: 1px solid #333;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-list > li:hover > .sub-menu {
    display: block;
}

.nav-list .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #ccc;
    font-size: 13px;
    transition: all 0.3s ease;
}

.nav-list .sub-menu li a:hover {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.05);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-right: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* === Hero Slider === */
.hero-slider {
    position: relative;
    background: #0d0d0d;
}

.hero-swiper {
    width: 100%;
}

.hero-slide {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 25px;
    max-width: 500px;
    line-height: 1.5;
}

.btn-hero-cta {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #FFD700, #F5A623);
    color: #1a1a1a;
    font-weight: 700;
    font-size: 18px;
    border-radius: 6px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-hero-cta:hover {
    background: linear-gradient(135deg, #F5A623, #FFD700);
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/* Swiper overrides */
.hero-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #FFD700;
    opacity: 1;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: #FFD700;
}

/* === Section Styles === */
.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #FFD700;
    display: inline-block;
    color: #fff;
}

.promo-section,
.games-section {
    padding: 60px 0;
}

/* === Promo Grid === */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.promo-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.15);
}

.promo-card-img {
    height: 180px;
    overflow: hidden;
}

.promo-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.promo-card:hover .promo-card-img img {
    transform: scale(1.05);
}

.promo-card-img.placeholder {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-card-body {
    padding: 20px;
}

.promo-card-body h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #fff;
}

.promo-card-body p {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.btn-promo {
    display: inline-block;
    padding: 8px 25px;
    background: linear-gradient(135deg, #FFD700, #F5A623);
    color: #1a1a1a;
    font-weight: 600;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-promo:hover {
    background: linear-gradient(135deg, #F5A623, #FFD700);
    color: #1a1a1a;
    transform: translateY(-1px);
}

/* === Games Grid === */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.game-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.1);
}

.game-card-img {
    height: 200px;
    overflow: hidden;
    background: #222;
}

.game-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-card-img img {
    transform: scale(1.05);
}

.game-card-body {
    padding: 15px;
    text-align: center;
}

.game-card-body h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #fff;
}

.game-card-body h4 i {
    color: #FFD700;
    margin-right: 5px;
}

.btn-play {
    display: inline-block;
    padding: 6px 20px;
    background: #CC0000;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-play:hover {
    background: #a00;
    color: #fff;
}

.section-cta {
    text-align: center;
    margin-top: 30px;
}

.btn-view-all {
    display: inline-block;
    padding: 12px 40px;
    border: 2px solid #FFD700;
    color: #FFD700;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: #FFD700;
    color: #1a1a1a;
}

/* === Info Section (bottom) === */
.info-section {
    padding: 60px 0;
    background: #111;
    border-top: 1px solid #222;
}

.info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.info-col h3 {
    font-size: 22px;
    color: #FFD700;
    margin-bottom: 15px;
}

.info-col p {
    color: #999;
    font-size: 15px;
    line-height: 1.7;
}

.cta-col {
    text-align: center;
    background: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #333;
}

/* === Page Banner (category/single) === */
.page-banner {
    background: linear-gradient(135deg, #CC0000, #8b0000);
    padding: 40px 0;
    margin-bottom: 30px;
}

.page-banner h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.page-banner p {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
    font-size: 16px;
}

/* === Content Layout === */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding-bottom: 60px;
}

.page-content-area {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 60px;
}

/* === Post Cards === */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.post-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.post-card-img {
    height: 200px;
    overflow: hidden;
}

.post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-card-body {
    padding: 20px;
}

.post-card-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.post-card-meta i {
    margin-right: 4px;
    color: #FFD700;
}

.post-card-meta a {
    color: #999;
}

.post-card-meta a:hover {
    color: #FFD700;
}

.post-card-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

.post-card-title a:hover {
    color: #FFD700;
}

.post-card-excerpt {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.btn-read-more {
    display: inline-block;
    padding: 6px 20px;
    background: transparent;
    border: 1px solid #FFD700;
    color: #FFD700;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background: #FFD700;
    color: #1a1a1a;
}

/* No posts */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #1a1a1a;
    border-radius: 8px;
}

.no-posts h2 {
    color: #FFD700;
    margin-bottom: 10px;
}

.no-posts p {
    color: #999;
    margin-bottom: 20px;
}

/* === Single Post === */
.breadcrumb {
    padding: 15px 0;
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #FFD700;
}

.breadcrumb span {
    color: #999;
}

.single-post {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 30px;
}

.post-header {
    margin-bottom: 25px;
}

.post-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 14px;
    flex-wrap: wrap;
}

.post-meta i {
    margin-right: 5px;
    color: #FFD700;
}

.post-meta a {
    color: #999;
}

.post-meta a:hover {
    color: #FFD700;
}

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

.post-featured-img img {
    width: 100%;
    border-radius: 8px;
}

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

.post-content p {
    margin-bottom: 20px;
}

.post-content h2,
.post-content h3 {
    color: #FFD700;
    margin: 30px 0 15px;
}

.post-content a {
    color: #FFD700;
    text-decoration: underline;
}

.post-content img {
    border-radius: 8px;
    margin: 20px 0;
    max-width: 100%;
}

.post-content blockquote {
    border-left: 4px solid #FFD700;
    padding: 15px 20px;
    background: rgba(255, 215, 0, 0.05);
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
    font-style: italic;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content ul li {
    list-style: disc;
    margin-bottom: 8px;
    color: #ccc;
}

.post-content ol li {
    list-style: decimal;
    margin-bottom: 8px;
    color: #ccc;
}

.page-links {
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #333;
}

.page-links a {
    display: inline-block;
    padding: 4px 12px;
    background: #222;
    color: #FFD700;
    border-radius: 4px;
    margin: 0 4px;
}

/* Post Tags */
.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.post-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: #222;
    color: #FFD700;
    border-radius: 4px;
    margin: 0 4px 6px 0;
    font-size: 13px;
}

.post-tags a:hover {
    background: #FFD700;
    color: #1a1a1a;
}

.tags-label {
    color: #FFD700;
    font-weight: 600;
    margin-right: 8px;
}

/* === Related Posts === */
.related-posts {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.related-posts h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #FFD700;
}

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

.related-card {
    background: #222;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-3px);
}

.related-card-img {
    height: 120px;
    overflow: hidden;
}

.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card-body {
    padding: 12px;
}

.related-card-body h4 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.related-card-body h4 a {
    color: #fff;
}

.related-card-body h4 a:hover {
    color: #FFD700;
}

.related-card-body .post-date {
    font-size: 12px;
    color: #999;
}

/* === Sidebar === */
.sidebar {
    min-width: 0;
}

.widget {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #CC0000;
    color: #fff;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #222;
}

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

.widget ul li a {
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: #FFD700;
}

.cat-count {
    float: right;
    color: #666;
    font-size: 12px;
}

.widget-post-date {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 3px;
}

.widget .search-form {
    display: flex;
}

.widget .search-field {
    flex: 1;
    padding: 10px;
    background: #222;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
}

.widget .search-field:focus {
    border-color: #FFD700;
}

.widget .search-submit {
    padding: 10px 15px;
    background: #CC0000;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.widget .search-submit:hover {
    background: #a00;
}

/* === Pagination === */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    background: #1a1a1a;
    color: #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #CC0000;
    color: #fff;
}

/* === 404 Page === */
.error-404 {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #0d0d0d 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-404 .container {
    width: 100%;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 120px;
    font-weight: 900;
    color: #CC0000;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(204, 0, 0, 0.5);
}

.error-title {
    font-size: 32px;
    color: #fff;
    margin-bottom: 15px;
}

.error-message {
    color: #999;
    font-size: 16px;
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.error-search {
    display: flex;
    max-width: 400px;
    width: 100%;
}

.error-search .search-field {
    flex: 1;
    padding: 12px 16px;
    background: #222;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
}

.error-search .search-submit {
    padding: 12px 20px;
    background: #CC0000;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
}

.error-search .search-submit:hover {
    background: #a00;
}

/* Inline search in no-results */
.inline-search {
    display: flex;
    max-width: 400px;
    margin: 20px auto 0;
}

.inline-search .search-field {
    flex: 1;
    padding: 10px;
    background: #222;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.inline-search .search-submit {
    padding: 10px 20px;
    background: #CC0000;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* === Footer === */
.site-footer {
    background: #111;
    border-top: 2px solid #333;
    margin-top: 60px;
}

.footer-sponsors {
    padding: 30px 0;
    border-bottom: 1px solid #222;
    overflow-x: auto;
}

.sponsors-scroll {
    display: flex;
    gap: 15px;
    white-space: nowrap;
    padding: 10px 0;
    animation: scrollSponsors 30s linear infinite;
}

@keyframes scrollSponsors {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.sponsor-item {
    padding: 10px 20px;
    background: #1a1a1a;
    border-radius: 4px;
    color: #999;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.sponsor-item:hover {
    color: #FFD700;
    border-color: #FFD700;
}

.footer-main {
    padding: 40px 0;
}

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

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFD700;
}

.footer-col p {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #999;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #FFD700;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #222;
    border-radius: 50%;
    color: #999;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #CC0000;
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid #222;
    text-align: center;
}

.footer-badges {
    margin-bottom: 15px;
}

.age-badge {
    width: 50px;
    height: auto;
    display: inline-block;
}

.copyright {
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
}

.age-disclaimer {
    color: #666;
    font-size: 12px;
}

/* === Utility Classes === */
.text-center { text-align: center; }
.text-gold { color: #FFD700; }
.text-red { color: #CC0000; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* === WordPress Generated Classes === */
.alignleft { float: left; margin-right: 20px; margin-bottom: 20px; }
.alignright { float: right; margin-left: 20px; margin-bottom: 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: 20px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: #999; padding: 5px 0; }
.gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery-item { flex: 1 1 200px; }
.gallery-icon img { width: 100%; border-radius: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
