/* Livewire Front Components Styles */

/* donations-ctegories.blade.php */
.category-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 15px 0;
}

.category-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.category-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    justify-content: flex-start;
    min-width: max-content;
    padding: 5px;
    scroll-behavior: smooth;
}

@media (min-width: 992px) {
    .category-container {
        flex-wrap: wrap;
        justify-content: center;
        min-width: 100%;
    }
}

.category-item {
    flex: 0 0 auto;
    width: 140px;
}

.category-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 0.75rem;
    background-color: var(--white);
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
}

.category-card-link:hover {
    transform: translateY(-5px);
    background-color: #ffffff;
    border-color: var(--primary);
}

.icon-circle {
    width: 75px;
    height: 75px;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.group:hover .icon-circle {
    background-color: var(--primary);
    border-color: var(--primary-light);
}

.category-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: all 0.4s ease;
}

.group:hover .category-icon {
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

.category-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    transition: color 0.3s ease;
    width: 100%;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.group:hover .category-name {
    color: var(--primary);
}

/* Scroll Navigation Arrows */
.category-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    opacity: 1;
}

.category-scroll-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.category-scroll-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.category-scroll-left {
    left: -5px;
}

.category-scroll-right {
    right: -5px;
}

/* RTL Support */
[dir="rtl"] .category-container {
    justify-content: flex-start;
}

@media (min-width: 992px) {
    [dir="rtl"] .category-container {
        justify-content: center;
    }
}

[dir="rtl"] .category-scroll-left {
    left: auto;
    right: -5px;
}

[dir="rtl"] .category-scroll-right {
    right: auto;
    left: -5px;
}

/* Rotate arrows for RTL */
[dir="rtl"] .category-scroll-arrow svg {
    transform: rotate(180deg);
}

/* paymnet-getway-modal-livewire.blade.php */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

.gateway-card-inner {
    transition: transform .2s ease, border-color .2s ease;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.gateway-card-inner:hover {
    transform: translateY(-3px);
    border-color: #3b82f6;
}

.gateway-logo-wrapper {
    height: 60px;
    border-radius: 0 !important;
}

.gateway-logo-sm {
    width: 80px;
    height: 50px;
    object-fit: contain;
    background: #fff;
    padding: 4px;
}

.modal-header-soft {
    background: linear-gradient(135deg, #f5f5ff 0%, #ffffff 60%);
}

.modal-header-soft .header-icon {
    width: 32px;
    height: 32px;
}

/* Donation Card Styles (Filter & Latest) */
.donation-image-wrapper {
    position: relative;
    overflow: hidden;
}

.donation-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

[dir="rtl"] .donation-category-badge {
    left: auto;
    right: 1rem;
}

.custom-progress {
    height: 8px;
    background-color: #f1f5f9;
    margin-bottom: 1.5rem;
}

.custom-progress-bar {
    background-color: var(--accent-color);
}

.donation-stats-row {
    background-color: #f8fafc;
    padding: 1rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.btn-secondary-premium {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary-premium:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.fw-black {
    font-weight: 900;
}