/* Frontend Styles for UMKM Genteng */

/* Hero Section Patterns */
.hero-pattern {
    background-image:
        radial-gradient(circle at 25px 25px, rgba(255,255,255,0.2) 2px, transparent 0),
        radial-gradient(circle at 75px 75px, rgba(255,255,255,0.2) 2px, transparent 0);
    background-size: 100px 100px;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Floating Button */
.btn-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
}

/* Loading Spinner */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #cbe76e;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .btn-floating {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }
}

/* Custom badge styles */
.badge-custom {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

/* Social media buttons */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.social-btn.tiktok {
    background: #000;
}

.social-btn.whatsapp {
    background: #25d366;
}

.social-btn.facebook {
    background: #4267B2;
}

.social-btn.twitter {
    background: #1DA1F2;
}

/* Search highlight */
mark {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

/* Empty state illustrations */
.empty-state {
    text-align: center;
    padding: 3rem 0;
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #718096;
    margin-bottom: 1.5rem;
}

/* Custom Pagination Styles */
.pagination {
    margin-bottom: 0;
    justify-content: center;
}

.pagination .page-link {
    color: #152A1B;
    background-color: #fff;
    border: 1px solid #cbe76e;
    padding: 0.75rem 1rem;
    margin: 0 2px;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination .page-link:hover {
    color: #152A1B;
    background-color: #fff0a2;
    border-color: #cbe76e;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.pagination .page-item.active .page-link {
    background-color: #152A1B;
    border-color: #152A1B;
    color: #fff;
    box-shadow: 0 2px 6px rgba(21, 42, 27, 0.3);
}

.pagination .page-item.active .page-link:hover {
    background-color: #2b492f;
    border-color: #2b492f;
    transform: translateY(-1px);
}

.pagination .page-item.disabled .page-link {
    color: #a0adb8;
    background-color: #f8f9fa;
    border-color: #e9ecef;
    cursor: not-allowed;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

/* Pagination icons styling */
.pagination .page-link i {
    font-size: 0.875rem;
}

/* Custom pagination container */
.pagination-wrapper {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 2rem;
    border: 1px solid #e9ecef;
}

/* Responsive pagination */
@media (max-width: 576px) {
    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        margin: 0 1px;
    }

    .pagination-wrapper {
        padding: 1rem;
        margin-top: 1.5rem;
    }
}

/* Pagination hover effects */
.pagination .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(203, 231, 110, 0.25);
    border-color: #cbe76e;
}

/* Loading state for pagination */
.pagination-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth transition for page changes */
.pagination .page-link {
    position: relative;
    overflow: hidden;
}

.pagination .page-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(203, 231, 110, 0.3), transparent);
    transition: left 0.5s;
}

.pagination .page-link:hover::before {
    left: 100%;
}

/* Pagination info text styling */
.pagination-wrapper .text-muted {
    font-size: 0.875rem;
    color: #556f25 !important;
    font-weight: 500;
}

/* Better spacing for pagination elements */
.pagination .page-item + .page-item .page-link {
    margin-left: 0;
}

/* Ensure consistent height for all pagination links */
.pagination .page-link {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}
