/* ============================================
   FOTOĞRAF DETAY SAYFASI CSS
   ============================================ */

/* Container */
.detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
}

.breadcrumb a {
    color: #e10600;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: #ff6b00;
}

.breadcrumb span {
    color: #64748b;
}

/* ============================================
   ANA FOTOĞRAF KARTI
   ============================================ */
.photo-main-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    transition: transform 0.3s;
}

/* Fotoğraf Alanı */
.photo-image {
    position: relative;
    background: #0a0a0a;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-image img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    transition: opacity 0.3s;
}

/* Zoom Butonu */
.zoom-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    backdrop-filter: blur(5px);
}

.zoom-btn:hover {
    background: #e10600;
    transform: scale(1.05);
}

/* ============================================
   FOTOĞRAF BİLGİLERİ
   ============================================ */
.photo-info {
    padding: 35px;
}

.photo-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
    line-height: 1.3;
}

.photo-description {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* ============================================
   META BİLGİLER
   ============================================ */
.photo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf2f7;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-icon {
    width: 42px;
    height: 42px;
    background: #f1f5f9;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.meta-icon i {
    font-size: 20px;
    color: #e10600;
}

.meta-text {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.meta-value a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s;
}

.meta-value a:hover {
    color: #e10600;
}

/* ============================================
   AKSİYON BUTONLARI
   ============================================ */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-action {
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-like {
    background: linear-gradient(135deg, #e10600, #ff6b00);
    color: white;
}

.btn-like:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(225, 6, 0, 0.3);
}

.btn-like:disabled {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}

.btn-download {
    background: #1e293b;
    color: white;
}

.btn-download:hover {
    background: #e10600;
    transform: translateY(-2px);
}

.btn-share {
    background: #f1f5f9;
    color: #1e293b;
}

.btn-share:hover {
    background: #e10600;
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   BENZER FOTOĞRAFLAR
   ============================================ */
.similar-section {
    margin-top: 40px;
}

.similar-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.similar-title i {
    color: #e10600;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.similar-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.similar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.similar-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s;
}

.similar-card:hover img {
    transform: scale(1.02);
}

.similar-info {
    padding: 12px;
}

.similar-info h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1e293b;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.similar-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #94a3b8;
}

.similar-stats i {
    color: #e10600;
    margin-right: 3px;
}

/* ============================================
   MODALLAR (Zoom & Share)
   ============================================ */

/* Zoom Modal */
.zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.zoom-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.zoom-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.share-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.share-content {
    background: white;
    border-radius: 24px;
    padding: 35px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease;
}

.share-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1e293b;
}

.share-content h3 i {
    color: #e10600;
    margin-right: 10px;
}

/* Share Butonları */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
}

.share-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-pinterest { background: #e60023; }
.share-whatsapp { background: #25d366; }
.share-copy {
    background: #1e293b;
}

/* Close Button */
.close-share {
    margin-top: 10px;
    padding: 10px 24px;
    background: #f1f5f9;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.close-share:hover {
    background: #e2e8f0;
}
.share-telegram {
    background: #0088cc;
    color: white;
}

.share-telegram:hover {
    background: #006699;
}
/* ============================================
   ANİMASYONLAR
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet (992px - 1200px) */
@media (max-width: 1200px) {
    .similar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet (768px - 992px) */
@media (max-width: 992px) {
    .detail-container {
        padding: 30px 15px;
    }
    
    .photo-info {
        padding: 25px;
    }
    
    .photo-info h1 {
        font-size: 24px;
    }
    
    .photo-meta {
        gap: 20px;
    }
    
    .similar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobil (576px - 768px) */
@media (max-width: 768px) {
    .detail-container {
        padding: 20px 15px;
    }
    
    .photo-info {
        padding: 20px;
    }
    
    .photo-info h1 {
        font-size: 20px;
    }
    
    .photo-description {
        font-size: 14px;
    }
    
    .photo-meta {
        gap: 15px;
        justify-content: center;
    }
    
    .meta-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .btn-action {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .similar-title {
        font-size: 20px;
        justify-content: center;
    }
    
    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .share-content {
        padding: 25px;
    }
    
    .share-content h3 {
        font-size: 20px;
    }
    
    .share-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* Küçük Mobil (320px - 576px) */
@media (max-width: 576px) {
    .photo-info h1 {
        font-size: 18px;
    }
    
    .photo-description {
        font-size: 13px;
    }
    
    .meta-icon {
        width: 35px;
        height: 35px;
    }
    
    .meta-icon i {
        font-size: 16px;
    }
    
    .meta-label {
        font-size: 10px;
    }
    
    .meta-value {
        font-size: 12px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-action {
        justify-content: center;
        width: 100%;
    }
    
    .similar-grid {
        grid-template-columns: 1fr;
    }
    
    .similar-card img {
        height: 180px;
    }
    
    .share-buttons {
        gap: 12px;
    }
    
    .share-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Çok Küçük Cihazlar (320px altı) */
@media (max-width: 380px) {
    .photo-info {
        padding: 15px;
    }
    
    .photo-meta {
        gap: 12px;
    }
    
    .meta-icon {
        width: 30px;
        height: 30px;
    }
    
    .meta-icon i {
        font-size: 14px;
    }
    
    .share-buttons {
        gap: 10px;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ============================================
   DOKUNMATİK CİHAZLAR İÇİN İYİLEŞTİRMELER
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .btn-action:hover,
    .similar-card:hover,
    .share-btn:hover,
    .zoom-btn:hover {
        transform: none;
    }
    
    .btn-action:active {
        transform: scale(0.98);
    }
    
    .similar-card:active {
        transform: scale(0.98);
    }
    
    /* Dokunma alanı büyütme */
    .btn-action,
    .zoom-btn,
    .share-btn,
    .close-share {
        min-height: 44px;
    }
    
    .similar-card {
        cursor: pointer;
    }
}

/* ============================================
   KARANLIK MOD DESTEĞİ (İsteğe bağlı)
   ============================================ */
@media (prefers-color-scheme: dark) {
    .photo-main-card {
        background: #1e293b;
    }
    
    .photo-info h1,
    .similar-title {
        color: #f1f5f9;
    }
    
    .photo-description {
        color: #cbd5e1;
    }
    
    .meta-icon {
        background: #334155;
    }
    
    .meta-value,
    .meta-value a {
        color: #f1f5f9;
    }
    
    .btn-share {
        background: #334155;
        color: #f1f5f9;
    }
    
    .similar-card {
        background: #1e293b;
    }
    
    .similar-info h4 {
        color: #f1f5f9;
    }
}

#zoomModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#zoomModal.show {
    display: flex !important;
}

#zoomModal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}