/*
Theme Name: UptownAces.Casino
Theme URI: https://uptownaces.casino
Author: Your Name
Author URI: https://uptownaces.casino
Description: UptownAces.Casin theme - uptown
Version: 1.0
License: GPL
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: generatepress
Text Domain: generatepress-child
*/

/* ==========================================================================
   СОВРЕМЕННЫЙ ДИЗАЙН БОНУСНОЙ КАРТОЧКИ СО ВСЕМИ ПОЛЯМИ
   ========================================================================== */

.bonus-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    margin: 30px 0;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.bonus-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}

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

/* Заголовок карточки */
.card-header {
    background: #f8f9fa;
    padding: 30px 40px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #e5e7eb;
}

/* Убираем старые декоративные элементы */
.card-header::after {
    display: none;
}

/* Сумма бонуса */
.bonus-amount {
    font-size: 48px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 15px 0;
    display: block;
    text-shadow: none;
    filter: none;
    line-height: 1.2;
}

/* Тип бонуса - желтый бейдж как в примере */
.bonus-type-badge {
    background: #f7cc4b;
    color: #1f2937;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 2px 10px rgba(247, 204, 75, 0.25);
}

/* Тело карточки */
.card-body {
    padding: 40px;
    background: #ffffff;
}

.card-body::before {
    display: none;
}

