/* PRODUCERS PAGE - OFFSZN - REFINED */
:root {
    --accent-color: #8b5cf6;
    --bg-dark: #000000;
    --bg-card: #111111;
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #888888;
}

.producers-page {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: 40px;
    /* Adjusted to lower it slightly as requested */
}

/* HERO SECTION */
.pro-hero {
    padding: 20px 24px 10px;
    text-align: center;
}

.pro-hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: -2px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #fff;
    /* Reverted to simple white as requested */
}

/* FILTER TOOLBAR */
.pro-toolbar {
    padding: 20px 24px;
    margin-bottom: 40px;
}

.toolbar-content-centered {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.filter-row-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pro-category-filters {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 14px;
    gap: 4px;
    border: 1px solid var(--border-color);
}

.category-tag {
    padding: 8px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.category-tag:hover {
    color: #fff;
}

.category-tag.active {
    background: #fff;
    color: #000;
}

.search-controls-centered {
    width: 100%;
    display: flex;
    justify-content: center;
}

#producers-search-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin: 30px auto 20px;
    display: flex;
    align-items: center;
}

#producers-search-container input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 30px 12px 0;
    font-size: 1.1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-align: left;
    outline: none;
}

#producers-search-container input:focus {
    outline: none;
}

#producers-search-container input:focus::placeholder {
    color: transparent;
}

#producers-search-container .search-icon {
    position: absolute;
    right: 5px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    pointer-events: none;
}

/* PRODUCERS GRID */
.pro-grid-section {
    padding: 0px 24px 80px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.pro-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    width: 100%;
    min-height: 800px; /* Prevent layout jump */
}

/* PRODUCER CARD REFINED */
.producer-card {
    background: transparent;
    padding: 0;
    text-align: center;
    transition: transform 0.3s ease;
}

.card-avatar-container {
    background: #111;
    border-radius: 12px;
    padding: 24px 12px 16px;
    margin-bottom: 12px;
    position: relative;
    transition: background 0.3s ease;
    min-height: 240px;
    /* Ensure uniform height for button alignment */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.producer-card:hover .card-avatar-container {
    background: #161616;
}

.card-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
    cursor: pointer;
}

.card-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
}

/* LETTER FALLBACK AVATAR */
.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #222 0%, #0a0a0a 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: uppercase;
}

.verified-star {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffcc00;
    color: #000;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
    border: 2px solid #111;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 2;
}

.card-name-centered {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 12px;
    color: #fff;
    display: block;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.8rem;
    margin-top: 6px;
}

/* CARD ACTIONS */
.card-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
    padding: 0 10px;
}

.btn-card-action {
    padding: 10px 8px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-card-action:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-solicitar {
    background: #fff !important;
    color: #000 !important;
    border: none !important;
    padding: 10px 8px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-solicitar:hover {
    background: #e0e0e0 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

.btn-enviar {
    background: #1a1a1a !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 10px 8px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-enviar:hover {
    background: #252525 !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* SIDE FILTERS LAYOUT */
.pro-grid-layout-container {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
}

.checklist-container.horizontal-scroll {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding: 10px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

@media (min-width: 1024px) {
    .checklist-container.horizontal-scroll {
        justify-content: center;
    }
}

.checklist-container.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.filter-section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    margin-bottom: 16px;
    font-weight: 700;
}

.checklist-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
    user-select: none;
}

.checklist-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.checklist-item.selected {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.3);
    /* Removed font-weight: 600 to prevent layout shift */
}

.checklist-item.selected .checkbox-custom {
    border-color: #fff;
    background: #fff;
}

.checklist-item.selected .checkbox-custom::after {
    color: #000;
}

.checklist-item input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #333;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.checklist-item input:checked+.checkbox-custom {
    background: #fff;
    border-color: #fff;
}

.checklist-item input:checked+.checkbox-custom::after {
    content: "\f26e";
    /* bi-check */
    font-family: "bootstrap-icons" !important;
    color: #000;
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 900;
    display: block;
}

.checklist-item.selected {
    color: #fff;
    font-weight: 600;
}

.filter-dropdown {
    display: none !important;
    /* Remove old dropdown styles */
}

.filter-option {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #888;
    text-align: left;
}

.filter-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.filter-option.selected {
    color: #fff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
}

/* PAGINATION */
.pro-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
}

