/* Filmography Shared Styles */

/* Main Container */
.filmography-stats-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 10px auto;
    max-width: 95%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.stat-item {
    padding: 5px;
}

.stat-value {
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
}

.stat-label {
    font-size: 0.85em;
    color: #777;
    margin-top: 2px;
}

/* Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.insight-box h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #444;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    display: inline-block;
}

/* Actor Theme Overrides */
.actor-theme .insight-box h4 {
    border-bottom-color: #9c27b0;
}

/* Genre Bars */
.genre-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.9em;
}

.genre-name {
    width: 30%;
    text-align: right;
    padding-right: 10px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-bar {
    flex-grow: 1;
    background-color: #e0e0e0;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #3498db;
    transition: width 0.5s ease-out;
}

.actor-theme .progress-fill {
    background-color: #9c27b0;
}

.genre-count {
    width: 30px;
    padding-left: 8px;
    font-size: 0.85em;
    color: #666;
}

/* Collaborators */
.collaborators-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.collaborator-tag {
    background-color: #e8f5e9;
    color: #2e7d32 !important;
    padding: 4px 10px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.9em;
    border: 1px solid #c8e6c9;
    transition: background-color 0.2s;
}

.collaborator-tag:hover {
    background-color: #c8e6c9;
}

.actor-theme .collaborator-tag {
    background-color: #f3e5f5;
    color: #7b1fa2 !important;
    border-color: #e1bee7;
}

.actor-theme .collaborator-tag:hover {
    background-color: #e1bee7;
}

.collaborator-tag .count {
    font-size: 0.8em;
    opacity: 0.8;
}

/* Pagination */
.pagination-container {
    text-align: center;
    margin: 20px 0;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }
}