/* Блок с бонус кодом */
.bonus-code-wrapper {
    background: #f0f4f8;
    border: 2px dashed #3b82f6;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin: 0 0 30px 0;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.bonus-code-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

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

.bonus-code-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bonus-code {
    font-size: 28px;
    font-weight: 700;
    color: #3b82f6;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    position: relative;
    z-index: 1;
    text-shadow: none;
}

/* Сетка информации */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Информационные блоки */
.info-item {
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: block;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.info-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Иконки для каждого поля */
.info-label::before {
    content: '';
    width: 32px;
    height: 32px;
    background: #e5e7eb;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.info-item:has(.info-label:contains("Player Category")) .info-label::before { content: '👤'; }
.info-item:has(.info-label:contains("Wagering")) .info-label::before { content: '🎰'; }
.info-item:has(.info-label:contains("Maximum Cashout")) .info-label::before { content: '💸'; }
.info-item:has(.info-label:contains("Minimum Deposit")) .info-label::before { content: '💰'; }
.info-item:has(.info-label:contains("Valid Games")) .info-label::before { content: '🎮'; }

.info-value {
    font-size: 18px;
    color: #1f2937;
    font-weight: 600;
    margin-left: 40px;
}

/* Описание */
.description-box {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    color: #1e40af;
    line-height: 1.8;
    font-size: 15px;
}

.description-box strong {
    color: #1e3a8a;
}

/* Секция с кнопкой */
.cta-section {
    text-align: center;
    padding: 30px 0;
}

/* Основная CTA кнопка - желтая как в примере */
.cta-button {
    display: inline-block;
    background: #f7cc4b;
    color: #1f2937;
    padding: 18px 50px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 204, 75, 0.3);
    border: none;
}

.cta-button:hover {
    background: #f9d86b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 204, 75, 0.4);
    color: #1f2937;
    text-decoration: none;
}

/* Срок действия */
.expiry-notice {
    background: #fef3c7;
    color: #92400e;
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #fcd34d;
}

/* Условия */
.terms-notice {
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    margin-top: 20px;
    padding: 0 20px;
    opacity: 1;
}

/* ==========================================================================
   КОМПАКТНЫЕ КАРТОЧКИ ДЛЯ ШОРТКОДА - ТЕМНЫЙ СТИЛЬ
   ========================================================================== */

/* Опционально: темный фон для всего контейнера */
.latest-bonuses-container {
    background: #011623;
    padding: 40px 20px;
    border-radius: 20px;
    margin: 40px 0;
}

/* Альтернатива: без темного фона */
.latest-bonuses-container.no-background {
    background: transparent;
    padding: 0;
}

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

.compact-bonus-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
    overflow: visible;
    min-height: auto;
    position: relative;
}

.compact-bonus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

/* Заголовок компактной карточки */
.compact-card-header {
    padding: 0;
    background: none;
    text-align: center;
    margin-bottom: 20px;
    min-height: auto;
    display: block;
}

.compact-bonus-amount {
    font-size: 42px;
    font-weight: 900;
    color: #011623;
    margin-bottom: 15px;
    display: block;
    text-shadow: none;
    line-height: 1;
}

.compact-bonus-type {
    background: #f7cc4b;
    color: #011623;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(247, 204, 75, 0.3);
}

/* Тело компактной карточки */
.compact-card-body {
    padding: 0;
    background: transparent;
}

/* Скрываем заголовок поста в компактных карточках */
.compact-bonus-title {
    display: none;
}

/* Компактный блок с кодом */
.compact-bonus-code {
    background: #f8f9fa;
    border: 2px dashed #3b82f6;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Анимация мерцания для бонус кода */
.compact-bonus-code::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.code-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.code-value {
    font-size: 20px;
    font-weight: 700;
    color: #3b82f6;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-shadow: none;
    position: relative;
    z-index: 1;
}

/* Вейджер в компактной карточке */
.compact-wager {
    background: #f3f4f6;
    color: #374151;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border: none;
    margin-bottom: 20px;
}

/* Кнопки действий */
.compact-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.compact-cta-button {
    flex: 1;
    background: #f7cc4b;
    color: #011623;
    padding: 15px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(247, 204, 75, 0.3);
}

.compact-cta-button:hover {
    background: #f9d86b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 204, 75, 0.4);
    color: #011623;
    text-decoration: none;
}

.compact-read-more {
    flex: 1;
    background: transparent;
    color: transparent;
    padding: 15px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: default;
    pointer-events: none;
}

/* Когда кнопка Details активна (есть ссылка) */
.compact-read-more[href]:not([href=""]) {
    background: #ffffff;
    color: #3b82f6;
    border-color: #3b82f6;
    cursor: pointer;
    pointer-events: auto;
}

.compact-read-more[href]:not([href=""]):hover {
    background: #3b82f6;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Альтернативный вариант - полностью скрыть неактивную кнопку */
.compact-read-more:not([href]),
.compact-read-more[href=""] {
    display: none;
}

/* Когда кнопка Details скрыта, GET BONUS занимает всю ширину */
.compact-actions:not(:has(.compact-read-more[href]:not([href=""]))) .compact-cta-button {
    flex: 1 1 100%;
}

.compact-expiry {
    background: #fef3c7;
    color: #92400e;
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.compact-expiry::before {
    content: '⏰';
    font-size: 16px;
}

/* ==========================================================================
   АДАПТИВНОСТЬ
   ========================================================================== */

/* Стиль для синей кнопки Details как в примере */
.compact-read-more[href]:not([href=""]) {
    background: #4F7DF3;
    color: #ffffff;
    border: none;
}

.compact-read-more[href]:not([href=""]):hover {
    background: #3A68E0;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 125, 243, 0.3);
}

@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .latest-bonuses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .card-header {
        padding: 25px;
    }
    
    .card-body {
        padding: 25px;
    }
    
    .bonus-amount {
        font-size: 36px;
    }
    
    .bonus-code {
        font-size: 24px;
    }
    
    .info-grid {
        gap: 12px;
    }
    
    .info-item {
        padding: 15px 20px;
    }
    
    .info-label {
        font-size: 12px;
    }
    
    .info-value {
        font-size: 16px;
        margin-left: 35px;
    }
    
    .latest-bonuses-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cta-button {
        padding: 16px 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .bonus-card {
        margin: 20px 0;
    }
    
    .card-header {
        padding: 20px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .bonus-amount {
        font-size: 32px;
    }
    
    .bonus-type-badge {
        font-size: 12px;
        padding: 8px 20px;
    }
    
    .bonus-code-wrapper {
        padding: 20px;
    }
    
    .bonus-code {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .info-label::before {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .info-value {
        font-size: 15px;
        margin-left: 32px;
    }
    
    .description-box {
        padding: 20px;
        font-size: 14px;
    }
    
    .cta-button {
        padding: 14px 35px;
        font-size: 15px;
    }
    
    .compact-bonus-card {
        margin-bottom: 15px;
    }
    
    .compact-card-header {
        padding: 15px;
    }
    
    .compact-card-body {
        padding: 15px;
    }
    
    .compact-bonus-amount {
        font-size: 24px;
    }
    
    .compact-bonus-title {
        font-size: 16px;
    }
    
    .compact-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .compact-cta-button,
    .compact-read-more {
        width: 100%;
        padding: 12px;
    }
}

/* ==========================================================================
   СТИЛИ ДЛЯ АРХИВОВ
   ========================================================================== */

.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: 36px;
}

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

/* В архивах скрываем некоторые поля для экономии места */
.archive .description-box,
.blog .description-box,
.archive .terms-notice,
.blog .terms-notice {
    display: none;
}

/* ==========================================================================
   АНИМАЦИИ И ЭФФЕКТЫ
   ========================================================================== */

/* Плавное появление */
.bonus-card,
.compact-bonus-card {
    opacity: 0;
    animation: fadeInUp 0.4s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Задержка анимации для элементов списка */
.compact-bonus-card:nth-child(1) { animation-delay: 0.1s; }
.compact-bonus-card:nth-child(2) { animation-delay: 0.2s; }
.compact-bonus-card:nth-child(3) { animation-delay: 0.3s; }

/* ==========================================================================
   ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ
   ========================================================================== */

/* Сглаживание шрифтов */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bonus-card,
.compact-bonus-card {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* Фокус для доступности */
.cta-button:focus,
.compact-cta-button:focus,
.compact-read-more:focus {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

/* Состояние загрузки */
.bonus-card.loading {
    position: relative;
    overflow: hidden;
}

.bonus-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: loading 1.5s infinite;
}

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

/* Печать */
@media print {
    .bonus-card {
        box-shadow: none;
        border: 2px solid #e5e7eb;
        page-break-inside: avoid;
    }
    
    .cta-button,
    .compact-cta-button,
    .compact-read-more {
        border: 2px solid currentColor;
    }
    
    .bonus-code-wrapper::before {
        display: none;
    }
}