/* Koç Detay Sayfası Stilleri */
.coach-detail-page {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb-container {
    max-width: 1400px;
    margin: 1rem auto 0;
    padding: 0 2rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

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

.breadcrumb .separator {
    margin: 0 0.5rem;
}

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

/* Koç Detay Container */
.coach-detail-container {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    margin-top: 2rem;
    align-items: flex-start;
}

/* Sol Taraf */
.coach-detail-left {
    flex: 0 0 350px;
    width: 350px;
    max-width: 350px;
}

.coach-image-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
    padding-bottom: 133.33%; /* 4:3 aspect ratio */
}

.coach-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Koç Özellikleri */
.coach-features {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.feature:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.feature-icon img {
    width: 24px;
    height: 24px;
}

.feature-text h4 {
    font-size: 1rem;
    margin: 0 0 0.3rem 0;
    color: #333;
}

.feature-text p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Sağ Taraf */
.coach-detail-right {
    flex: 1;
    min-width: 0; /* Allow shrinking below content size */
}

.coach-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1rem 0;
    word-wrap: break-word; /* Ensure long names wrap properly */
}

.coach-price {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 0.5rem; /* Add gap between wrapped items */
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 1rem;
}

.old-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 1rem;
}

.discount {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.coach-availability {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.availability-icon {
    color: #2e7d32;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.availability-text {
    color: #2e7d32;
    font-weight: 500;
}

.buy-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.buy-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color-dark);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.buy-button:hover:before {
    opacity: 1;
}

.buy-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.coach-description {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.coach-description p {
    margin: 0;
    color: #555;
    font-size: 1rem;
}

.coach-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

.info-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.info-value {
    font-weight: 600;
    color: #333;
    word-break: break-word; /* Ensure long values wrap properly */
}

/* Responsive Tasarım */
@media (max-width: 992px) {
    .coach-detail-container {
        gap: 2rem;
    }
    
    .coach-detail-left {
        flex: 0 0 300px;
        width: 300px;
        max-width: 300px;
    }
    
    .coach-name {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .coach-detail-page {
        padding: 1.5rem;
    }
    
    .breadcrumb-container {
        padding: 0 1.5rem;
    }
    
    .coach-detail-container {
        flex-direction: column; /* Stack vertically on tablets */
        gap: 2rem;
    }
    
    /* Mobil düzende sıralama için özel sınıflar */
    .coach-detail-left {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        order: 1; /* Mobilde en üstte */
    }
    
    .coach-image-container {
        padding-bottom: 133.33%; /* Dikey formatı koru (4:3 aspect ratio) */
        max-width: 300px; /* Daha küçük maksimum genişlik */
        margin: 0 auto 1.5rem;
    }
    
    .coach-name {
        font-size: 2rem;
        text-align: center;
        order: 2; /* İsim fotoğrafın altında */
    }
    
    .coach-info {
        grid-template-columns: 1fr;
        order: 3; /* Üniversite, bölüm bilgileri ismin altında */
        margin-bottom: 1.5rem;
    }
    
    .coach-price {
        justify-content: center;
        order: 4;
    }
    
    .coach-availability {
        justify-content: center;
        order: 5;
    }
    
    .buy-button {
        max-width: 400px;
        margin: 0 auto 2rem;
        order: 6; /* Satın al butonu bilgilerden sonra */
    }
    
    .coach-description {
        text-align: center;
        order: 7; /* Açıklama satın al butonundan sonra */
    }
    
    .coach-accordion {
        order: 8; /* Akordiyon açıklamadan sonra */
    }
    
    .coach-features {
        max-width: 400px;
        margin: 2rem auto;
        order: 9; /* Özellikler en altta */
    }
    
    /* Mobil düzende sıralama için flex container */
    .coach-detail-right {
        display: flex;
        flex-direction: column;
        order: 2;
    }
    
    /* Mobil düzende öğeleri yeniden sıralamak için */
    .mobile-order-wrapper {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .coach-detail-page {
        padding: 1rem;
    }
    
    .breadcrumb-container {
        padding: 0 1rem;
    }
    
    .coach-image-container {
        max-width: 250px; /* Daha da küçük maksimum genişlik */
    }
    
    .coach-name {
        font-size: 1.8rem;
    }
    
    .current-price {
        font-size: 1.6rem;
    }
    
    .old-price {
        font-size: 1rem;
    }
    
    .feature-text h4 {
        font-size: 0.9rem;
    }
    
    .feature-text p {
        font-size: 0.8rem;
    }
    
    .accordion-header {
        padding: 12px;
    }
    
    .accordion-header span {
        font-size: 0.9rem;
    }
}

/* Akordiyon Stilleri */
.coach-accordion {
    margin-top: 30px;
    width: 100%;
}

.accordion-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.accordion-header:hover {
    background-color: #e9ecef;
}

.accordion-header img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.accordion-header .arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.accordion-item.active .arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
}

.accordion-item.active .accordion-content {
    max-height: 2000px; /* Increased to accommodate more content */
    padding: 1.5rem;
    transition: max-height 0.5s ease-in-out, padding 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.accordion-item.active {
    margin-bottom: 20px;
}

/* Koçluk İçeriği Listesi Stilleri */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.feature-list .check-icon {
    color: #7d4eff;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Süreç Adımları */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.process-step {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.process-step:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 0.8rem 0;
    display: flex;
    align-items: center;
}

.step-description {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .process-step {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .process-steps {
        gap: 0.8rem;
    }
    
    .process-step {
        padding: 1rem;
    }
    
    .step-title {
        font-size: 1rem;
    }
    
    .step-description {
        font-size: 0.9rem;
    }
}

/* Yükleme ve Hata Mesajları */
.loading-container, 
.error-message {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
}

/* Touch Device Optimizations */
@media (hover: none) {
    .accordion-header:hover {
        background-color: #f8f9fa; /* Reset hover effect on touch devices */
    }
    
    .accordion-header:active {
        background-color: #e9ecef; /* Use active state instead */
    }
    
    /* Remove hover effects for touch devices, but keep active state */
    .buy-button:hover {
        transform: none;
        box-shadow: none;
    }
    
    .buy-button:hover:before {
        opacity: 0;
    }
    
    .buy-button:active {
        background-color: var(--primary-color-dark);
    }
}

/* Debug Panel */
#debug-info {
    z-index: 9999; /* Ensure it's above everything */
}

/* Fallback hover effect for browsers that might not support :before properly */
@media all {
    .buy-button:hover {
        background-color: var(--primary-color-dark);
    }
}

/* Modern browsers with :before support */
@supports (content: '') {
    .buy-button:hover {
        background-color: var(--primary-color); /* Keep original background */
    }
    
    .buy-button:hover:before {
        opacity: 1;
    }
}

/* Koç Hakkında Bölümü Kutucuk Stilleri */
.coach-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.5rem;
    padding: 0.5rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.detail-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.detail-item:nth-child(1) { animation-delay: 0.1s; }
.detail-item:nth-child(2) { animation-delay: 0.2s; }
.detail-item:nth-child(3) { animation-delay: 0.3s; }
.detail-item:nth-child(4) { animation-delay: 0.4s; }

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

.detail-item:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px 0 0 2px;
}

.detail-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.8rem 0;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.detail-item h4 i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.detail-item p {
    margin: 0;
    color: #555;
    font-size: 1rem;
    font-weight: 500;
}

/* Mobil cihazlar için düzenleme */
@media (max-width: 768px) {
    .coach-details-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
        gap: 1rem;
    }
    
    .detail-item {
        padding: 1.2rem;
    }
    
    .detail-item h4 {
        font-size: 0.95rem;
        padding-bottom: 0.6rem;
    }
    
    .detail-item p {
        font-size: 0.9rem;
    }
}
