/**
 * Betformatics Reviews Logo Styles
 *
 * Dependencies: betformatics-variables (loaded via PHP)
 *
 * @package Betformatics
 * @subpackage Assets/CSS
 */

/* ========================================================================
   CONTAINER
   ======================================================================== */
.betformatics-reviews-logo-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    background: transparent;
}

/* ========================================================================
   REVIEW LOGO ITEM
   ======================================================================== */
.betformatics-review-logo-item {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.betformatics-review-logo-item:hover {
    transform: translateY(-5px);
}

.betformatics-review-logo-item:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* ========================================================================
   LOGO CARD
   ======================================================================== */
.review-logo-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80px;
    padding: 5px 20px;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.betformatics-review-logo-item:hover .review-logo-card {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ========================================================================
   LOGO IMAGE
   ======================================================================== */
.review-logo-image {
    max-width: 180px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ========================================================================
   FALLBACK (when no logo)
   ======================================================================== */
.review-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100px;
}

.review-logo-fallback span {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* ========================================================================
   RATING DISPLAY
   ======================================================================== */
.review-logo-rating {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-top: 12px;
    gap: 2px;
}

.rating-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.rating-max {
    font-size: 16px;
    font-weight: 400;
    color: #666;
}

/* ========================================================================
   EMPTY STATE
   ======================================================================== */
.betformatics-reviews-logo-empty {
    padding: 40px 20px;
    text-align: center;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
}

/* ========================================================================
   ERROR STATE
   ======================================================================== */
.betformatics-reviews-logo-error {
    padding: 20px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    font-size: 14px;
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media screen and (min-width: 1200px) {
    .betformatics-reviews-logo-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .betformatics-reviews-logo-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .review-logo-card {
        height: 70px;
        padding: 5px 15px;
    }

    .review-logo-image {
        max-width: 150px;
        max-height: 50px;
    }
}

@media screen and (max-width: 480px) {
    .betformatics-reviews-logo-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .review-logo-card {
        height: 60px;
        padding: 5px 12px;
    }

    .review-logo-image {
        max-width: 120px;
        max-height: 40px;
    }

    .review-logo-fallback span {
        font-size: 12px;
    }
}

/* ========================================================================
   ACCESSIBILITY
   ======================================================================== */
@media (prefers-reduced-motion: reduce) {
    .betformatics-review-logo-item,
    .review-logo-card {
        transition: none;
    }

    .betformatics-review-logo-item:hover {
        transform: none;
    }
}
