/* Duvar Kağıdı Detay Sayfası Stilleri */

/* Hero Bölümü */
.detail-hero {
    position: relative;
    background: linear-gradient(135deg, #4b6cb7, #182848);
    padding: 120px 0 80px;
    color: #fff;
    overflow: hidden;
}

.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb a i {
    margin-right: 8px;
}

.detail-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.detail-category {
    font-size: 1.1rem;
    opacity: 0.9;
}

.detail-category span {
    font-weight: 500;
}

/* Ana İçerik Düzeni */
.detail-content {
    padding: 60px 0;
    background-color: #f7f9fc;
}

.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Görsel Gösterici */
.detail-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.wallpaper-viewer {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.viewer-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.viewer-tools {
    display: flex;
    gap: 15px;
}

.tool-button {
    background: none;
    border: none;
    color: #555;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.tool-button:hover {
    background: #f5f7fa;
    color: #3498db;
}

.tool-button i {
    margin-right: 8px;
}

.quality-badge {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.viewer-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.wallpaper-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #777;
    z-index: 1;
}

.wallpaper-spinner i {
    font-size: 2rem;
    color: #3498db;
}

.wallpaper-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    z-index: 2;
    transition: all 0.3s ease;
}

.viewer-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
}

.wallpaper-actions {
    display: flex;
    gap: 15px;
}

.action-button {
    background: none;
    border: none;
    color: #555;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.action-button:hover {
    background: #f5f7fa;
    color: #3498db;
}

.action-button i {
    margin-right: 8px;
}

.viewer-stats {
    display: flex;
    gap: 20px;
    color: #777;
    font-size: 0.9rem;
}

.viewer-stats span {
    display: flex;
    align-items: center;
}

.viewer-stats i {
    margin-right: 8px;
}

/* Duvar Kağıdı Araçları */
.wallpaper-tools {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.wallpaper-tools h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #333;
    position: relative;
    padding-bottom: 12px;
}

.wallpaper-tools h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-radius: 3px;
}

.tools-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.tools-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.tools-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #555;
}

/* Format Seçenekleri */
.format-options {
    display: flex;
    gap: 10px;
}

.format-option {
    flex: 1;
    background: #f5f7fa;
    border: 2px solid transparent;
    color: #555;
    padding: 10px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.format-option:hover {
    background: #eef2f7;
}

.format-option.active {
    background: #e6f7ff;
    border-color: #3498db;
    color: #3498db;
}

/* Çözünürlük Seçenekleri */
.resolution-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.resolution-option {
    background: #f5f7fa;
    border: 2px solid transparent;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resolution-option:hover {
    background: #eef2f7;
}

.resolution-option.active {
    background: #e6f7ff;
    border-color: #3498db;
    color: #3498db;
}

.res-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.res-size {
    font-size: 0.85rem;
    color: #777;
}

.resolution-option.active .res-size {
    color: #3498db;
}

/* Ölçeklendirme Seçenekleri */
.scaling-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scaling-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.scaling-option input {
    cursor: pointer;
}

.scaling-option label {
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
}

/* İndirme Seçenekleri */
.download-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-button {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.2);
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(46, 204, 113, 0.25);
}

.download-info {
    padding: 12px;
    background: #f5f7fa;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #666;
}

.download-info p {
    margin: 5px 0;
}

.download-info span {
    font-weight: 500;
    color: #444;
}

/* Yan Panel - Bilgiler ve Öneriler */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Duvar Kağıdı Bilgileri */
.wallpaper-info {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.wallpaper-info h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #333;
    position: relative;
    padding-bottom: 12px;
}

.wallpaper-info h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-radius: 3px;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #777;
    font-size: 0.95rem;
}

.info-value {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

/* Etiketler */
.tags-container h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #555;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f0f2f5;
    color: #555;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag:hover {
    background: #e6e9ed;
    color: #3498db;
}

