/* 
  AV Actress Star - List Page CSS
  Specific styles for list.php (Filters, Pagination, Profile Headers)
*/

/* --- Profile Header (Actress / Maker) --- */
.profile-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.profile-title-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.profile-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.025em;
}

.profile-ruby {
    font-size: 0.875rem;
    color: var(--text-gray-400);
}

.profile-alt-names {
    font-size: 0.75rem;
    color: var(--text-gray-500);
    margin-top: 0.5rem;
}

.profile-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid var(--text-gray-500);
    font-size: 0.75rem;
    color: var(--text-gray-400);
    width: fit-content;
}

.profile-description {
    margin-top: 1rem;
    background-color: rgba(42, 42, 42, 0.5); /* dark-200/50 approx */
    border-radius: 0.5rem;
    padding: 1rem;
    border-left: 4px solid var(--brand-500);
}

.profile-desc-text {
    font-size: 0.875rem;
    color: var(--text-gray-300);
    line-height: 1.625;
}

/* --- Controls Row (Count, Sort, Filter) --- */
.controls-row {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .controls-row {
        flex-direction: row;
        align-items: center;
    }
}

.controls-count {
    font-size: 0.875rem;
    color: var(--text-gray-500);
}

.controls-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

@media (min-width: 640px) {
    .controls-actions {
        flex-direction: row;
        align-items: center;
    }
}

/* Sort Toggle */
.sort-toggle-group {
    display: flex;
    border: 1px solid #374151; /* gray-700 */
    border-radius: 0.25rem;
    overflow: hidden;
}

.sort-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
}

.sort-btn.active {
    background-color: var(--brand-600);
    color: var(--white);
}

.sort-btn.inactive {
    background-color: var(--bg-dark-200);
    color: var(--text-gray-400);
}

.sort-btn.inactive:hover {
    background-color: var(--bg-dark-300);
}

/* Omnibus Toggle */
.omnibus-toggle {
    display: flex;
    align-items: center;
    border: 1px solid #374151;
    border-radius: 0.25rem;
    margin-left: 15px;
    overflow: hidden;
    background-color: var(--bg-dark-200);
}

.omnibus-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
}

.omnibus-btn.active {
    background-color: var(--brand-600);
    color: var(--white);
}

.omnibus-btn.inactive {
    background-color: #374151; /* gray-700 */
    color: var(--text-gray-400);
}

.omnibus-btn:hover {
    opacity: 0.9;
}

/* Filter Button (e.g. Actress List initial filter) */
.filter-btn {
    display: inline-block;
    padding: 0.375rem 0.75rem; /* py-1.5 px-3 */
    border: 1px solid;
    border-radius: 0.25rem;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
    transition: all 0.2s;
    text-transform: uppercase;
}

.filter-btn-sm {
    padding: 0.375rem 0.625rem; /* px-2.5 py-1.5 */
    font-size: 0.75rem; /* text-xs */
}

.filter-btn.active {
    background-color: var(--brand-600);
    border-color: var(--brand-500);
    color: var(--white);
}

.filter-btn.inactive {
    background-color: var(--bg-dark-200);
    border-color: #374151; /* gray-700 */
    color: var(--text-gray-400);
}

.filter-btn.inactive:hover {
    background-color: var(--bg-dark-300);
    color: var(--white);
}

/* Base Pagination */
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-gray-400);
}
.pagination-btn {
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-dark-200);
    border-radius: 0.25rem;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s;
}
.pagination-btn:hover {
    background-color: var(--bg-dark-300);
}

/* Floating Bottom Pagination Row */
.bottom-pagination {
    position: sticky;
    bottom: 1.5rem;
    margin: 3rem auto 0;
    width: max-content;
    z-index: 50;
    
    background-color: rgba(15, 15, 15, 0.85); /* var(--bg-dark-100) */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.375rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    align-items: center;
}

@media (min-width: 768px) {
    .bottom-pagination {
        bottom: 2rem;
        margin-left: auto;
        margin-right: 0;
    }
}

.bottom-pagination-btn {
    padding: 0.5rem 1rem;
    background-color: var(--brand-600);
    color: var(--white);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.bottom-pagination-btn:hover {
    background-color: var(--brand-500);
    transform: translateY(-1px);
}

.bottom-pagination-text {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--text-gray-200);
}

/* --- Actress Grid (Search Results/Top of List) --- */
.actress-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 640px) { /* sm */
    .actress-result-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) { /* md */
    .actress-result-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) { /* lg */
    .actress-result-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.actress-result-card {
    display: block;
    background-color: var(--bg-dark-200);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.actress-result-card:hover {
    border-color: rgba(99, 102, 241, 0.5); /* brand-500/50 */
    background-color: var(--bg-dark-300);
}

.act-res-avatar-wrapper {
    position: relative;
    width: 5rem;
    height: 5rem;
    margin: 0 auto 0.75rem auto;
}

.act-res-initials {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--bg-dark-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4b5563; /* gray-600 */
    transition: all 0.3s;
    z-index: 0;
}

.actress-result-card:hover .act-res-initials {
    background-color: var(--bg-dark-50);
    color: var(--brand-500);
}

.act-res-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 10;
    transition: opacity 0.3s;
}

.act-res-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--white);
    transition: color 0.3s;
    margin-bottom: 0.25rem;
}

.actress-result-card:hover .act-res-name {
    color: #818cf8; /* brand-400 */
}

.act-res-ruby {
    font-size: 0.625rem; /* 10px */
    color: var(--text-gray-500);
}

.act-res-count {
    margin-top: 0.75rem;
    padding: 0.125rem 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: inline-block;
}

/* --- Maker Grid --- */
.maker-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 640px) {
    .maker-result-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
    .maker-result-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .maker-result-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.maker-result-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--bg-dark-200);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
    height: 100%;
    min-height: 100px;
}

.maker-result-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background-color: var(--bg-dark-300);
}

.maker-res-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #e5e7eb; /* gray-200 */
    margin-bottom: 0.5rem;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.maker-result-card:hover .maker-res-name {
    color: var(--white);
}

.maker-res-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.maker-res-id {
    font-size: 0.75rem;
    color: var(--text-gray-500);
}

.maker-res-count {
    font-size: 0.75rem;
    background-color: var(--bg-dark-50);
    color: var(--text-gray-400);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.maker-result-card:hover .maker-res-count {
    background-color: rgba(99, 102, 241, 0.2);
    color: #a5b4fc; /* brand-300 */
    border-color: rgba(99, 102, 241, 0.2);
}

/* Breadcrumbs Link fix over generic a */
.breadcrumb-link {
    transition: color 0.2s;
}
.breadcrumb-link:hover {
    color: var(--white);
}

/* Text Truncate Utilities Used */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.text-gray-400 { color: var(--text-gray-400); }
.text-gray-500 { color: var(--text-gray-500); }
.mb-6 { margin-bottom: 1.5rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.text-sm { font-size: 0.875rem; }

/* Orders Desktop/Mobile controls */
.order-1 { order: 1; }
.order-2 { order: 2; }
@media (min-width: 640px) {
    .sm\:order-1 { order: 1; }
    .sm\:order-2 { order: 2; }
}

/* --- Genre Recommended Grid --- */
.genre-rec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
@media (min-width: 640px) {
    .genre-rec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
    .genre-rec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .genre-rec-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.genre-rec-card {
    display: block;
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: var(--bg-dark-200);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.genre-rec-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.genre-rec-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.genre-rec-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.genre-rec-card:hover .genre-rec-img {
    transform: scale(1.05);
}

.genre-rec-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.genre-rec-title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