.page-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: #1a1a1a;
    color: #888;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.page-btn:hover:not(.disabled) {
    background: #222;
    color: #fff;
}

.page-btn.active {
    background: var(--accent-color);
    color: #fff;
}

.page-btn.disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

/* MODAL STYLES */
.offszn-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.offszn-modal-content {
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    padding: 32px;
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header-simple {
    position: absolute;
    top: 16px;
    right: 16px;
}

.modal-close-simple {
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body-centered {
    text-align: center;
}

.modal-icon-wrapper {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.modal-body-centered h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.modal-body-centered p {
    color: #888;
    margin-bottom: 24px;
    line-height: 1.6;
}

.btn-modal-primary {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    color: #000;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

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

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
    .side-filter-panel {
        right: 20px;
        width: 220px;
    }
}

@media (max-width: 768px) {
    .pro-hero {
        padding: 10px 16px 5px;
    }

    .producers-page {
        padding-top: 20px;
    }

    .pro-hero h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .toolbar-content-centered {
        gap: 20px;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
    }

    .pro-toolbar {
        padding: 20px 16px 10px;
        margin-bottom: 20px;
    }

    #producers-search-container {
        display: none !important;
    }

    #producers-search-container input {
        font-size: 0.95rem;
        padding: 8px 30px 8px 0;
    }

    #producers-search-container .search-icon {
        font-size: 1rem;
    }

    .pro-category-filters {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
        max-width: 100%;
        gap: 8px;
        padding: 4px 16px;
        -webkit-overflow-scrolling: touch;
    }

    .pro-category-filters::-webkit-scrollbar {
        display: none;
    }

    .category-tag {
        padding: 6px 16px;
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
        border-radius: 8px;
    }

    .checklist-container.horizontal-scroll {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
        max-width: 100%;
        gap: 8px;
        padding: 4px 16px;
        -webkit-overflow-scrolling: touch;
    }

    .checklist-container.horizontal-scroll::-webkit-scrollbar {
        display: none;
    }

    .checklist-item {
        padding: 6px 14px;
        font-size: 0.75rem;
        gap: 6px;
        white-space: nowrap;
        flex-shrink: 0;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 8px;
    }
    
    .checklist-item .checkbox-custom {
        width: 14px;
        height: 14px;
    }

    .checkbox-custom {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    .checklist-item input:checked+.checkbox-custom::after {
        font-size: 12px;
    }

    .pro-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .card-name-centered {
        font-size: 0.95rem;
    }

    .card-meta-centered {
        font-size: 0.75rem;
    }

    .btn-card-action {
        padding: 8px 6px;
        font-size: 0.65rem;
    }

    .card-avatar-container {
        padding: 16px 10px 12px;
        min-height: 200px;
    }

    .card-avatar-wrapper {
        width: 100px;
        height: 100px;
    }

    .avatar-placeholder {
        font-size: 2.2rem;
    }

    .pro-pagination {
        margin-top: 40px;
        gap: 6px;
    }

    .page-btn {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .side-filter-panel {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        z-index: 9999;
        background: rgba(0, 0, 0, 0.95);
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .side-filter-panel.active {
        display: flex;
    }

    .offszn-modal-content {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        border: none !important;
        margin: 0 !important;
    }

    .modal-step {
        padding: 24px !important;
    }
}

/* ==================== SKELETON CARDS ==================== */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    pointer-events: none;
}

.skeleton-card .card-avatar-container {
    background: #111;
    border-radius: 12px;
    padding: 24px 16px 12px;
    margin-bottom: 12px;
    position: relative;
}

.skeleton-avatar {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: #1a1a1a;
    /* Fix black box issue */
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-line {
    border-radius: 6px;
    background-color: #1a1a1a;
    /* Fix black box issue */
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-name {
    width: 70%;
    height: 14px;
    margin: 16px auto 0;
}

.skeleton-role {
    width: 60%;
    height: 12px;
    margin: 8px auto 12px;
}

.skeleton-meta {
    width: 25%;
    height: 12px;
    margin: 0 auto;
}

.skeleton-btn {
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.05);
}