/* =========================
   Gemachim Directory Styles
   ========================= */

/* Hero Section */
.gemachim-hero {
    background: linear-gradient(135deg, #1a3353 0%, #2C4E6D 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.gemachim-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Progress Counter */
.progress-counter {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.counter-item {
    text-align: center;
}

.counter-item i {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
    display: block;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    display: block;
    line-height: 1;
}

.counter-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* Category Grid */
.gemach-categories {
    padding: 4rem 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a3353;
    margin-bottom: 3rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: #1a3353;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.2), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #ffd700;
}

.category-card.active {
    border-color: #ffd700;
    background: linear-gradient(135deg, #1a3353, #2C4E6D);
    color: white;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-card.active .category-icon {
    background: white;
    color: #1a3353;
}

.category-icon i {
    font-size: 2rem;
    color: #1a3353;
}

.category-card.active .category-icon i {
    color: #1a3353;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Main Content Area */
.gemachim-main {
    padding: 4rem 0;
}

/* Filter Sidebar */
.filter-sidebar {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 2rem;
}

.filter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a3353;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-label {
    font-weight: 600;
    color: #1a3353;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

.form-check-input:checked {
    background-color: #ffd700;
    border-color: #ffd700;
}

/* Featured Gemach */
.featured-gemach {
    background: linear-gradient(135deg, #fff9e6, #fff5cc);
    border: 2px solid #ffd700;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ffd700;
    color: #1a3353;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
}

.featured-badge i {
    margin-right: 0.5rem;
}

.featured-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.featured-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 15px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-details {
    flex-grow: 1;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a3353;
    margin-bottom: 0.5rem;
}

.featured-category {
    color: #666;
    margin-bottom: 1rem;
}

.featured-category i {
    color: #ffd700;
    margin-right: 0.5rem;
}

.featured-description {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.featured-location {
    color: #666;
    margin-bottom: 1rem;
}

.featured-location i {
    color: #ffd700;
    margin-right: 0.5rem;
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a3353;
    margin: 0;
}

.results-count {
    color: #666;
    font-size: 0.9rem;
}

/* Gemachim Listings */
.gemachim-listings {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gemach-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
}

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

.gemach-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.gemach-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gemach-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.verified-badge {
    background: #28a745;
    color: white;
}

.urgent-badge {
    background: #dc3545;
    color: white;
}

.memory-badge {
    background: #6f42c1;
    color: white;
}

.gemach-content {
    flex-grow: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.gemach-header {
    margin-bottom: 1rem;
}

.gemach-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a3353;
    margin-bottom: 0.5rem;
}

.gemach-category {
    color: #666;
    font-size: 0.9rem;
}

.gemach-category i {
    color: #ffd700;
    margin-right: 0.5rem;
}

.gemach-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.gemach-details {
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.detail-item i {
    color: #ffd700;
    width: 20px;
    margin-right: 0.5rem;
}

.detail-item a {
    color: #007bff;
    text-decoration: none;
}

.detail-item a:hover {
    text-decoration: underline;
}

.gemach-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.gemach-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 25px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.no-results h4 {
    color: #1a3353;
    margin-bottom: 1rem;
}

/* Testimonials */
.gemach-testimonials {
    padding: 4rem 0;
    background: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    border-radius: 15px 15px 0 0;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content i {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
}

.testimonial-content p {
    color: #555;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

.testimonial-author strong {
    color: #1a3353;
    display: block;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

/* CTA Section */
.gemach-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a3353 0%, #2C4E6D 100%);
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Mobile Floating CTA */
.mobile-floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.mobile-floating-cta .btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .progress-counter {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .featured-content {
        flex-direction: column;
        text-align: center;
    }
    
    .featured-image {
        width: 100%;
        height: 200px;
    }
    
    .gemach-card {
        flex-direction: column;
    }
    
    .gemach-image {
        width: 100%;
        height: 200px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .category-card {
        padding: 1.5rem 1rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-icon i {
        font-size: 1.5rem;
    }
    
    .gemach-actions {
        flex-direction: column;
    }
    
    .mobile-floating-cta {
        bottom: 1rem;
        right: 1rem;
    }
    
    .mobile-floating-cta .btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
} 