/**
 * Rate BunnyPro — Premium Photo Upload Styles
 *
 * @package RateBunnyPro
 * @since   1.2.0
 */

/* ---------------------------------------------------------------
   Upload Wrapper
   ------------------------------------------------------------- */

.ratebunny-upload-wrap {
    margin: 18px 0 22px;
    padding: 18px 20px 14px;
    border: 2px dashed #d0d0d0;
    border-radius: 12px;
    background: linear-gradient(135deg, #fafafa 0%, #f3f3f3 100%);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.ratebunny-upload-wrap:hover {
    border-color: #a0a0a0;
    background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
}

/* ---------------------------------------------------------------
   Hidden native file input
   ------------------------------------------------------------- */

.ratebunny-file-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

/* ---------------------------------------------------------------
   Custom "Add Photos" Trigger Button
   ------------------------------------------------------------- */

.ratebunny-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.25s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    position: relative;
    line-height: 1.4;
}

.ratebunny-upload-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    background: linear-gradient(135deg, #5b5ee0, #7e4fe6);
}

.ratebunny-upload-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(99, 102, 241, 0.2);
}

/* Counter badge on the button */
.ratebunny-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #6366f1;
    background: #fff;
    border-radius: 20px;
    line-height: 1.4;
}

/* ---------------------------------------------------------------
   Note
   ------------------------------------------------------------- */

.ratebunny-upload-note {
    display: inline-block;
    margin-left: 12px;
    font-size: 12px;
    color: #999;
    font-style: italic;
    vertical-align: middle;
}

/* ---------------------------------------------------------------
   Inline Error
   ------------------------------------------------------------- */

.ratebunny-error-wrap {
    min-height: 20px;
    margin-top: 8px;
}

.ratebunny-error {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    animation: ratebunnyFadeIn 0.25s ease;
}

@keyframes ratebunnyFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ---------------------------------------------------------------
   Image Previews — Thumbnail Grid
   ------------------------------------------------------------- */

.ratebunny-image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.ratebunny-thumb {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    animation: ratebunnyThumbIn 0.25s ease;
}

@keyframes ratebunnyThumbIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1);    }
}

.ratebunny-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Remove "×" button */
.ratebunny-thumb-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.ratebunny-thumb:hover .ratebunny-thumb-remove {
    opacity: 1;
}

.ratebunny-thumb-remove:hover {
    background: rgba(220, 38, 38, 0.85);
}

/* ---------------------------------------------------------------
   Published Review — Image Gallery (kept from M2)
   ------------------------------------------------------------- */

.ratebunny-review-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ratebunny-review-thumb-link {
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ratebunny-review-thumb-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ratebunny-review-thumb {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
}
