/* ===================================
   ANAHTAR TÜRLERİ SAYFASI - STYLES
   =================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--dark-color), var(--secondary-color));
    color: var(--white);
    padding: 140px 0 80px;
    margin-top: 120px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

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

.breadcrumb i {
    font-size: 0.7rem;
    opacity: 0.6;
}

.breadcrumb span {
    opacity: 1;
}


/* Filter Section */
.filter-section {
    padding: 40px 0;
    background: var(--white);
    position: sticky;
    top: 120px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 24px;
    background: var(--light-color);
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tab:hover {
    background: var(--white);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.filter-tab i {
    font-size: 1.1rem;
}

/* Keys Gallery */
.keys-gallery {
    padding: 60px 0;
    background: var(--light-color);
    min-height: 500px;
}

.keys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.key-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.key-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.key-card.hidden {
    display: none;
}

.key-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--light-color);
}

.key-info {
    padding: 25px;
}

.key-category-badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
}

.key-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.key-description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--white);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10001;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Modal Gallery */
.modal-gallery {
    position: relative;
    background: var(--dark-color);
}

.modal-images-container {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    touch-action: pan-y pinch-zoom;
}

.modal-images-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.gallery-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.hidden {
    display: none;
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.gallery-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-indicator.active {
    background: var(--primary-color);
    width: 40px;
    border-radius: 6px;
}

.gallery-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Modal Caption */
.modal-caption {
    padding: 30px;
}

.modal-caption h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.modal-caption p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.modal-category {
    display: inline-block;
    padding: 8px 16px;
    background: var(--light-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .filter-tabs {
        gap: 10px;
    }
    
    .filter-tab {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .keys-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .key-image {
        height: 200px;
    }
    
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 2rem;
    }
    
    .modal-content {
        width: 95%;
        max-width: 100%;
    }
    
    .modal-images-container {
        height: 350px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .modal-caption {
        padding: 20px;
    }
    
    .modal-caption h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .keys-grid {
        grid-template-columns: 1fr;
    }
}

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

.key-card {
    animation: fadeInUp 0.5s ease-out;
}

.key-card:nth-child(1) { animation-delay: 0.1s; }
.key-card:nth-child(2) { animation-delay: 0.2s; }
.key-card:nth-child(3) { animation-delay: 0.3s; }
.key-card:nth-child(4) { animation-delay: 0.4s; }
.key-card:nth-child(5) { animation-delay: 0.5s; }
.key-card:nth-child(6) { animation-delay: 0.6s; }

