/*
Theme Name: redstag.casino
Theme URI: https:/redstag.casino
Author: Your Name
Author URI: https://redstag.casino
Description: redstag.casino theme - Red Stag Light Background
Version: 1.0
License: GPL
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: generatepress
Text Domain: generatepress-child
*/

/* ==========================================================================
   Стили для бонусной карточки на светлом фоне
   Цветовая схема: #74020A #913A3A #AE726A #CCA99A #E9E1CA
   ========================================================================== */

.bonus-card {
    max-width: 100%;
    margin: 30px 0;
    background: #ffffff; /* Белый фон */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(116, 2, 10, 0.15), 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 2px solid #AE726A;
    transition: all 0.3s ease;
}

.bonus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(116, 2, 10, 0.25), 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #74020A;
}

/* Для single постов ограничиваем ширину */
.single .bonus-card {
    max-width: 800px;
}

.card-header {
    background: linear-gradient(135deg, #74020A 0%, #913A3A 25%, #AE726A 50%, #CCA99A 75%, #E9E1CA 100%);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Декоративные элементы казино */
.card-header::after {
    content: '🎰 🎲 🃏';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    opacity: 0.6;
    color: #E9E1CA;
}

.bonus-amount {
    font-size: 56px;
    font-weight: 900;
    color: #E9E1CA; /* Светлый цвет на темном градиенте */
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 2px 8px rgba(116, 2, 10, 0.8), 0 0 30px rgba(233, 225, 202, 0.4);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.bonus-type-badge {
    background: rgba(233, 225, 202, 0.95);
    backdrop-filter: blur(10px);
    color: #74020A;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(116, 2, 10, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 35px;
    background: #ffffff; /* Белый фон */
    position: relative;
}

.card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(174, 114, 106, 0.08), transparent);
    pointer-events: none;
}

.info-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.info-item {
    background: linear-gradient(135deg, rgba(233, 225, 202, 0.6) 0%, rgba(204, 169, 154, 0.4) 50%, rgba(174, 114, 106, 0.3) 100%);
    padding: 18px 25px;
    border-radius: 15px;
    border: 1px solid rgba(174, 114, 106, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.info-item:hover {
    background: linear-gradient(135deg, rgba(233, 225, 202, 0.8) 0%, rgba(204, 169, 154, 0.6) 50%, rgba(145, 58, 58, 0.4) 100%);
    border-color: #74020A;
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(116, 2, 10, 0.2);
}

.info-label {
    color: #74020A; /* Темный цвет для контраста */
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #913A3A; /* Темно-красный для значений */
    font-size: 18px;
    font-weight: bold;
    text-align: right;
}

.bonus-code-wrapper {
    background: linear-gradient(135deg, #74020A 0%, #913A3A 30%, #AE726A 70%, #CCA99A 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(116, 2, 10, 0.3);
    border: 1px solid rgba(174, 114, 106, 0.3);
}

.bonus-code-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(233, 225, 202, 0.15) 50%, transparent 70%);
    pointer-events: none;
}

.bonus-code-label {
    color: rgba(233, 225, 202, 0.95);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 600;
}

.bonus-code {
    font-size: 32px;
    font-weight: 900;
    color: #E9E1CA;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 20px rgba(233, 225, 202, 0.3);
    position: relative;
    z-index: 1;
}

.description-box {
    background: rgba(233, 225, 202, 0.6);
    border-left: 4px solid #74020A;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    color: #333333; /* Темный текст для читаемости */
    line-height: 1.8;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(174, 114, 106, 0.3);
}

.description-box strong {
    color: #74020A;
}

.cta-section {
    text-align: center;
    padding: 25px 0;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #74020A 0%, #913A3A 25%, #AE726A 75%, #CCA99A 100%);
    color: #E9E1CA;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(116, 2, 10, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(174, 114, 106, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 225, 202, 0.4), transparent);
    transition: left 0.5s;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(116, 2, 10, 0.4);
    color: #E9E1CA;
    text-decoration: none;
    background: linear-gradient(135deg, #CCA99A 0%, #AE726A 25%, #913A3A 75%, #74020A 100%);
    border-color: rgba(116, 2, 10, 0.5);
}

.cta-button:hover::before {
    left: 100%;
}

.expiry-notice {
    background: linear-gradient(135deg, rgba(116, 2, 10, 0.1) 0%, rgba(174, 114, 106, 0.15) 50%, rgba(204, 169, 154, 0.2) 100%);
    color: #74020A;
    padding: 18px;
    border-radius: 10px;
    text-align: center;
    margin-top: 25px;
    font-size: 15px;
    font-weight: 700;
    border: 1px solid rgba(116, 2, 10, 0.3);
}

.terms-notice {
    text-align: center;
    color: #913A3A;
    font-size: 13px;
    margin-top: 20px;
    padding: 0 20px;
    opacity: 0.8;
}

/* ==========================================================================
   Стили для компактных карточек бонусов (шорткод)
   ========================================================================== */

.latest-bonuses-container {
    margin: 40px 0;
    padding: 0;
}

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

.compact-bonus-card {
    background: #ffffff; /* Белый фон */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(116, 2, 10, 0.15), 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 2px solid #AE726A;
    transition: all 0.3s ease;
    height: auto;
    min-height: 280px;
}

.compact-bonus-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(116, 2, 10, 0.25), 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #74020A;
}

.compact-card-header {
    background: linear-gradient(135deg, #74020A 0%, #913A3A 25%, #AE726A 50%, #CCA99A 75%, #E9E1CA 100%);
    padding: 20px 15px;
    text-align: center;
    position: relative;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.compact-bonus-amount {
    font-size: 28px;
    font-weight: 900;
    color: #E9E1CA; /* Светлый на темном градиенте */
    text-shadow: 0 2px 6px rgba(116, 2, 10, 0.8), 0 0 20px rgba(233, 225, 202, 0.3);
    position: relative;
    z-index: 1;
    line-height: 1;
}

.compact-bonus-type {
    background: rgba(233, 225, 202, 0.95);
    backdrop-filter: blur(10px);
    color: #74020A;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(116, 2, 10, 0.3);
    position: relative;
    z-index: 1;
}

.compact-card-body {
    padding: 20px 15px;
    background: #ffffff; /* Белый фон */
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.compact-bonus-title {
    color: #333333; /* Темный цвет для читаемости */
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
}

.compact-bonus-title a {
    color: #333333;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    display: block;
}

.compact-bonus-title a:hover {
    color: #74020A;
}

.compact-bonus-code {
    background: linear-gradient(135deg, #74020A 0%, #913A3A 30%, #AE726A 70%, #CCA99A 100%);
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    margin: 8px 0;
    box-shadow: 0 4px 20px rgba(116, 2, 10, 0.2);
    border: 1px solid rgba(174, 114, 106, 0.3);
}

.code-label {
    color: rgba(233, 225, 202, 0.95);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 600;
    display: block;
}

.code-value {
    font-size: 18px;
    font-weight: 900;
    color: #E9E1CA;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.compact-wager {
    background: rgba(233, 225, 202, 0.6);
    color: #74020A; /* Темный текст */
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(174, 114, 106, 0.3);
    text-align: center;
}

.compact-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}

/* GET BONUS кнопка */
.compact-cta-button {
    flex: none;
    display: block;
    background: linear-gradient(135deg, #74020A 0%, #913A3A 25%, #AE726A 75%, #CCA99A 100%);
    color: #E9E1CA;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(116, 2, 10, 0.25);
    text-align: center;
    border: 1px solid rgba(174, 114, 106, 0.3);
}

.compact-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(116, 2, 10, 0.35);
    color: #E9E1CA;
    text-decoration: none;
    background: linear-gradient(135deg, #CCA99A 0%, #AE726A 25%, #913A3A 75%, #74020A 100%);
    border-color: rgba(116, 2, 10, 0.5);
}

/* DETAILS кнопка */
.compact-read-more {
    flex: none;
    display: block;
    background: rgba(233, 225, 202, 0.6);
    color: #74020A;
    padding: 12px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    border: 1px solid rgba(174, 114, 106, 0.4);
    transition: all 0.3s ease;
}

.compact-read-more:hover {
    background: rgba(204, 169, 154, 0.8);
    color: #74020A;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(174, 114, 106, 0.3);
    border-color: rgba(116, 2, 10, 0.4);
}

.compact-expiry {
    background: linear-gradient(135deg, rgba(116, 2, 10, 0.1) 0%, rgba(174, 114, 106, 0.15) 50%, rgba(204, 169, 154, 0.2) 100%);
    color: #74020A;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(116, 2, 10, 0.3);
}

/* ==========================================================================
   Адаптивность
   ========================================================================== */

@media (max-width: 768px) {
    .card-header {
        padding: 30px 20px;
    }
    
    .bonus-amount {
        font-size: 42px;
    }
    
    .card-body {
        padding: 25px;
    }
    
    .bonus-code {
        font-size: 24px;
    }
    
    .cta-button {
        padding: 15px 40px;
        font-size: 18px;
    }
    
    .latest-bonuses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .compact-bonus-amount {
        font-size: 24px;
    }
    
    .compact-card-header {
        padding: 18px 12px;
        min-height: 90px;
    }
    
    .compact-card-body {
        padding: 18px 12px;
    }
}

@media (max-width: 480px) {
    .card-body {
        padding: 20px;
    }
    
    .info-item {
        padding: 15px 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .info-value {
        text-align: left;
    }
    
    .bonus-amount {
        font-size: 36px;
    }
    
    .card-header::after {
        display: none;
    }
    
    .latest-bonuses-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .compact-bonus-card {
        min-height: 260px;
    }
    
    .compact-card-header {
        padding: 15px 10px;
        min-height: 80px;
    }
    
    .compact-bonus-amount {
        font-size: 22px;
    }
    
    .compact-bonus-type {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .compact-card-body {
        padding: 15px 10px;
    }
    
    .compact-bonus-title {
        font-size: 15px;
    }
    
    .code-value {
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    .compact-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .compact-cta-button,
    .compact-read-more {
        flex: none;
        padding: 10px 15px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .latest-bonuses-container {
        margin: 30px 0;
    }
    
    .compact-bonus-amount {
        font-size: 20px;
    }
    
    .compact-bonus-title {
        font-size: 14px;
    }
}

/* ==========================================================================
   Стили для архивов - более компактная версия
   ========================================================================== */

.archive .bonus-card,
.blog .bonus-card,
.search .bonus-card {
    margin: 20px 0;
}

.archive .card-header,
.blog .card-header,
.search .card-header {
    padding: 25px;
}

.archive .bonus-amount,
.blog .bonus-amount,
.search .bonus-amount {
    font-size: 42px;
}

.archive .card-body,
.blog .card-body,
.search .card-body {
    padding: 25px;
}

.archive .description-box,
.blog .description-box,
.archive .terms-notice,
.blog .terms-notice,
.archive .info-item:nth-child(n+4),
.blog .info-item:nth-child(n+4) {
    display: none;
}

/* ==========================================================================
   Дополнительные эффекты и улучшения для светлого фона
   ========================================================================== */

/* Простая анимация появления */
.bonus-card {
    opacity: 0;
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Hover эффект для всей карточки в архивах */
.archive article:hover .bonus-card,
.blog article:hover .bonus-card {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 50px rgba(116, 2, 10, 0.2);
}

/* Улучшенная типографика */
.bonus-card {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.bonus-amount,
.bonus-code,
.cta-button {
    font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
}

/* Тонкий эффект глубины для светлого фона */
.bonus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(174, 114, 106, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.card-header,
.card-body {
    position: relative;
    z-index: 1;
}