/*
 * VIP Casino Theme for Bludit
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary-bg: linear-gradient(135deg, #0a0a0a, #1a1a1a, #0f0f0f);
    --text-color: #e8e8e8;
    --text-color-light: #ffffff;
    --link-color: #d4af37;
    --link-hover-color: #ffd700;
    --accent-color: #8b7355;
    --bonus-color: #ffd700;
    --card-bg: #1a1a1a;
    --navbar-bg: rgba(0, 0, 0, 0.98);
    --button-text-color: #000000;
    --footer-bg: rgba(0, 0, 0, 0.98);
    --container-max-width: 1140px;
    --gold-gradient: linear-gradient(135deg, #d4af37, #ffd700, #d4af37);
}

body {
    background: var(--primary-bg);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    letter-spacing: 0.01em;
}

/* --- HEADER & NAVBAR (чорний з золотими акцентами) --- */
.navbar {
    background-color: var(--navbar-bg) !important;
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    border-bottom: 2px solid var(--link-color);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    position: sticky;
    top: 0;
    z-index: 1055;
}

.navbar > .container,
.navbar > .navbar-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
}
.navbar-brand img {
    max-height: 52px !important;
    width: auto !important;
    margin-right: 12px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 20px;
}

.navbar .nav-link {
    color: #f0f0f0 !important;
    font-weight: 600;
    font-size: 1.02rem;
    padding: 8px 16px;
    border-radius: 6px;
    background: none;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
    letter-spacing: 0.02em;
    position: relative;
}

/* --- Hover (золотий акцент) --- */
.navbar .nav-link:hover {
    color: var(--link-color) !important;
    background: rgba(212, 175, 55, 0.1);
}
/* --- Active --- */
.navbar .nav-item.active .nav-link,
.navbar .nav-link.active {
    color: var(--link-color) !important;
    background: rgba(212, 175, 55, 0.15);
    font-weight: 700;
}

.login-button-wrapper {
    display: flex;
    gap: 10px;
    margin-left: 26px;
    align-items: center;
}

.btn-login, .btn-register {
    padding: 9px 22px;
    border-radius: 8px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    border: 2px solid transparent;
    margin-left: 0;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    letter-spacing: 0.8px;
}
.btn-login { 
    background: var(--gold-gradient);
    color: #000000 !important; 
    border-color: var(--link-color);
}
.btn-register { 
    background: transparent;
    color: var(--link-color) !important;
    border-color: var(--link-color);
    font-weight: 600;
}
.btn-login:hover { 
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    transform: translateY(-2px); 
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.5);
}
.btn-register:hover { 
    background: var(--gold-gradient);
    color: #000000 !important;
    transform: translateY(-2px); 
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.5);
}

/* --- Кнопка-гамбургер --- */
.navbar-toggler {
    border: 2px solid var(--link-color);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: transparent;
    transition: all 0.3s;
}
.navbar-toggler:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--bonus-color);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28212, 175, 55, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Мобільна версія --- */
@media (max-width: 991.98px) {
    .navbar > .container,
    .navbar > .navbar-container { 
        flex-wrap: wrap;
        padding: 0.8rem 1rem; 
        justify-content: center;
    }
    
    .navbar-brand { 
        order: 1;
        width: 100%;
        justify-content: center;
        margin-bottom: 12px;
        margin-right: 0;
    }
    
    .login-button-wrapper { 
        order: 2;
        margin-left: 0; 
        gap: 10px;
        width: 100%;
        justify-content: center;
        margin-bottom: 12px;
    }
    
    .navbar-toggler {
        order: 3;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .navbar-collapse {
        order: 4;
        width: 100%;
    }
    
    .navbar-nav { 
        gap: 0;
        padding-left: 0; 
        margin: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .navbar .nav-link {
        text-align: center;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }
    
    .navbar .nav-link:last-child {
        border-bottom: none;
    }
    
    .btn-login, .btn-register {
        flex: 1;
        max-width: 180px;
    }
}

/* --- Контейнер контенту --- */
.container,
.content-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* --- Зміст картки (темний фон з золотими акцентами) --- */
.post-card, .page-card, #faqAccordion .card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid var(--link-color);
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.1);
    color: var(--text-color);
}
.post-card h1,
.post-card h2,
.post-card h3,
.page-card h1,
.page-card h2,
.page-card h3 {
    color: var(--link-color);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}
