/* Page Base */
.listings-page {
    min-height: 100vh;
    background: #f8fafc;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #ea580c 100%);
    height: 600px;
    /* Fixed height for consistency */
    padding: 150px 40px 0;
    /* Fixed top padding, bottom handled by flex/height */
    /* Reduced padding for compact look */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Align content to top */
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-top: 20px;
    /* Small spacing adjustment */
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-content h1 {
    font-size: 2.5rem;
    /* Reduced from 3.5rem */
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    /* Reduced from 2rem */
    font-weight: 800;
    color: #fef3c7;
}

.stat-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-create-listing {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 28px;
    background: white;
    color: #ea580c;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-create-listing:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.floating-icon {
    font-size: 8rem;
    /* Reduced from 12rem */
    opacity: 0.2;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.action-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.action-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.action-card.sparring .action-icon {
    background: #fef2f2;
}

.action-card.coach .action-icon {
    background: #eff6ff;
}

.action-card.club .action-icon {
    background: #f0fdf4;
}

.action-card.post .action-icon {
    background: #fff7ed;
}

.action-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.action-text p {
    font-size: 0.8rem;
    color: #64748b;
}

/* Filters */
/* Filter Bar (Card Style) */
.filters-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 32px;
}

.filter-chips {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 12px;
    overflow-x: auto;
}

.chip {
    background: transparent;
    border: none;
    /* Removed border */
    color: #64748b;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.chip:hover {
    color: #ea580c;
    background: rgba(255, 255, 255, 0.5);
}

.chip.active {
    background: white;
    color: #ea580c;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.results-text {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

/* Cards */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s;
}

.card-link:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.type-icon {
    font-size: 1.1rem;
}

.card.sparring .card-type {
    color: #dc2626;
}

.card.coach .card-type {
    color: #2563eb;
}

.card.club .card-type {
    color: #16a34a;
}

.card.salon .card-type {
    color: #8b5cf6;
}

.card-image {
    margin: -24px -24px 16px -24px;
    height: 160px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card.equipment .card-type {
    color: #9333ea;
}

.card-time {
    font-size: 0.75rem;
    color: #94a3b8;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}

.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tag {
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

.card-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 16px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.user-info {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* Ensure full width used in flex parent if needed, but flex default is good */
}

/* Fix author section specific for list view */
.author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author .avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info .name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.author-info .location {
    font-size: 0.75rem;
    color: #94a3b8;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

.user-location {
    font-size: 0.8rem;
    color: #64748b;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    /* Push to bottom */
}

.card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ea580c;
}

.price {
    font-weight: 700;
    color: #0f172a;
}

.price.free {
    color: #16a34a;
}

.card-btn {
    background: #f1f5f9;
    color: #475569;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.card-btn:hover {
    background: #ea580c;
    color: white;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #ea580c, #f97316);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.cta-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.cta-btn {
    background: white;
    color: #ea580c;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 24px 80px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-visual {
        display: none;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters-bar {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .cta-section {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}