/* ==========================================================================
   Bầu Cua: Ngẫu Nhiên - Main Stylesheet
   Theme: Hoo Hey How dice game
   ========================================================================== */

/* ==========================================================================
   CSS Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #FFF8F0;
    color: #212121;
    line-height: 1.6;
}

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

a:hover {
    color: #B71C1C;
}

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    border: none;
    line-height: 1.5;
}

.btn:hover {
    color: #fff;
    text-decoration: none;
}

.btn-download {
    background: #4CAF50;
    color: #fff;
}

.btn-download:hover {
    background: #43A047;
    color: #fff;
}

.btn-login {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-register {
    background: #FFC107;
    color: #212121;
}

.btn-register:hover {
    background: #FFB300;
    color: #212121;
}

.btn-play {
    background: #2196F3;
    color: #fff;
    padding: 8px 20px;
    font-size: 0.8rem;
}

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

.btn-view-all {
    display: block;
    width: fit-content;
    margin: 30px auto 0;
    background: #C62828;
    color: #fff;
}

.btn-view-all:hover {
    background: #B71C1C;
    color: #fff;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: #C62828;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease, height 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    height: 60px;
}

.site-header.scrolled .header-inner {
    height: 60px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    transition: height 0.3s ease;
}

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

.site-logo .logo-text {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
    text-decoration: none;
}

.main-nav {
    display: flex;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.nav-menu a:hover {
    border-color: #FFC107;
    color: #FFC107;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle-icon {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    top: -8px;
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

.nav-toggle-icon::after {
    top: 8px;
}

.nav-toggle.active .nav-toggle-icon {
    background: transparent;
}

.nav-toggle.active .nav-toggle-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .nav-toggle-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #C62828, #B71C1C);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #FFC107;
    margin-bottom: 25px;
}

.hero-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.rating-stars {
    color: #FFC107;
    font-size: 1.6rem;
    letter-spacing: 3px;
}

.rating-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.rating-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ==========================================================================
   Section Titles
   ========================================================================== */
.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: #C62828;
    margin-bottom: 35px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #FFC107;
    border-radius: 2px;
}

/* ==========================================================================
   Slides Carousel
   ========================================================================== */
.slides-section {
    padding: 50px 0;
    background: #fff;
}

.slides-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.slide-item {
    display: none;
}

.slide-item:first-child {
    display: block;
}

.slide-item img {
    width: 100%;
    height: auto;
    display: block;
}

.slide-prev,
.slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slide-prev:hover,
.slide-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slide-prev {
    left: 10px;
}

.slide-next {
    right: 10px;
}

/* ==========================================================================
   Games Grid
   ========================================================================== */
.games-section {
    padding: 50px 0;
    background: #FFF8F0;
}

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

.game-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.game-title {
    font-size: 0.9rem;
    padding: 10px 5px;
    color: #212121;
    font-weight: 500;
}

.game-card .btn-play {
    margin-bottom: 10px;
}

/* ==========================================================================
   Posters Grid
   ========================================================================== */
.posters-section {
    padding: 50px 0;
}

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

.poster-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.poster-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.poster-overlay {
    position: absolute;
    inset: 0;
    background: rgba(198, 28, 28, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.poster-card:hover .poster-overlay {
    opacity: 1;
}

.poster-overlay .btn {
    background: #FFC107;
    color: #212121;
}

.poster-overlay .btn:hover {
    background: #FFB300;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    padding: 50px 0;
    background: #fff;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 15px;
}

.about-content h3 {
    color: #C62828;
    margin: 25px 0 15px;
    font-size: 1.3rem;
    font-weight: 700;
}

.features-list,
.rules-list {
    list-style: none;
    padding: 0;
}

.features-list li,
.rules-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    border-bottom: 1px solid #eee;
}

.features-list li::before {
    content: '\2713';
    color: #4CAF50;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.rules-list li::before {
    content: '\25B6';
    color: #C62828;
    position: absolute;
    left: 0;
    font-size: 0.7rem;
    top: 16px;
}

/* ==========================================================================
   Recent Posts & Post Cards
   ========================================================================== */
.recent-posts {
    padding: 50px 0;
    background: #FFF8F0;
}

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

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-link:hover {
    color: inherit;
}

.post-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-thumb {
    overflow: hidden;
}

.post-title {
    padding: 15px 15px 5px;
    font-size: 1.1rem;
    color: #212121;
    font-weight: 600;
}

.post-meta {
    padding: 0 15px 15px;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.post-excerpt {
    padding: 0 15px 15px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* ==========================================================================
   Archive Page
   ========================================================================== */
.archive-header {
    background: linear-gradient(135deg, #C62828, #B71C1C);
    padding: 50px 0;
    text-align: center;
}

.archive-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.posts-section {
    padding: 40px 0;
}

/* ==========================================================================
   Single Post Page
   ========================================================================== */
.single-post {
    padding: 50px 0;
}

.single-post .container {
    max-width: 800px;
}

.single-post .post-title {
    font-size: 2.2rem;
    color: #212121;
    font-weight: 700;
    margin-bottom: 15px;
    padding: 0;
}

.single-post .post-meta {
    padding: 0;
    margin-bottom: 15px;
}

.post-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

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

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

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

.post-content h2 {
    font-size: 1.6rem;
}

.post-content h3 {
    font-size: 1.3rem;
}

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

.post-content blockquote {
    border-left: 4px solid #C62828;
    padding: 10px 20px;
    margin: 20px 0;
    background: #FFF8F0;
    font-style: italic;
}

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

.post-content ul, .post-content ol {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 20px;
}
.post-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}
.post-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #C62828;
}
.post-content ol {
    counter-reset: ol-counter;
}
.post-content ol li {
    counter-increment: ol-counter;
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
}
.post-content ol li::before {
    content: counter(ol-counter) '.';
    position: absolute;
    left: 0;
    color: #C62828;
    font-weight: 700;
}

.single-post .post-thumb img {
    width: 100%;
    border-radius: 10px;
    margin: 15px 0 25px;
    height: auto;
}

.single-post .post-thumb {
    overflow: hidden;
    margin: 15px 0 25px;
}

.single-post .btn-download {
    margin-top: 25px;
}

.related-posts {
    padding: 40px 0;
    background: #FFF8F0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #B71C1C;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 0;
}

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

.footer-widget h3,
.widget-title {
    color: #FFC107;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 700;
}

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

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

.footer-widget ul li a,
.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover,
.footer-widget a:hover {
    color: #FFC107;
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 25px;
}

.footer-bottom a {
    display: inline-block;
    margin-bottom: 10px;
}

.disclaimer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    max-width: 800px;
    margin: 15px auto 0;
    line-height: 1.6;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination,
.wp-pagination {
    text-align: center;
    margin: 40px 0;
}

.pagination .page-numbers,
.page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 3px;
    border-radius: 4px;
    background: #fff;
    color: #C62828;
    text-decoration: none;
    border: 1px solid #ddd;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
}

.pagination .page-numbers.current,
.page-numbers.current {
    background: #C62828;
    color: #fff;
    border-color: #C62828;
}

.pagination a.page-numbers:hover,
a.page-numbers:hover {
    background: #f5f5f5;
    color: #C62828;
}

.pagination .page-numbers.dots,
.page-numbers.dots {
    border: none;
    background: transparent;
}

/* ==========================================================================
   Misc
   ========================================================================== */
.no-posts {
    text-align: center;
    padding: 40px 0;
    color: #666;
    font-size: 1.1rem;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 2rem;
    color: #212121;
    margin-bottom: 20px;
}

.site-main {
    min-height: 400px;
}
