/* ========================================
   Casino Cards Section Styles
   ======================================== */

/* Section Header */
.recommended-casinos {
    margin: 60px auto 7px auto;
    max-width: 990px;
    padding: 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-70);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-left: none !important;
    padding-left: 0 !important;
}

@media (max-width: 767px) {
    .section-title {
        padding: 0 24px;
    }
}

.section-title i {
    color: #f5813d;
    font-size: 28px;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--grey-70);
    margin-bottom: 40px;
}

@media (max-width: 767px) {
    .section-subtitle {
        padding: 0 24px;
    }
}

/* Cards Grid */
.casino-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 767px) {
    .casino-cards {
        padding: 0 24px;
    }
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .casino-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .casino-card {
        order: 0 !important;
    }
}

/* Desktop: 3 columns, normal left-to-right order */
@media (min-width: 1024px) {
    .casino-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card Base Styles */
.casino-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    min-width: 320px;
    justify-self: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.casino-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(118, 95, 245, 0.2);
    border-color: var(--primary-60);
}

/* 20bet Featured Card - Shimmering Border Animation */
.casino-card:first-child {
    border: 2px solid #FFD700;
    animation: shimmeringBorder 3s ease-in-out infinite;
}

@keyframes shimmeringBorder {
    0%, 100% {
        box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.08),
            0 0 20px rgba(255, 215, 0, 0.4),
            0 0 40px rgba(255, 215, 0, 0.2);
        border-color: #FFD700;
    }
    50% {
        box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.08),
            0 0 30px rgba(255, 215, 0, 0.6),
            0 0 60px rgba(255, 215, 0, 0.4),
            0 0 80px rgba(255, 165, 0, 0.2);
        border-color: #FFA500;
    }
}

.casino-card:first-child:hover {
    animation: shimmeringBorderHover 2s ease-in-out infinite;
    transform: translateY(-8px);
}

@keyframes shimmeringBorderHover {
    0%, 100% {
        box-shadow:
            0 12px 32px rgba(118, 95, 245, 0.2),
            0 0 25px rgba(255, 215, 0, 0.5),
            0 0 50px rgba(255, 215, 0, 0.3);
        border-color: #FFD700;
    }
    50% {
        box-shadow:
            0 12px 32px rgba(118, 95, 245, 0.2),
            0 0 35px rgba(255, 215, 0, 0.7),
            0 0 70px rgba(255, 215, 0, 0.5),
            0 0 90px rgba(255, 165, 0, 0.3);
        border-color: #FFA500;
    }
}

/* 20bet Logo Pulse Animation */
.casino-card:first-child .casino-logo img {
    animation: logoPulse 2.5s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.6))
                drop-shadow(0 0 24px rgba(255, 165, 0, 0.4));
    }
}

/* Rank Badge */
.casino-rank {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #f5813d 0%, #d44500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.casino-rank.rank-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.casino-rank.rank-2 {
    background: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
}

.casino-rank.rank-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
}

/* Category Badge */
.casino-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.casino-badge.best {
    background: linear-gradient(135deg, #f5813d 0%, #d44500 100%);
    color: #ffffff;
}

.casino-badge.popular {
    background: linear-gradient(135deg, #e7e6eb 0%, #f2f2f2 100%);
    color: var(--grey-70);
    opacity: 0.85;
}

.casino-badge.new {
    background: linear-gradient(135deg, #e8e8e8 0%, #f0f0f0 100%);
    color: var(--grey-70);
    opacity: 0.85;
}

/* Logo Section */
.casino-logo {
    background: linear-gradient(135deg, #f8f7fa 0%, #ffffff 100%);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
}

.casino-logo a,
.article-content .casino-logo a,
.article-content .recommended-casinos a {
    border-bottom: none !important;
    text-decoration: none !important;
    color: inherit !important;
    font-weight: inherit !important;
}

.casino-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.casino-logo img {
    max-width: 180px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Info Section */
.casino-info {
    padding: 24px;
}

.casino-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--grey-100);
    margin-bottom: 16px;
}

/* Rating */
.casino-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.casino-rating i {
    color: #f5813d;
    font-size: 15px;
}

.casino-rating .rating-text {
    margin-left: 6px;
    font-weight: 600;
    color: var(--grey-70);
    font-size: 13px;
}

/* Bonus Box */
.casino-bonus {
    background: linear-gradient(135deg, #e4e4fd 0%, #f2f2ff 100%);
    border-left: 3px solid var(--primary-60);
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--grey-100);
    line-height: 1.4;
}

.casino-bonus i {
    color: var(--primary-60);
    margin-right: 6px;
    font-size: 12px;
}

.casino-bonus strong {
    color: var(--primary-70);
    font-weight: 700;
}

/* Features List */
.casino-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.casino-features li {
    padding: 7px 0;
    color: var(--grey-70);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.casino-features li i {
    color: #00c853 !important;
    font-size: 14px;
    flex-shrink: 0;
}

.casino-features li i.fa-check-circle {
    color: #00c853 !important;
}

.casino-features li .fas {
    color: #00c853 !important;
}

.casino-card .casino-features i[class*="fa-"] {
    color: #00c853 !important;
}

/* Buttons */
.casino-btn {
    display: block;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.casino-btn i {
    margin-right: 8px;
}

.casino-btn.primary {
    background: linear-gradient(135deg, #3002b2 0%, #5833c0 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(118, 95, 245, 0.3);
}

.casino-btn.primary:hover {
    background: linear-gradient(135deg, #22027e 0%, #3002b2 100%);
    box-shadow: 0 6px 20px rgba(118, 95, 245, 0.4);
    transform: translateY(-2px);
}

.casino-btn.secondary {
    background: transparent;
    color: var(--primary-70);
    border: 2px solid var(--primary-60);
}

.casino-btn.secondary:hover {
    background: var(--primary-10);
    border-color: var(--primary-70);
}

/* Responsive - Casino Cards */
@media (max-width: 1024px) {
    .casino-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 26px;
    }

    .casino-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .casino-logo {
        padding: 30px;
        height: 120px;
    }

    .casino-logo img {
        max-width: 150px;
        max-height: 70px;
    }

    .casino-info {
        padding: 20px;
    }

    .casino-info h3 {
        font-size: 20px;
    }
}

/* Force green color for check-circle icons */
.casino-card ul.casino-features li i.fas.fa-check-circle,
.casino-features li i.fas.fa-check-circle,
ul.casino-features li i.fa-check-circle,
.casino-features i.fa-check-circle {
    color: #00c853 !important;
}
