/* Gallery Latest Skin Styles - 완전히 새로운 디자인 */

.gallery-latest {
    margin-bottom: 3rem;
    background: transparent;
}

/* Gallery Header */
.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-primary);
    position: relative;
}

.gallery-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
}

.gallery-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-family: var(--font-bold);
}

.gallery-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    border: none;
    border-radius: 25px;
    color: var(--bg-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.gallery-more:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.gallery-more svg {
    transition: transform 0.3s ease;
}

.gallery-more:hover svg {
    transform: translateX(3px);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    width: 100%;
}

.gallery-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

/* Gallery Thumbnail */
.gallery-thumb {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.gallery-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-thumb img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
}

.no-image i {
    font-size: 3rem;
    opacity: 0.3;
}

/* Gallery Badge */
.gallery-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.4);
    z-index: 2;
}

/* Gallery Info - 이미지 아래 정보 영역 */
.gallery-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gallery-subject {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    font-family: var(--font-bold);
    transition: color 0.3s ease;
}

.gallery-subject a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.gallery-card:hover .gallery-subject {
    color: var(--primary);
}

.gallery-desc {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    opacity: 0.9;
    flex: 1;
}

/* Gallery Meta */
.gallery-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-primary);
    margin-top: auto;
}

.meta-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.meta-date i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.meta-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.meta-views,
.meta-comments {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.gallery-card:hover .meta-views,
.gallery-card:hover .meta-comments {
    color: var(--text-secondary);
}

.meta-views i,
.meta-comments i {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Empty State */
.gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-primary);
    grid-column: 1 / -1;
}

.empty-icon {
    margin-bottom: 1rem;
    opacity: 0.3;
    color: var(--text-tertiary);
}

.empty-text {
    color: var(--text-tertiary);
    font-size: 1rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .gallery-title {
        font-size: 1.5rem;
    }
    
    .gallery-info {
        padding: 1rem;
    }
    
    .gallery-thumb {
        height: 150px;
    }
    
    .gallery-subject {
        font-size: 1rem;
    }
    
    .gallery-desc {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        gap: 0.75rem;
    }
    
    .gallery-info {
        padding: 0.875rem;
    }
    
    .gallery-thumb {
        height: 120px;
    }
    
    .gallery-subject {
        font-size: 0.9rem;
    }
    
    .gallery-desc {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
    }
    
    .meta-stats {
        gap: 0.75rem;
    }
}

/* Light Theme Adjustments */
[data-theme="light"] .gallery-card {
    background: white;
    border-color: #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .gallery-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

[data-theme="light"] .gallery-empty {
    background: #f9fafb;
    border-color: #e5e7eb;
}

[data-theme="light"] .no-image {
    background: #f3f4f6;
}

[data-theme="light"] .gallery-more {
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
}