/* ギャラリーページ専用スタイル */

.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 2px solid rgba(120, 119, 198, 0.3);
}

.gallery-tab {
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid rgba(120, 119, 198, 0.3);
    border-radius: 15px;
    padding: 15px 30px;
    color: #7877c6;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.gallery-tab:hover {
    border-color: rgba(120, 119, 198, 0.6);
    background: rgba(120, 119, 198, 0.1);
    transform: translateY(-2px);
}

.gallery-tab.active {
    border-color: #7877c6;
    background: rgba(120, 119, 198, 0.2);
    color: #ffffff;
}

.tab-icon {
    font-size: 1.2rem;
}

.gallery-section {
    display: none;
}

.gallery-section.active {
    display: block;
}

.section-header {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-icon {
    font-size: 2rem;
    background: linear-gradient(45deg, #7877c6, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #7877c6;
    flex: 1;
    margin: 0;
}

.scan-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: #4caf50;
    font-weight: 600;
}

.scan-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    animation: pulse 1.5s ease-in-out infinite;
}

.photo-stats {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-top: 40px;
    backdrop-filter: blur(10px);
}

.stats-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(120, 119, 198, 0.3);
}

.stats-icon {
    font-size: 1.5rem;
    color: #7877c6;
}

.stats-title {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    color: #7877c6;
    font-size: 1.2rem;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(120, 119, 198, 0.05);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(120, 119, 198, 0.1);
    transform: translateY(-2px);
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #7877c6;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    color: #b8b8b8;
    font-size: 0.9rem;
}

/* 写真セクション */
.photo-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px 0;
}

.filter-btn {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 25px;
    padding: 10px 20px;
    color: #7877c6;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    border-color: rgba(120, 119, 198, 0.6);
    background: rgba(120, 119, 198, 0.1);
    transform: translateY(-1px);
}

.filter-btn.active {
    border-color: #7877c6;
    background: rgba(120, 119, 198, 0.2);
    color: #ffffff;
}

.filter-icon {
    font-size: 1rem;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.photo-item {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(120, 119, 198, 0.2);
    border-color: rgba(120, 119, 198, 0.5);
}

.photo-item.featured {
    border-color: rgba(255, 193, 7, 0.5);
    background: rgba(255, 193, 7, 0.02);
}

.photo-placeholder {
    height: 200px;
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.1), rgba(120, 119, 198, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(120, 119, 198, 0.2);
    position: relative;
    overflow: hidden;
}

/* 実際の画像用のスタイル */
.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-bottom: 1px solid rgba(120, 119, 198, 0.2);
    transition: transform 0.3s ease;
}

.photo-item:hover .gallery-image {
    transform: scale(1.05);
}

.photo-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: photoScan 3s ease-in-out infinite;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #7877c6;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.7;
}

.placeholder-text {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 1rem;
    opacity: 0.8;
}

.photo-info {
    padding: 20px;
}

.photo-title {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    color: #7877c6;
    font-size: 1.1rem;
    margin: 0 0 10px 0;
}

.photo-description {
    color: #e8e8e8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.photo-meta {
    display: grid;
    gap: 10px;
}

.photo-date, .photo-location {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: #b8b8b8;
}

.photo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    padding: 3px 8px;
    background: rgba(120, 119, 198, 0.2);
    color: #7877c6;
    border-radius: 10px;
    font-size: 0.7rem;
    font-family: 'Orbitron', monospace;
    border: 1px solid rgba(120, 119, 198, 0.3);
}

/* アニメーション */
@keyframes photoScan {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .gallery-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-tab {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .photo-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        padding: 20px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
}
