/* Find Page Sidebar Layout Styles */
/* Extends movieslist_sidebar.css patterns for find.php sidebar redesign */

/* ==========================================
   1. LAYOUT CONTAINER
   ========================================== */

.find-layout-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 20px;
}

/* ==========================================
   2. SIDEBAR
   ========================================== */

.find-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ==========================================
   3. MAIN CONTENT
   ========================================== */

.find-content {
    flex-grow: 1;
    min-width: 0;
}

/* ==========================================
   4. SIDEBAR SECTIONS (reuse movieslist patterns)
   ========================================== */

.find-sidebar .sidebar-section {
    border-bottom: 1px solid #f0f0f0;
}

.find-sidebar .sidebar-section:last-child {
    border-bottom: none;
}

.find-sidebar .sidebar-header {
    background: #f9f9f9;
    padding: 12px 15px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 3px solid transparent;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.find-sidebar .sidebar-header:hover {
    background: #f0f0f0;
}

/* Chevron indicator */
.find-sidebar .sidebar-header::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 8px;
}

/* Collapsed state */
.find-sidebar .sidebar-section.collapsed .sidebar-header::after {
    transform: rotate(-45deg);
}

.find-sidebar .sidebar-section.collapsed .sidebar-body {
    display: none;
}

.find-sidebar .sidebar-header.active {
    border-left-color: #44c767;
}

.find-sidebar .sidebar-body {
    padding: 15px;
    font-size: 13px;
}

/* ==========================================
   5. SIDEBAR LIST
   ========================================== */

.find-sidebar .sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.find-sidebar .sidebar-list li {
    margin-bottom: 8px;
}

.find-sidebar .sidebar-list li:last-child {
    margin-bottom: 0;
}

.find-sidebar .sidebar-list a {
    display: block;
    color: #555;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}

.find-sidebar .sidebar-list a:hover {
    color: #d95e11;
    padding-left: 3px;
}

.find-sidebar .sidebar-list a.active {
    color: #44c767;
    font-weight: bold;
}

/* ==========================================
   6. SIDEBAR TAGS
   ========================================== */

.find-sidebar .sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.find-sidebar .sidebar-tag {
    background: #f0f0f0;
    color: #444;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    text-decoration: none;
    transition: background 0.2s;
}

.find-sidebar .sidebar-tag:hover {
    background: #d95e11;
    color: #fff;
}

.find-sidebar .sidebar-tag.active {
    background: #44c767;
    color: #fff;
}

/* ==========================================
   7. SIDEBAR FORM ELEMENTS
   ========================================== */

.find-sidebar .sidebar-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    color: #333;
    margin-bottom: 10px;
}

.find-sidebar .sidebar-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.find-sidebar .sidebar-input:focus,
.find-sidebar .sidebar-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
}

.find-sidebar .sidebar-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #44c767;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 5px;
    border: 1px solid #3ca85a;
    cursor: pointer;
    font-size: 13px;
}

.find-sidebar .sidebar-btn:hover {
    background: #3ca85a;
}

/* ==========================================
   8. SIDEBAR TALENT ITEMS (Awards)
   ========================================== */

.find-sidebar .talent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f5f5f5;
}

.find-sidebar .talent-item:last-child {
    border-bottom: none;
}

.find-sidebar .talent-item a {
    color: #555;
    text-decoration: none;
    font-size: 13px;
}

.find-sidebar .talent-item a:hover {
    color: #d95e11;
}

.find-sidebar .talent-stats {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}

/* ==========================================
   9. SIDEBAR GENRE/TAG PILLS (Person modes)
   ========================================== */

.find-sidebar .sidebar-genre-pills,
.find-sidebar .sidebar-tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.find-sidebar .sidebar-genre-pill {
    background: #e8eaf6;
    color: #3949ab;
    padding: 4px 10px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 11px;
    border: 1px solid #c5cae9;
}

.find-sidebar .sidebar-genre-pill:hover {
    background: #3949ab;
    color: #fff;
}

.find-sidebar .sidebar-tag-pill {
    background: #f5f5f5;
    color: #555;
    padding: 3px 10px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 11px;
    border: 1px solid #e0e0e0;
}

.find-sidebar .sidebar-tag-pill:hover {
    background: #555;
    color: #fff;
}

/* ==========================================
   10. SIDEBAR COLLABORATORS (Person modes)
   ========================================== */

.find-sidebar .collab-section {
    margin-top: 10px;
}

.find-sidebar .collab-section h5 {
    font-size: 12px;
    color: #888;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.find-sidebar .collab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.find-sidebar .collab-link {
    background: #f0f0f0;
    color: #555;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    text-decoration: none;
}

.find-sidebar .collab-link:hover {
    background: #d95e11;
    color: #fff;
}

.find-sidebar .collab-link.director {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
}

.find-sidebar .collab-link.director:hover {
    background: #e65100;
    color: #fff;
}

/* ==========================================
   11. SIDEBAR CRITICS TAB (compact)
   ========================================== */

.find-sidebar .sidebar-critics-tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.find-sidebar .sidebar-critics-tab {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #555;
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.2s;
}

.find-sidebar .sidebar-critics-tab:hover {
    background: #f0f0f0;
}

.find-sidebar .sidebar-critics-tab.active {
    background: #333;
    color: #fff;
}

/* ==========================================
   12. OVERRIDE LEGACY ELEMENTS IN SIDEBAR
   ========================================== */

.find-sidebar .sortcatg {
    background: transparent !important;
    text-align: left !important;
    padding: 0 !important;
    margin: 0 !important;
}

.find-sidebar .sortcatg li {
    display: block !important;
    padding: 2px 0 !important;
    margin: 0 0 5px 0 !important;
}

.find-sidebar .starcast {
    background: transparent !important;
    text-align: left !important;
    padding: 0 !important;
    border: none !important;
}

/* Year navigation in sidebar - compact */
.find-sidebar .year-nav-container {
    max-height: none;
}

.find-sidebar .year-nav-container a {
    font-size: 12px;
}

/* ==========================================
   13. CONTENT HEADER
   ========================================== */

.find-content-header {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e0e0e0;
    border-left: 4px solid #44c767;
    border-radius: 4px;
}

.find-content-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #44c767;
    margin-bottom: 4px;
}

.find-content-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.find-content-subtitle {
    font-size: 13px;
    color: #777;
    margin-bottom: 2px;
}

.find-content-desc {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    line-height: 1.5;
}

.find-content-count {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}

/* Stats grid inside content header */
.find-content-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e8e8e8;
}

.find-stat {
    text-align: center;
    min-width: 70px;
}

.find-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

.find-stat-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

/* Back link inside content header */
.find-content-backlink {
    margin-top: 10px;
}

.find-content-backlink a {
    font-size: 13px;
    color: #44c767;
    text-decoration: none;
}

.find-content-backlink a:hover {
    text-decoration: underline;
}

/* Certificate accent variant */
.find-content-header.cert-accent {
    border-left-color: #ff9800;
}

/* Metacritic bar (enrichment) */
.metacritic-bar-container {
    margin: 15px 0;
    max-width: 600px;
}

/* ==========================================
   14. RESPONSIVE
   ========================================== */

@media (max-width: 800px) {
    .find-layout-container {
        flex-direction: column;
    }

    .find-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
}
