/* Common card styles for bonuses, casinos, bookmakers */

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Card Base Animations
   ======================================== */
.bonus-card,
.casino-card,
.bookmaker-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bonus-card:hover,
.casino-card:hover,
.bookmaker-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Logo scale on hover */
.bonus-card:hover img,
.casino-card:hover img,
.bookmaker-card:hover img {
    transform: scale(1.05);
}

.bonus-card img,
.casino-card img,
.bookmaker-card img {
    transition: transform 0.3s ease;
}

/* ========================================
   CTA Buttons - Shine Effect
   ======================================== */
.view-btn,
.claim-btn,
.register-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-btn::before,
.claim-btn::before,
.register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.view-btn:hover::before,
.claim-btn:hover::before,
.register-btn:hover::before {
    left: 100%;
}

/* Green button (claim/register) glow */
.claim-btn:hover,
.register-btn:hover {
    box-shadow: 0 15px 35px rgba(34, 197, 94, 0.4);
}

/* ========================================
   Rating Stars
   ======================================== */
.rating-stars {
    transition: all 0.3s ease;
}

.rating-stars:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

/* ========================================
   Feature Tags
   ======================================== */
.feature-tag {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.feature-tag::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;
}

.feature-tag:hover::before {
    left: 100%;
}

.feature-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* ========================================
   Load More Button
   ======================================== */
#load-more-btn {
    transition: all 0.3s ease;
}

#load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(100, 100, 100, 0.3);
}

#load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   Mobile Optimizations
   ======================================== */
@media (max-width: 640px) {
    .bonus-card,
    .casino-card,
    .bookmaker-card {
        margin-bottom: 1rem;
    }

    .flex-col.sm\:flex-row {
        gap: 0.75rem;
    }
}

/* ========================================
   Accessibility
   ======================================== */
.view-btn:focus,
.claim-btn:focus,
.register-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.feature-tag:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .bonus-card,
    .casino-card,
    .bookmaker-card {
        transform: none !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .view-btn,
    .claim-btn,
    .register-btn {
        background: #374151 !important;
        color: white !important;
    }
}
