/**
 * WebSweeper Boat Covers Styles
 * Extends Bootstrap 5.3.3
 */


/* Custom Properties
   ========================================================================== */

:root {
    --transition-speed: 0.3s;
    --hover-lift-distance: -3px;
    --hover-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}


/* Global Transitions
   ========================================================================== */

.transition-base {
    transition: all var(--transition-speed) ease-in-out;
}


/* Interactive Effects
   ========================================================================== */


/* Hover lift effect for cards and items */

.hover-lift:hover,
.brand-item a:hover {
    transform: translateY(var(--hover-lift-distance));
    box-shadow: var(--hover-shadow);
}


/* Scale effect for images and containers */

.hover-scale:hover {
    transform: scale(1.02);
}


/* Brand Grid Styles
   ========================================================================== */

.brand-item a {
    border-width: 2px;
}


/* Soft Button Variant
   Only include if not available in Bootstrap
   ========================================================================== */

.btn-soft-primary {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
}

.btn-soft-primary:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.15);
}


/* Essential Alert Link Styles
   ========================================================================== */

.alert-link {
    text-decoration: underline !important;
}


/* Additional Link Styling
   ========================================================================== */

.main-text a {
    text-decoration: none;
}

.main-text a:hover {
    text-decoration: underline;
}


/* Boat Search Cards Styles
   ========================================================================== */

.search-icon-container {
    width: 120px;
    height: 120px;
    transition: all 0.3s ease;
}

.search-icon-container img {
    max-height: 80px;
}

.search-arrow {
    transition: transform 0.3s ease;
}

.boat-search-card:hover .search-arrow {
    transform: translateX(8px);
}

.hover-card {
    transition: all 0.3s ease;
}

.boat-search-card:hover .hover-card {
    transform: translateY(-8px);
}

/* Fix for hover text visibility */
.boat-search-card:hover .text-primary {
    color: #fff !important; /* Override Bootstrap text-primary on hover */
}

.boat-search-card:hover .text-success {
    color: #fff !important; /* Override Bootstrap text-success on hover */
}

/* Ribbon style for "Popular" badge */
.ribbon-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    z-index: 10;
}

.ribbon {
    position: absolute;
    padding: 8px 0;
    width: 150px;
    text-align: center;
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 11;
    transform: rotate(45deg);
    top: 25px;
    right: -40px;
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 0.5);
}


/* Form Range Slider Enhancements
   ========================================================================== */

/* Custom styling for range inputs */
.form-range::-webkit-slider-thumb {
    background-color: var(--bs-primary);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -8px;
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.2);
}

.form-range::-moz-range-thumb {
    background-color: var(--bs-primary);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.2);
}

.form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.3);
}

.form-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.3);
}