/**
 * Bolivar Theme - Custom Styles
 * @package Bolivar_Theme
 */

/* ========================================
   BANNER & SHAPE DIVIDERS
   ======================================== */

.banner-section {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    padding: 100px 0 150px;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 86, 191, 0.8) 0%, rgba(10, 10, 10, 0.95) 100%);
    z-index: 1;
}

.banner-section .container {
    position: relative;
    z-index: 2;
}

.banner-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 215, 0, 0.2);
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid var(--primary-color);
}

.page-banner .banner-image {
    max-width: 100%;
    margin: 0 auto 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.page-banner .banner-image img {
    width: 100%;
    height: auto;
    display: block;
}

.shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
    fill: var(--dark-bg);
}

/* ========================================
   SECTION BADGES
   ======================================== */

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--darkest-bg);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 15px;
}

/* ========================================
   GLOW BUTTONS
   ======================================== */

.btn-glow {
    display: inline-block;
    padding: 14px 35px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    color: var(--darkest-bg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 0 80px rgba(255, 215, 0, 0.3);
    color: var(--darkest-bg);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-glow.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-glow.btn-lg {
    padding: 18px 45px;
    font-size: 1.125rem;
}

.btn-outline {
    display: inline-block;
    padding: 14px 35px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: var(--primary-color);
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--darkest-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

/* ========================================
   PROMO SLIDER
   ======================================== */

.promo-section {
    padding: 40px 0;
    background: var(--darker-bg);
}

.promo-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.promo-slider::-webkit-scrollbar {
    height: 6px;
}

.promo-slider::-webkit-scrollbar-track {
    background: var(--dark-bg);
    border-radius: 3px;
}

.promo-slider::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.promo-slide {
    flex: 0 0 auto;
    width: 350px;
    scroll-snap-align: start;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.promo-slide:hover {
    transform: scale(1.02);
}

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

/* ========================================
   GAMES RANKING LIST
   ======================================== */

.games-ranking-section {
    background: var(--darker-bg);
}

.games-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-rank-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--darkest-bg) 0%, rgba(26, 26, 46, 0.8) 100%);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.game-rank-card:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game-rank-card.top-three {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, var(--darkest-bg) 100%);
    border-color: rgba(255, 215, 0, 0.3);
}

.rank-number {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
    background: var(--dark-bg);
    border-radius: 50%;
    flex-shrink: 0;
}

.rank-number.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--darkest-bg);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.rank-number.silver {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: var(--darkest-bg);
}

.rank-number.bronze {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: white;
}

.game-rank-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--dark-bg);
}

.game-rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-placeholder-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
    color: var(--primary-color);
}

.game-placeholder-icon svg {
    width: 30px;
    height: 30px;
}

.game-rank-info {
    flex: 1;
    min-width: 0;
}

.game-rank-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-provider {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.game-rank-rtp {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 20px;
}

.game-rank-rtp .rtp-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.game-rank-rtp .rtp-value {
    font-size: 1rem;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 20px;
}

.game-rank-actions {
    flex-shrink: 0;
}

/* ========================================
   GAMES GRID
   ======================================== */

.games-grid-section {
    background: var(--dark-bg);
}

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

.game-card {
    background: var(--darkest-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.2);
}

.game-thumbnail {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--darker-bg);
}

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

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

.game-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
    color: var(--primary-color);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--darkest-bg);
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    transform: translateY(20px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.game-card:hover .btn-play {
    transform: translateY(0);
}

.btn-play:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.7);
    color: var(--darkest-bg);
}

.btn-play svg {
    width: 18px;
    height: 18px;
}

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

.game-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-rtp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rtp-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
}

.rtp-value {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--darker-bg);
}

.rtp-high {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.15);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.rtp-medium {
    color: var(--primary-color);
    background: rgba(255, 215, 0, 0.15);
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features-section .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-card {
    background: var(--darkest-bg);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--darkest-bg);
}

.feature-icon svg {
    stroke: var(--darkest-bg);
}

.feature-card h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--darkest-bg);
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--darkest-bg);
    opacity: 0.8;
    margin-bottom: 30px;
}

.cta-section .btn-glow {
    background: var(--darkest-bg);
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-section .btn-glow:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

/* ========================================
   PAGE CONTENT
   ======================================== */

.page-content-section {
    padding: 50px 0 70px;
}

.page-content-section .page-body {
    max-width: 900px;
    margin: 0 auto;
}

.page-content-section .page-body h2,
.page-content-section .page-body h3,
.page-content-section .page-body h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content-section .page-body p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.page-content-section .page-body ul,
.page-content-section .page-body ol {
    color: var(--text-muted);
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.page-content-section .page-body li {
    margin-bottom: 0.5rem;
}

.page-content-section .page-body a {
    color: var(--primary-color);
}

.page-content-section .page-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

/* ========================================
   OTHER COMPONENTS
   ======================================== */

/* Post Category Badge */
.post-category {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-color);
    color: var(--darkest-bg);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 15px;
    text-decoration: none;
    transition: var(--transition);
}

/* Single Post */
.single-post-thumbnail {
    margin-bottom: 40px;
}

.single-post-thumbnail img {
    width: 100%;
    border-radius: var(--border-radius);
}

/* Post Tags */
.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-tags a {
    display: inline-block;
    padding: 5px 12px;
    margin: 5px 5px 5px 0;
    background: var(--darker-bg);
    color: var(--text-muted);
    font-size: 0.875rem;
    border-radius: 4px;
    transition: var(--transition);
}

.post-tags a:hover {
    background: var(--primary-color);
    color: var(--darkest-bg);
}

/* Author Box */
.author-box {
    display: flex;
    gap: 25px;
    margin-top: 40px;
    padding: 30px;
    background: var(--darker-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.author-avatar img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.author-info h4 {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 5px;
    font-weight: 400;
}

.author-info h5 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-navigation a {
    display: block;
    padding: 20px;
    background: var(--darker-bg);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.post-navigation a:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.nav-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    color: var(--text-color);
    font-weight: 600;
}

.nav-next {
    text-align: right;
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
}

.related-posts h3 {
    color: var(--text-color);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

/* Error 404 */
.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    max-width: 500px;
}

.error-title {
    font-size: 8rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .features-section .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .banner-section {
        padding: 80px 0 120px;
        min-height: auto;
    }

    .shape-divider svg {
        height: 50px;
    }

    .game-rank-card {
        flex-wrap: wrap;
        gap: 15px;
    }

    .game-rank-info {
        flex: 1 1 40%;
    }

    .game-rank-rtp {
        flex-direction: row;
        padding: 0;
    }

    .game-rank-actions {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .features-section .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .promo-slide {
        width: 280px;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .nav-next {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .game-info {
        padding: 10px;
    }

    .game-title {
        font-size: 0.75rem;
    }

    .game-rtp {
        flex-direction: column;
        gap: 4px;
    }

    .btn-play {
        padding: 10px 16px;
        font-size: 0.75rem;
    }

    .rank-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .game-rank-thumb {
        width: 50px;
        height: 50px;
    }

    .error-title {
        font-size: 5rem;
    }
}
