/**
 * Oyuncu Detay Sayfası Stilleri
 * Amaç: Oyuncu detay sayfası için özel stiller (actors-page.php ile uyumlu)
 */

/* Breadcrumb Navigation */
.breadcrumb {
    background-color: var(--secondary-bg);
    padding: var(--spacing-md) 0;
    margin-top: 80px; /* Header yüksekliği kadar */
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--accent-dark);
}

.breadcrumb .separator {
    color: var(--text-muted);
    font-weight: bold;
}

.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* Oyuncu Detay Bölümü */
#actor-detail {
    padding: var(--spacing-2xl) 0;
    background-color: var(--primary-bg);
    min-height: 70vh;
}

.actor-detail-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

/* Oyuncu Resmi */
.actor-image-container {
    position: relative;
    border-radius: var(--br-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.actor-image-container:hover {
    transform: translateY(-5px);
}

.actor-detail-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--br-lg);
    transition: transform 0.3s ease;
    border: 2px solid var(--accent-color);
    /* Edge-specific fixes */
    -ms-interpolation-mode: bicubic;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    object-fit: cover;
    max-width: 100%;
}

.actor-image-container:hover .actor-detail-image {
    transform: scale(1.05);
}

/* Oyuncu Bilgileri */
.actor-info-container {
    color: var(--text-primary);
}

.actor-name {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.character-name {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    font-weight: 500;
    font-style: italic;
}

.actor-bio {
    margin-bottom: var(--spacing-xl);
}

.actor-bio h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: var(--spacing-sm);
    display: inline-block;
}

.actor-bio p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: justify;
}

.actor-social {
    background-color: var(--secondary-bg);
    padding: var(--spacing-xl);
    border-radius: var(--br-lg);
    border: 1px solid var(--border-color);
}

.actor-social h3 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.actor-social p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.actor-social a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.actor-social a:hover {
    color: var(--accent-dark);
}

/* Sekme Navigasyonu */
.tab-navigation {
    display: flex;
    margin: var(--spacing-xl) 0;
    background-color: var(--secondary-bg);
    border-radius: 15px;
    padding: 5px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.tab-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    user-select: none;
}

.tab-button:hover {
    color: var(--text-primary);
    background-color: rgba(212, 175, 55, 0.1);
}

.tab-button.active {
    color: var(--accent-color);
    background-color: var(--primary-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.tab-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.tab-button:hover .tab-icon {
    transform: scale(1.1);
}

.tab-button.active .tab-icon {
    transform: scale(1.15);
}

.tab-text {
    font-weight: 600;
}

/* Sekme İçerikleri */
.tab-content {
    position: relative;
    min-height: 300px;
}

.tab-panel {
    display: none !important;
    animation: fadeIn 0.4s ease-in-out;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tab-panel.active {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Karakter ve Oyuncu Bilgi Stilleri */
.character-info,
.actor-info {
    background-color: var(--secondary-bg);
    padding: var(--spacing-xl);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-lg);
}

.character-info h3,
.actor-info h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: var(--spacing-sm);
    display: inline-block;
}

.character-info h4,
.actor-info h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

/* Bilgi Grid Sistemi */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    background-color: var(--primary-bg);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Karakter Açıklaması */
.character-description {
    background-color: var(--primary-bg);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.character-description h4 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.character-description p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Oyuncu Bio Stili */
.actor-bio {
    background-color: var(--primary-bg);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-lg);
}

.actor-bio h4 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.actor-bio p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Sosyal Medya Stili */
.actor-social {
    background-color: var(--primary-bg);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.actor-social h4 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.actor-social p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Diğer Oyuncular Bölümü */
#other-actors {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--secondary-bg) 0%, #0f0f0f 100%);
    position: relative;
}

#other-actors::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

#other-actors h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-2xl);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

#other-actors h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
}

/* Oyuncu Kartları (Diğer Oyuncular) - Modern Tasarım */
#other-actors .grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

#other-actors .actor-card {
    background: linear-gradient(145deg, var(--primary-bg) 0%, #1a1a1a 100%);
    padding: var(--spacing-xl);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

#other-actors .actor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
}

#other-actors .actor-card:hover::before {
    left: 100%;
}

#other-actors .actor-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

#other-actors .actor-link {
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 2;
}

#other-actors .actor-link:hover {
    text-decoration: none;
    color: inherit;
}

#other-actors .actor-image {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    margin-right: var(--spacing-xl);
    margin: 0 var(--spacing-xl) 0 0;
    position: relative;
    transition: all 0.3s ease;
}

#other-actors .actor-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 17px;
}

#other-actors .actor-card:hover .actor-image::before {
    opacity: 1;
}

#other-actors .actor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#other-actors .actor-card:hover .actor-image img {
    transform: scale(1.1);
}

#other-actors .actor-info {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#other-actors .actor-info h4 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.4rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

#other-actors .actor-card:hover .actor-info h4 {
    color: #f4d03f;
}

#other-actors .actor-info .character {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding-left: var(--spacing-sm);
}

#other-actors .actor-info .character::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: bold;
}

#other-actors .actor-info .character::after {
    content: '"';
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: bold;
}

#other-actors .actor-info .bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

#other-actors .actor-card:hover .actor-info .bio {
    opacity: 1;
}