.post-card h2 a { 
    color: var(--bonus-color); 
    transition: color 0.2s ease;
    font-family: 'Playfair Display', serif;
}
.post-card h2 a:hover { color: var(--link-hover-color); }
.post-card p,
.page-card p,
.post-content,
.page-card .content {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1.02rem;
}

.casino-card { 
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    border: 2px solid var(--link-color); 
    border-radius: 12px; 
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}
.casino-title { 
    color: var(--link-color); 
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}
.casino-bonus { 
    color: var(--bonus-color) !important; 
    font-weight: 900; 
    font-size: 1.15rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}
.btn-casino {
    background: var(--gold-gradient);
    color: #000000 !important;
    border-radius: 8px; 
    font-weight: 700; 
    padding: 12px 28px;
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid var(--link-color);
}
.btn-casino:hover {
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.6);
}

/* --- Адаптивні таблиці --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.post-content table {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid var(--link-color);
    border-radius: 12px; 
    overflow: hidden;
    width: 100%;
    min-width: 600px;
    box-sizing: border-box;
}
.post-content thead th {
    background: var(--gold-gradient);
    border: none;
    color: #000000 !important;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    padding: 14px 12px;
}
.post-content td, .post-content th { 
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-color) !important; 
    padding: 12px;
    line-height: 1.6;
}
.post-content tbody tr:nth-of-type(odd) { 
    background-color: rgba(212, 175, 55, 0.05); 
}
.post-content tbody tr:hover { 
    background-color: rgba(212, 175, 55, 0.12); 
    transition: background-color 0.2s ease; 
}
@media (max-width: 767.98px) {
    .post-card, .page-card, #faqAccordion .card { padding: 1.5rem !important; font-size: 1rem; }
    .post-content table { min-width: 480px; font-size: 0.98rem; }
}

/* --- Адаптивність зображень --- */
.post-content img,
.page-card img,
.post-card img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
    object-fit: contain;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* --- Кнопка в контенті --- */
.content-button-wrapper{ 
    text-align: center; 
    margin: 3rem 0; 
}
.btn-content{
    display: inline-block; 
    background: var(--gold-gradient);
    color: #000000 !important; 
    text-decoration: none;
    font-weight: 800; 
    font-size: 1.05rem; 
    text-transform: uppercase; 
    padding: 14px 36px; 
    border-radius: 8px;
    transition: all 0.3s ease; 
    border: 2px solid var(--link-color);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4); 
    letter-spacing: 1px;
    font-family: 'Playfair Display', serif;
}
.btn-content:hover{
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.6);
}

/* --- FAQ (темний фон з золотими акцентами) --- */
#faqAccordion .card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid var(--link-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 0 15px rgba(212, 175, 55, 0.1);
    overflow: hidden;
}
#faqAccordion .card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding: 1rem 1.5rem;
    cursor: pointer;
}
#faqAccordion .card-header .btn-link {
    color: var(--link-color) !important;
    font-weight: 700;
    font-size: 1.08rem;
    text-align: left;
    background: none;
    border: none;
    width: 100%;
    padding: 0;
    outline: none;
    box-shadow: none;
    display: block;
    transition: color 0.2s;
    position: relative;
    font-family: 'Playfair Display', serif;
}
#faqAccordion .card-header .btn-link:hover,
#faqAccordion .card-header .btn-link:focus {
    color: var(--bonus-color) !important;
}
#faqAccordion .card-header .btn-link::after {
    content: '▼';
    float: right;
    color: var(--link-color);
    font-size: 0.95em;
    transition: transform 0.3s;
}
#faqAccordion .card-header.collapsed .btn-link::after {
    transform: rotate(-90deg);
    color: var(--accent-color);
}
#faqAccordion .card-body {
    background: transparent;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-color);
    font-size: 1rem;
    padding: 1.2rem 1.5rem 1.1rem 1.5rem;
    transition: background 0.18s;
    line-height: 1.7;
}

