/* FATUM Works - Complete Clean Style */

/* Works Container */
.fatum-works-container {
    padding: 0;
    margin: 0;
}

/* COMPLETELY CLEAN Category Filters - NO HOVER EFFECTS */
.fatum-category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 0;
}

.fatum-category-filter {
    padding: 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #9CA3AF;
    background: none !important;
    border: none !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.3s ease;
    outline: none !important;
    position: relative;
    box-shadow: none !important;
}

/* HOVER: Only color change, NOTHING ELSE */
.fatum-category-filter:hover {
    color: #F3F4F6 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Active state - underline only */
.fatum-category-filter.active {
    color: #19ACE6 !important;
    background: none !important;
    border: none !important;
    text-decoration: none !important;
}

.fatum-category-filter.active::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: -8px;
    right: -8px;
    height: 2px;
    background: #19ACE6;
}

/* Works Grid */
.fatum-works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 0;
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.fatum-work-item {
    position: relative;
    overflow: hidden;
    background: #1F2937;
    aspect-ratio: 16/10;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
    display: block;
    border: none;
    outline: none;
}

.fatum-work-item:hover {
    transform: translateY(-2px);
    text-decoration: none !important;
}

.fatum-work-item:visited,
.fatum-work-item:active,
.fatum-work-item:focus {
    text-decoration: none !important;
    color: inherit;
}

.fatum-work-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #374151 0%, #111827 100%);
}

.fatum-work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.fatum-work-item:hover .fatum-work-image img {
    transform: scale(1.05);
}

.fatum-work-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.fatum-work-item:hover .fatum-work-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
}

/* Triangle Play Button */
.fatum-play-button {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transform: scale(0.9);
    transition: all 0.3s ease;
    position: relative;
}

.fatum-play-button::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 14px solid #000;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 3px;
}

.fatum-work-item:hover .fatum-play-button {
    transform: scale(1);
    background: #FFF;
}

/* 複数カテゴリー表示コンテナ */
.fatum-work-categories {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    z-index: 10;
    max-width: calc(100% - 2rem);
}

.fatum-work-category {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 600;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fatum-work-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    transform: translateY(0.125rem);
    transition: transform 0.3s ease;
}

.fatum-work-item:hover .fatum-work-content {
    transform: translateY(0);
}

.fatum-work-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.625rem;
    color: #D1D5DB;
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.fatum-work-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: white !important;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    text-decoration: none !important;
}

.fatum-work-description {
    color: #D1D5DB;
    font-size: 0.625rem;
    line-height: 1.4;
    opacity: 0.8;
}

/* Loading Animation */
.fatum-loading {
    display: none;
    text-align: center;
    padding: 3rem;
    color: #D1D5DB;
    grid-column: 1 / -1;
}

.fatum-loading.active {
    display: block;
}

.fatum-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #374151;
    border-top: 3px solid #FBBF24;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No works message */
.fatum-no-works {
    text-align: center;
    padding: 3rem;
    color: #9CA3AF;
    font-size: 0.875rem;
    grid-column: 1 / -1;
}

/* Force remove any theme overrides */
.fatum-work-item,
.fatum-work-item:hover,
.fatum-work-item:visited,
.fatum-work-item:active,
.fatum-work-item:focus {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

.fatum-work-title {
    text-decoration: none !important;
    border: none !important;
}

/* TOP PAGE WORKS - Clean & Larger 3-Column */
.fatum-works-top {
    padding: 0;
    margin: 0;
}

.fatum-works-top-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.fatum-work-top-item {
    position: relative;
    overflow: hidden;
    background: #1F2937;
    aspect-ratio: 4/3;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
    display: block;
    border: none;
    outline: none;
}

.fatum-work-top-item:hover {
    transform: translateY(-4px);
    text-decoration: none !important;
}

.fatum-work-top-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #374151 0%, #111827 100%);
}

.fatum-work-top-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.fatum-work-top-item:hover .fatum-work-top-image img {
    transform: scale(1.05);
}

.fatum-work-top-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.fatum-work-top-item:hover .fatum-work-top-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
}

.fatum-work-top-play {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transform: scale(0.9);
    transition: all 0.3s ease;
    position: relative;
}

.fatum-work-top-play::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 14px solid #000;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 3px;
}

.fatum-work-top-item:hover .fatum-work-top-play {
    transform: scale(1);
    background: #FFF;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .fatum-works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .fatum-works-top-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .fatum-work-title {
        font-size: 0.8rem;
    }
    
    .fatum-work-content {
        padding: 1rem;
    }
    
    .fatum-category-filters {
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .fatum-category-filter {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .fatum-works-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .fatum-works-top-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .fatum-category-filters {
        gap: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .fatum-category-filter {
        padding: 0.375rem 0;
        font-size: 0.75rem;
    }
    
    .fatum-work-title {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .fatum-category-filters {
        gap: 1rem;
    }
    
    .fatum-work-content {
        padding: 0.875rem;
    }
    
    .fatum-work-title {
        font-size: 0.75rem;
    }
}