/**
 * JoomRecipe Review Form Styles
 * @package    JoomRecipe
 * @copyright  2013-2019 JoomBoost, joomboost.com
 * @license    GNU/GPL http://www.gnu.org/copyleft/gpl.html
 */

/* Consistent vertical spacing between form fields */
.jr-reviewform .card-body > .control-group {
    margin-bottom: 1.25rem;
}

.jr-reviewform .card-body > .control-group:last-child {
    margin-bottom: 0;
}

.jr-reviewform .control-label {
    margin-bottom: .35rem;
}

/* Uppy Dashboard customizations */
#jr-review-uppy-dashboard .uppy-Dashboard-inner {
    border-radius: 8px;
}

#jr-review-uppy-dashboard .uppy-StatusBar-actionBtn--upload {
    display: none !important;
}

/* Existing review images container */
.jr-existing-images {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Review image thumbnails */
.review-image-thumb {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
    border: 1px solid rgba(0, 0, 0, .08);
    background: #f5f5f5;
    transition: transform .15s ease, box-shadow .15s ease;
}

.review-image-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
}

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

.review-image-thumb .btn-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 50%;
    border: 0;
    background: rgba(220, 53, 69, .95);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
    transition: background .15s ease, transform .15s ease;
}

.review-image-thumb .btn-remove:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.review-image-thumb .btn-remove:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Remove animation when image is being deleted */
.review-image-thumb.removing {
    opacity: 0;
    transform: scale(.85);
    transition: opacity .2s ease, transform .2s ease;
}

/* Progressive enhancement: Hide fallback upload when JS is enabled */
.js-enabled .jr-fallback-upload {
    display: none;
}

/* Show fallback upload when JS is disabled */
.no-js .jr-uppy-upload {
    display: none;
}