/* Benzer Duvar Kağıtları */
.similar-wallpapers {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.similar-wallpapers h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #333;
    position: relative;
    padding-bottom: 12px;
}

.similar-wallpapers h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-radius: 3px;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.similar-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.similar-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.similar-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.similar-item:hover img {
    transform: scale(1.05);
}

.similar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

/* Paylaşım Modalı */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.modal-content h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.share-option {
    background: #f5f7fa;
    border: none;
    color: #555;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.share-option:hover {
    background: #eef2f7;
}

.share-option i {
    font-size: 1.1rem;
}

.share-option[data-platform="facebook"] {
    background: #f5f7fa;
    color: #3b5998;
}

.share-option[data-platform="facebook"]:hover {
    background: rgba(59, 89, 152, 0.1);
}

.share-option[data-platform="twitter"] {
    background: #f5f7fa;
    color: #1da1f2;
}

.share-option[data-platform="twitter"]:hover {
    background: rgba(29, 161, 242, 0.1);
}

.share-option[data-platform="pinterest"] {
    background: #f5f7fa;
    color: #bd081c;
}

.share-option[data-platform="pinterest"]:hover {
    background: rgba(189, 8, 28, 0.1);
}

.share-option[data-platform="whatsapp"] {
    background: #f5f7fa;
    color: #25d366;
}

.share-option[data-platform="whatsapp"]:hover {
    background: rgba(37, 211, 102, 0.1);
}

.share-link {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.share-link p {
    margin-bottom: 10px;
    color: #555;
    font-size: 0.95rem;
}

.copy-link {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.copy-link input {
    flex-grow: 1;
    padding: 12px;
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: #666;
    background: #f9f9f9;
}

.copy-link button {
    background: #f5f7fa;
    border: none;
    padding: 0 15px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-link button:hover {
    background: #eef2f7;
    color: #3498db;
}

/* Tam Ekran Modu */
.fullscreen-mode .wallpaper-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #000;
    border-radius: 0;
}

.fullscreen-mode .viewer-container {
    height: calc(100% - 110px);
}

.fullscreen-mode .wallpaper-preview {
    max-height: 100%;
}

/* Yakınlaştırma Modu */
.zoom-mode .wallpaper-preview {
    cursor: zoom-out;
    object-fit: none;
    max-width: none;
    max-height: none;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .detail-layout {
        grid-template-columns: 1.5fr 1fr;
        gap: 30px;
    }
    
    .viewer-container {
        height: 450px;
    }
}

@media (max-width: 992px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
    
    .viewer-container {
        height: 500px;
    }
    
    .detail-title {
        font-size: 2.2rem;
    }
    
    .resolution-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .similar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .detail-hero {
        padding: 100px 0 60px;
    }
    
    .detail-title {
        font-size: 1.8rem;
    }
    
    .detail-category {
        font-size: 1rem;
    }
    
    .wallpaper-tools h2,
    .wallpaper-info h2,
    .similar-wallpapers h2 {
        font-size: 1.3rem;
    }
    
    .viewer-container {
        height: 400px;
    }
    
    .viewer-header,
    .viewer-footer {
        padding: 12px 15px;
    }
    
    .tool-button,
    .action-button {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .share-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .detail-hero {
        padding: 90px 0 50px;
    }
    
    .detail-title {
        font-size: 1.5rem;
    }
    
    .viewer-tools {
        gap: 8px;
    }
    
    .tool-button i,
    .action-button i {
        margin-right: 5px;
    }
    
    .viewer-stats {
        gap: 12px;
        font-size: 0.8rem;
    }
    
    .wallpaper-actions {
        gap: 8px;
    }
    
    .resolution-options {
        grid-template-columns: 1fr;
    }
    
    .similar-grid {
        grid-template-columns: 1fr;
    }
    
    .viewer-container {
        height: 300px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .modal-content h2 {
        font-size: 1.3rem;
    }
}