/* View All Button */
.view-all-container {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .actor-detail-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .actor-name {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .character-name {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .actor-bio h3 {
        font-size: 1.1rem;
    }
    
    .actor-bio p {
        font-size: 1rem;
    }
    
    /* Sekme Responsive */
    .tab-navigation {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-button {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }
    
    .tab-icon {
        font-size: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .info-item {
        padding: var(--spacing-sm);
    }
    
    .character-info,
    .actor-info {
        padding: var(--spacing-lg);
    }
    
    .character-description,
    .actor-bio,
    .actor-social {
        padding: var(--spacing-md);
    }
    
    #other-actors h2 {
        font-size: 2rem;
    }
    
    #other-actors .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .breadcrumb {
        margin-top: 70px;
    }
    
    .breadcrumb .container {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
    
    #other-actors .actor-card {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-lg);
        border-radius: 16px;
    }
    
    #other-actors .actor-image {
        width: 120px;
        height: 120px;
        margin: 0 auto var(--spacing-md);
        border-radius: 16px;
    }
    
    #other-actors .actor-info {
        text-align: center;
    }
    
    #other-actors .actor-info h4 {
        font-size: 1.2rem;
    }
    
    #other-actors .actor-info .character {
        font-size: 0.9rem;
        padding-left: 0;
    }
    
    #other-actors .actor-info .character::before,
    #other-actors .actor-info .character::after {
        display: none;
    }
    
    #other-actors .actor-info .bio {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .actor-name {
        font-size: 1.8rem;
    }
    
    .character-name {
        font-size: 1rem;
    }
    
    .actor-detail-content {
        gap: var(--spacing-lg);
    }
    
    #actor-detail {
        padding: var(--spacing-xl) 0;
    }
    
    #other-actors {
        padding: var(--spacing-xl) 0;
    }
    
    #other-actors h2 {
        font-size: 1.8rem;
    }
    
    #other-actors .actor-card {
        padding: var(--spacing-md);
        border-radius: 12px;
    }
    
    #other-actors .actor-image {
        width: 100px;
        height: 100px;
        border-radius: 12px;
    }
    
    #other-actors .actor-info h4 {
        font-size: 1.1rem;
    }
    
    #other-actors .actor-info .character {
        font-size: 0.85rem;
    }
    
    #other-actors .actor-info .bio {
        font-size: 0.85rem;
    }
    
    /* Sekme Küçük Ekran */
    .tab-button {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.85rem;
    }
    
    .tab-icon {
        font-size: 0.9rem;
    }
    
    .character-info h3,
    .actor-info h3 {
        font-size: 1.3rem;
    }
    
    .character-info h4,
    .actor-info h4 {
        font-size: 1rem;
    }
    
    .info-value {
        font-size: 1rem;
    }
    
    .info-label {
        font-size: 0.8rem;
    }
}

/* Loading Animation */
.actor-detail-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.actor-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hover-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--br-lg);
}

.actor-image-container:hover::before {
    opacity: 1;
}

/* SEO ve Erişilebilirlik */
.actor-detail-image {
    alt: attr(alt);
}

.actor-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: var(--br-lg);
}

/* FAQ Section Styles - Sayfa tasarımıyla uyumlu */
.faq-section {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, #0f0f0f 100%);
    padding: var(--spacing-2xl) 0;
    margin-top: var(--spacing-2xl);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.faq-section h2 {
    text-align: center;
    color: var(--accent-color);
    margin-bottom: var(--spacing-2xl);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
}

.faq-container {
    display: grid;
    gap: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-item {
    background: linear-gradient(145deg, var(--primary-bg) 0%, #1a1a1a 100%);
    padding: var(--spacing-xl);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
}

.faq-item:hover::before {
    left: 100%;
}

.faq-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

.faq-item h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-lg);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.faq-item:hover h3 {
    color: #f4d03f;
}

.faq-item p {
    color: var(--text-primary);
    line-height: 1.7;
    margin: 0;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.faq-item:hover p {
    opacity: 0.95;
}

.faq-item strong {
    color: var(--accent-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.faq-item:hover strong {
    color: #f4d03f;
}

/* FAQ Responsive - Sayfa tasarımıyla uyumlu */
@media (max-width: 768px) {
    .faq-section h2 {
        font-size: 2rem;
    }
    
    .faq-container {
        gap: var(--spacing-lg);
    }
    
    .faq-item {
        padding: var(--spacing-lg);
        border-radius: 16px;
    }
    
    .faq-item h3 {
        font-size: 1.2rem;
    }
    
    .faq-item p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: var(--spacing-xl) 0;
    }
    
    .faq-section h2 {
        font-size: 1.5rem;
    }
    
    .faq-container {
        gap: var(--spacing-md);
    }
    
    .faq-item {
        padding: var(--spacing-md);
        border-radius: 12px;
    }
    
    .faq-item h3 {
        font-size: 1.1rem;
    }
    
    .faq-item p {
        font-size: 0.95rem;
    }
}

/* Edge-specific fixes */
@supports (-ms-ime-align: auto) {
    .actor-detail-image {
        -ms-interpolation-mode: bicubic;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .actor-image-container {
        overflow: hidden;
        position: relative;
    }
}

/* Print Styles */
@media print {
    .breadcrumb,
    #other-actors,
    .actor-social,
    .faq-section {
        display: none;
    }
    
    .actor-detail-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .actor-name {
        color: #000 !important;
    }
}
