/**
 * Franchise Character CSS
 * Styling for franchise character pages with the URL structure /franchises/franchise-name/character
 */

/* Main container styling */
.character-profile-wrapper {
    margin-bottom: 40px;
}

/* Breadcrumb navigation */
.franchise-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.franchise-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
}

.franchise-breadcrumb a:hover {
    text-decoration: underline;
}

/* Character header section */
.character-header {
    display: flex;
    flex-direction: row;
    margin-bottom: 30px;
    align-items: flex-start;
}

/* Character image styling */
.character-image-container {
    flex: 0 0 200px;
    margin-right: 20px;
}

.character-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Character info */
.character-info {
    flex: 1;
}

.character-name {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    color: #333;
}

.character-media {
    margin-bottom: 15px;
    font-size: 16px;
}

.character-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Section titles */
.section-title {
    font-size: 22px;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    color: #333;
}

/* Voice actors grid */
.voice-actors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.voice-actor-card {
    flex: 0 0 calc(50% - 10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.voice-actor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.voice-actor-language {
    background: #0073aa;
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.voice-actor-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
}

.voice-actor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.voice-actor-name {
    font-size: 16px;
    text-align: center;
    margin: 10px 0 0;
}

.voice-actor-name a {
    color: #333;
    text-decoration: none;
}

.voice-actor-name a:hover {
    color: #0073aa;
}

/* Characters grid */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.character-card {
    background: #f9f9f9;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.character-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.character-card .character-image {
    width: 100%;
    height: 150px;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.character-card .character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-card .character-name {
    font-size: 16px;
    margin: 10px 0 5px;
    text-align: center;
}

/* Appearances list */
.appearances-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.appearance-item {
    display: flex;
    background: #f9f9f9;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.appearance-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.appearance-image {
    flex: 0 0 100px;
    height: 100px;
    margin-right: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.appearance-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.appearance-details {
    flex: 1;
}

.appearance-details h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.appearance-details h3 a {
    color: #333;
    text-decoration: none;
}

.appearance-details h3 a:hover {
    color: #0073aa;
}

.appearance-type {
    font-size: 14px;
    color: #666;
}

.no-image {
    background-color: #f0f0f0;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-radius: 5px;
    font-size: 14px;
}

/* Franchise image */
.franchise-image {
    margin-bottom: 20px;
    text-align: center;
}

.franchise-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .character-header {
        flex-direction: column;
    }
    
    .character-image-container {
        margin-right: 0;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .character-image {
        max-width: 200px;
    }
    
    .voice-actors-grid {
        flex-direction: column;
    }
    
    .voice-actor-card {
        flex: 0 0 100%;
    }
    
    .characters-grid, 
    .appearances-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .appearance-item {
        flex-direction: column;
        text-align: center;
    }
    
    .appearance-image {
        margin-right: 0;
        margin-bottom: 15px;
        height: 120px;
    }
    
    .filter-row {
        flex-wrap: wrap;
    }
    
    .filter-label {
        flex: 0 0 100%;
        margin-bottom: 5px;
    }
    
    .filter-select {
        flex: 1;
    }
    
    .media-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .characters-grid, 
    .appearances-list {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select {
        margin-bottom: 10px;
        margin-right: 0;
    }
}

/* Character Filters Styles */
.character-filters {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.filter-label {
    font-weight: bold;
    margin-right: 10px;
    min-width: 60px;
}

.filter-select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    background-color: white;
}

.search-row {
    margin-bottom: 15px;
}

.character-search-form {
    display: flex;
    position: relative;
}

.search-field {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #777;
    cursor: pointer;
}

.media-type-tabs {
    border-bottom: 1px solid #ddd;
}

.media-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.media-tabs li {
    margin: 0;
    padding: 0;
}

.media-tabs li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    border-bottom: 3px solid transparent;
}

.media-tabs li.active a {
    border-bottom-color: #1565c0;
    color: #1565c0;
}

/* Character Versions Grid */
.character-versions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.character-version-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.character-version-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.version-media {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.version-image {
    flex: 0 0 80px;
    height: 80px;
    margin-right: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.version-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.version-details {
    flex: 1;
}

.version-title {
    margin: 0 0 5px;
    font-size: 18px;
}

.version-meta {
    font-size: 14px;
    color: #666;
}

.version-media-info {
    padding: 15px;
}

.media-title {
    margin: 0 0 5px;
    font-size: 16px;
}

.media-title a {
    color: #1565c0;
    text-decoration: none;
}

.media-release {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.version-voice-actors {
    margin-top: 10px;
}

.version-va {
    margin-bottom: 5px;
    font-size: 14px;
}

.va-language {
    font-weight: bold;
    margin-right: 5px;
}

.va-name {
    color: #1565c0;
    text-decoration: none;
}

.no-versions-found {
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 5px;
    color: #666;
} 