@media (max-width: 767.98px) {
    #faqAccordion .card-header { padding: 0.8rem 1rem; }
    #faqAccordion .card-header .btn-link { font-size: 1rem; }
    #faqAccordion .card-body { font-size: 0.98rem; padding: 0.9rem 1rem 0.8rem 1rem; }
}

/* --- Футер (чорний з золотою рамкою) --- */
.site-footer {
    background-color: var(--footer-bg);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    padding: 2.5rem 0;
    margin-top: 4rem;
    border-top: 2px solid var(--link-color);
    font-size: 0.92rem;
    text-align: center;
}

.site-footer .footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.footer-menu ul{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-menu ul li a{
    color: #e8e8e8; 
    text-decoration: none; 
    font-weight: 500; 
    transition: color 0.2s ease;
}
.footer-menu ul li a:hover{
    color: var(--link-color);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* --- Фіксований банер VIP Casino --- */
.ffb-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 95vw;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border: 2px solid var(--link-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(212, 175, 55, 0.4), 0 4px 16px rgba(0, 0, 0, 0.5);
    z-index: 1201;
    color: #f1f2f6;
    font-family: "Inter", sans-serif;
    padding: 1rem 2.8rem 1rem 1.25rem;
    display: none;
    animation: ffb-fade-in 0.5s ease-out forwards;
    transition: box-shadow 0.3s, transform 0.2s;
}

.ffb-banner:hover {
    box-shadow: 0 12px 40px 0 rgba(212, 175, 55, 0.5), 0 6px 20px rgba(255, 215, 0, 0.3);
    transform: translateX(-50%) translateY(-2px);
}

@keyframes ffb-fade-in {
    from { 
        opacity: 0; 
        transform: translateX(-50%) translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(-50%) translateY(0); 
    }
}

.ffb-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--link-color);
    font-family: "Playfair Display", serif;
    letter-spacing: 0.5px;
}

.ffb-banner .btn-primary {
    background: var(--gold-gradient);
    color: #000000 !important;
    border: 1px solid var(--link-color);
    border-radius: 8px;
    font-family: "Playfair Display", serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 10px 24px;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
    margin-left: 16px;
    transition: all 0.25s;
    letter-spacing: 0.8px;
}

.ffb-banner .btn-primary:hover {
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.ffb-close-btn {
    position: absolute;
    top: 10px;
    right: 13px;
    background: transparent;
    border: none;
    color: var(--link-color);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s, transform 0.2s;
    font-weight: 300;
}

.ffb-close-btn:hover {
    color: var(--bonus-color);
    transform: rotate(90deg);
}

/* Mobile адаптація банера */
@media (max-width: 620px) {
    .ffb-banner {
        padding: 0.8rem 2.4rem 0.8rem 0.9rem;
        font-size: 0.92rem;
        border-radius: 10px;
        min-width: 110px;
        bottom: 16px;
        max-width: 92vw;
    }
    
    .ffb-title { 
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .ffb-banner .btn-primary { 
        font-size: 0.88rem; 
        padding: 8px 16px; 
        margin-left: 10px;
        border-radius: 6px;
    }
    
    .ffb-close-btn { 
        font-size: 1.6rem; 
        top: 8px; 
        right: 10px; 
    }
}

@media (max-width: 400px) {
    .ffb-banner {
        padding: 0.7rem 2rem 0.7rem 0.8rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ffb-title {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .ffb-banner .btn-primary {
        margin-left: 0;
        width: 100%;
        margin-top: 8px;
    }
}
