/* 
 * ArtistPro Directories CSS
 * Premium adaptive styling (Glassmorphism) for Elementor & Shortcodes
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

.ap-dir-wrapper {
    font-family: 'Inter', sans-serif;
    padding: 40px 0;
}

/* FILTER BAR */
.ap-dir-filter-bar {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.ap-dir-filter-bar input, .ap-dir-filter-bar select, .ap-dir-filter-bar button {
    background: rgba(128, 128, 128, 0.08);
    border: 1px solid rgba(128, 128, 128, 0.2);
    color: inherit;
    padding: 12px 18px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.ap-dir-filter-bar input:focus, .ap-dir-filter-bar select:focus {
    border-color: #e50914;
    box-shadow: 0 0 0 2px rgba(229,9,20,0.1);
}
.ap-dir-filter-btn {
    background: #e50914 !important;
    color: #fff !important;
    font-weight: 700;
    cursor: pointer;
    border: none !important;
}
.ap-dir-filter-btn:hover {
    background: #f82f3a !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(229,9,20,0.3);
}

/* GRID SHARED */
.ap-dir-grid {
    display: grid;
    gap: 24px;
}
.ap-dir-card {
    background: rgba(128, 128, 128, 0.05);
    border: 1px solid rgba(128, 128, 128, 0.1);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none !important;
    display: block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    backdrop-filter: blur(15px);
}
.ap-dir-card:hover {
    transform: translateY(-8px);
    border-color: rgba(229,9,20,0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* ARTIST CARD SPECIFICS */
.ap-dir-card-artist .ap-dir-cover {
    height: 220px;
    position: relative;
    overflow: hidden;
}
.ap-dir-card-artist .ap-dir-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.ap-dir-card-artist:hover .ap-dir-cover img {
    transform: scale(1.08);
}
.ap-dir-card-artist .ap-dir-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}
.ap-dir-card-artist .ap-dir-badge {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(59,130,246,0.9);
    color: #fff;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.ap-dir-card-artist .ap-dir-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px;
}
.ap-dir-card-artist .ap-dir-name {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}
.ap-dir-card-artist .ap-dir-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    gap: 12px;
}
.ap-dir-card-artist .ap-dir-pill {
    background: rgba(229,9,20,0.2);
    color: #ffb4b4;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(229,9,20,0.3);
}

/* MUSIC CARD SPECIFICS */
.ap-dir-card-music {
    padding: 16px;
}
.ap-dir-card-music .ap-dir-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}
.ap-dir-card-music .ap-dir-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.ap-dir-card-music:hover .ap-dir-cover img {
    transform: scale(1.08);
}
.ap-dir-card-music .ap-dir-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ap-dir-card-music:hover .ap-dir-overlay {
    opacity: 1;
}
.ap-dir-play-btn {
    width: 50px;
    height: 50px;
    background: #e50914;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(229,9,20,0.4);
}
.ap-dir-card-music:hover .ap-dir-play-btn {
    transform: scale(1);
}
.ap-dir-card-music .ap-dir-info {
    text-align: left;
}
.ap-dir-card-music .ap-dir-title {
    font-size: 16px;
    font-weight: 800;
    color: inherit;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ap-dir-card-music .ap-dir-artist {
    font-size: 13px;
    color: inherit;
    opacity: 0.7;
    margin: 0 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ap-dir-card-music .ap-dir-meta {
    font-size: 12px;
    color: inherit;
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* PAGINATION & NO RESULTS */
.ap-dir-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.ap-dir-pagination a, .ap-dir-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(128,128,128,0.08);
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid rgba(128,128,128,0.15);
}
.ap-dir-pagination a:hover {
    background: rgba(128,128,128,0.15);
}
.ap-dir-pagination .current {
    background: #e50914;
    border-color: #e50914;
    color: #fff;
}
.ap-dir-no-results {
    text-align: center;
    padding: 60px 20px;
    color: inherit;
    opacity: 0.6;
    font-size: 18px;
    grid-column: 1 / -1;
}

/* PLAYLIST & ALBUM (Similar to Music, Square Cover) */
.ap-dir-card-playlist .ap-dir-cover,
.ap-dir-card-album .ap-dir-cover,
.ap-dir-card-podcast .ap-dir-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}
.ap-dir-card-playlist .ap-dir-cover img,
.ap-dir-card-album .ap-dir-cover img,
.ap-dir-card-podcast .ap-dir-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.ap-dir-card-playlist:hover .ap-dir-cover img,
.ap-dir-card-album:hover .ap-dir-cover img,
.ap-dir-card-podcast:hover .ap-dir-cover img {
    transform: scale(1.08);
}
.ap-dir-card-playlist .ap-dir-info,
.ap-dir-card-album .ap-dir-info,
.ap-dir-card-podcast .ap-dir-info {
    padding: 0 8px;
}
.ap-dir-card-playlist .ap-dir-title,
.ap-dir-card-album .ap-dir-title,
.ap-dir-card-podcast .ap-dir-title {
    font-size: 16px;
    font-weight: 800;
    color: inherit;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ap-dir-card-playlist .ap-dir-meta,
.ap-dir-card-album .ap-dir-meta,
.ap-dir-card-podcast .ap-dir-meta {
    font-size: 13px;
    color: inherit;
    opacity: 0.6;
    margin-top: 8px;
}

/* VIDEO CARD (16:9 Landscape) */
.ap-dir-card-video {
    padding: 16px;
}
.ap-dir-card-video .ap-dir-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}
.ap-dir-card-video .ap-dir-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.ap-dir-card-video:hover .ap-dir-cover img {
    transform: scale(1.08);
}
.ap-dir-card-video .ap-dir-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ap-dir-card-video:hover .ap-dir-overlay {
    opacity: 1;
}
.ap-dir-card-video .ap-dir-info {
    padding: 0 4px;
}
.ap-dir-card-video .ap-dir-title {
    font-size: 16px;
    font-weight: 800;
    color: inherit;
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ap-dir-card-video .ap-dir-meta {
    font-size: 12px;
    color: inherit;
    opacity: 0.6;
}

/* PRODUCT CARD (Store) */
.ap-dir-card-product .ap-dir-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}
.ap-dir-card-product .ap-dir-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.ap-dir-card-product:hover .ap-dir-cover img {
    transform: scale(1.08);
}
.ap-dir-card-product .ap-dir-info {
    padding: 20px;
    text-align: center;
}
.ap-dir-card-product .ap-dir-title {
    font-size: 16px;
    font-weight: 700;
    color: inherit;
    margin: 0 0 10px;
}
.ap-dir-card-product .ap-dir-price {
    font-size: 18px;
    font-weight: 900;
    color: #e50914;
    margin-bottom: 15px;
}
.ap-dir-card-product .ap-dir-btn {
    display: inline-block;
    padding: 8px 24px;
    background: #e50914;
    color: #fff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.ap-dir-card-product:hover .ap-dir-btn {
    background: #f82f3a;
    box-shadow: 0 4px 15px rgba(229,9,20,0.4);
}

/* COMMUNITY POST CARD */
.ap-dir-card-community {
    padding: 24px;
    background: rgba(128,128,128,0.08);
}
.ap-dir-card-community .ap-dir-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.ap-dir-card-community .ap-dir-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.ap-dir-card-community .ap-dir-author-name {
    font-size: 15px;
    font-weight: 700;
    color: inherit;
    margin: 0;
}
.ap-dir-card-community .ap-dir-date {
    font-size: 12px;
    color: inherit;
    opacity: 0.5;
}
.ap-dir-card-community .ap-dir-content {
    font-size: 14px;
    line-height: 1.6;
    color: inherit;
    opacity: 0.9;
    margin-bottom: 20px;
}
.ap-dir-card-community .ap-dir-actions {
    display: flex;
    gap: 16px;
    border-top: 1px solid rgba(128,128,128,0.1);
    padding-top: 16px;
}
.ap-dir-card-community .ap-dir-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: inherit;
    opacity: 0.7;
    font-weight: 600;
}

