/* /resource/www/css/recommend.css */
/* =========================================
   주제별 추천창작물 (Topic-based Recommendations)
   ========================================= */

/* ── 주제 카드 그리드 ── */
.topic-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.topic-section .section-title-area {
    margin-bottom: 40px;
    text-align: center;
}

.topic-section .section-title-area h2 {
    font-family: var(--head-font);
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin: 0 0 12px;
}

.topic-section .section-title-area p {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* 주제 카드 그리드 */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    aspect-ratio: 4 / 3;
    background: #f5f5f5;
}

.topic-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.topic-card .topic-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.topic-card:hover .topic-thumb {
    transform: scale(1.05);
}

.topic-card .topic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: background 0.3s ease;
}

.topic-card:hover .topic-overlay {
    background: linear-gradient(180deg, rgba(68,44,147,0.1) 0%, rgba(68,44,147,0.85) 100%);
}

.topic-card .topic-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 10px;
    align-self: flex-start;
}

.topic-card .topic-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.3;
    word-break: keep-all;
}

.topic-card .topic-count {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin: 0 0 12px;
}

/* 주제 태그 (해시태그 스타일) */
.topic-card .topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topic-card .topic-tags li {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    line-height: 1;
    transition: all 0.3s ease;
}

.topic-card:hover .topic-tags li {
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.5);
}

.topic-card .topic-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.topic-card:hover .topic-arrow {
    opacity: 1;
    transform: translateX(0);
}

.topic-card .topic-arrow::after {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin-left: -4px;
}


/* ── 주제 상세 (Topic Detail) ── */
.topic-detail-section {
    display: none;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px 60px;
    animation: fadeInUp 0.5s ease;
}

.topic-detail-section.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 뒤로가기 버튼 */
.topic-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 30px;
    transition: color 0.2s;
}

.topic-back-btn:hover {
    color: var(--primary1);
}

.topic-back-btn .back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f2f3f5;
    transition: background 0.2s;
}

.topic-back-btn:hover .back-icon {
    background: #e8e5f3;
}

.topic-back-btn .back-icon::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-left: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(45deg);
    margin-left: 2px;
}

.topic-back-btn:hover .back-icon::before {
    border-color: var(--primary1);
}

/* 주제 히어로 배너 */
.topic-hero {
    display: flex;
    gap: 40px;
    align-items: stretch;
    margin-bottom: 50px;
    background: #f8f8f8;
    border-radius: 24px;
    overflow: hidden;
    min-height: 320px;
}

.topic-hero .hero-image {
    flex: 0 0 45%;
    max-width: 45%;
    overflow: hidden;
}

.topic-hero .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.topic-hero .hero-content {
    flex: 1;
    padding: 50px 50px 50px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.topic-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: var(--primary1);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    align-self: flex-start;
}

.topic-hero .hero-title {
    font-family: var(--head-font);
    font-size: 36px;
    font-weight: 700;
    color: #000;
    margin: 0 0 16px;
    line-height: 1.3;
}

.topic-hero .hero-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin: 0 0 24px;
    word-break: keep-all;
}

.topic-hero .hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #888;
}

.topic-hero .hero-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topic-hero .hero-meta .meta-item strong {
    color: #000;
    font-weight: 700;
}


/* ── 추천창작물 그리드 (기존 스타일 활용) ── */
.recommend-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #000;
}

.recommend-list-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.recommend-list-header .result-count {
    font-size: 14px;
    color: #888;
}

.recommend-list-header .result-count strong {
    color: #000;
    font-weight: 700;
}

/* 창작물 카드 그리드 */
.creation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.creation-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    display: block;
}

.creation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: transparent;
}

.creation-card .card-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.creation-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.creation-card:hover .card-thumb img {
    transform: scale(1.05);
}

.creation-card .card-cate {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.creation-card .card-fav {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.creation-card .card-fav:hover {
    background: #fff;
    transform: scale(1.1);
}

.creation-card .card-fav .heart-icon {
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") no-repeat center / contain;
    display: block;
}

.creation-card .card-fav.active .heart-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fc4586' stroke='%23fc4586' stroke-width='2'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
}

.creation-card .card-info {
    padding: 18px 20px 22px;
}

.creation-card .card-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.creation-card .card-artist {
    font-size: 14px;
    color: #888;
    margin: 0 0 12px;
}

.creation-card .card-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.creation-card .card-price strong {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.creation-card .card-price span {
    font-size: 14px;
    color: #666;
}

.creation-card .card-price .inquiry-text {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}


/* ── 카테고리 탭 (주제별 / 공간별 / 작가별) ── */
.category-tab-wrap {
    max-width: 1440px;
    margin: 0 auto 50px;
    padding: 0 20px;
    border-bottom: 1px solid #e5e5e5;
}

.category-tab-list {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.category-tab-list li {
    position: relative;
}

.category-tab-list li button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 60px;
    padding: 0 30px;
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.category-tab-list li button::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #000;
    transition: width 0.3s ease;
}

.category-tab-list li button:hover {
    color: #000;
}

.category-tab-list li.active button {
    color: #000;
    font-weight: 700;
}

.category-tab-list li.active button::after {
    width: 100%;
}

@media (max-width: 768px) {
    .category-tab-wrap {
        margin: 0 0 30px;
        padding: 0;
    }
    .category-tab-list li button {
        min-width: 0;
        flex: 1;
        height: 48px;
        font-size: 15px;
        padding: 0 12px;
    }
}

/* 카테고리 탭 컨텐츠 영역 */
.category-content {
    display: none;
}
.category-content.active {
    display: block;
}


/* ── art1.com 스타일 기획전 상세 페이지 ── */
.art1-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 100px;
}

/* Hero Banner (풀폭) */
.art1-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 600px;
    overflow: hidden;
    margin-bottom: 80px;
}

.art1-hero .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.art1-hero .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
}

.art1-hero .hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    z-index: 2;
}

.art1-hero .hero-eyebrow {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.art1-hero .hero-main-title {
    font-family: var(--head-font);
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 20px;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.art1-hero .hero-sub-title {
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 32px;
    opacity: 0.95;
    word-break: keep-all;
}

.art1-hero .hero-period {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 40px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.3);
}

.art1-hero .hero-period i {
    font-size: 16px;
}

/* 기획 의도 (디렉터스 노트) */
.art1-intro {
    max-width: 800px;
    margin: 0 auto 100px;
    text-align: center;
    padding: 0 20px;
}

.art1-intro .intro-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #442c93;
    letter-spacing: 4px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.art1-intro .intro-title {
    font-family: var(--head-font);
    font-size: 36px;
    font-weight: 700;
    color: #000;
    margin: 0 0 40px;
    line-height: 1.3;
    word-break: keep-all;
}

.art1-intro .intro-divider {
    width: 60px;
    height: 2px;
    background: #000;
    margin: 0 auto 40px;
}

.art1-intro .intro-desc {
    font-size: 17px;
    line-height: 2;
    color: #555;
    margin: 0 0 20px;
    word-break: keep-all;
}

.art1-intro .intro-desc:last-child {
    margin-bottom: 0;
}

/* 섹션 헤더 (참여 작가 / 작품 리스트) */
.art1-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.art1-section-header .section-eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #442c93;
    letter-spacing: 3px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.art1-section-header .section-title {
    font-family: var(--head-font);
    font-size: 36px;
    font-weight: 700;
    color: #000;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.art1-section-header .section-sub {
    font-size: 16px;
    color: #888;
    margin: 0;
}

/* 참여 작가 리스트 */
.art1-artists {
    margin-bottom: 100px;
}

.art1-artist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.art1-artist-card {
    text-align: center;
}

.art1-artist-card .artist-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    background: #f5f5f5;
    border: 3px solid #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.art1-artist-card .artist-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.art1-artist-card .artist-name {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0 0 6px;
}

.art1-artist-card .artist-role {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* 작품 리스트 (큰 그리드) */
.art1-works {
    margin-bottom: 80px;
}

.art1-work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.art1-work-item {
    text-align: center;
}

.art1-work-item .work-thumb {
    position: relative;
    aspect-ratio: 4 / 5;
    background: #f8f8f8;
    overflow: hidden;
    margin-bottom: 24px;
    cursor: pointer;
}

.art1-work-item .work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.art1-work-item:hover .work-thumb img {
    transform: scale(1.05);
}

.art1-work-item .work-no {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #442c93;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.art1-work-item .work-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0 0 6px;
    line-height: 1.4;
}

.art1-work-item .work-artist {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px;
    font-style: italic;
}

.art1-work-item .work-meta {
    font-size: 13px;
    color: #888;
    margin: 0 0 14px;
}

.art1-work-item .work-price {
    font-size: 17px;
    font-weight: 700;
    color: #000;
}

.art1-work-item .work-price .inquiry-text {
    color: #888;
    font-weight: 500;
}

/* 디렉터스 노트 / 인용문 */
.art1-quote {
    max-width: 900px;
    margin: 0 auto 100px;
    padding: 60px 40px;
    background: #f8f8f8;
    border-left: 4px solid #442c93;
    position: relative;
    text-align: center;
}

.art1-quote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 30px;
    font-size: 100px;
    font-family: Georgia, serif;
    color: #442c93;
    line-height: 1;
    opacity: 0.3;
}

.art1-quote .quote-text {
    font-size: 19px;
    line-height: 1.9;
    color: #333;
    font-style: italic;
    margin: 0 0 24px;
    word-break: keep-all;
    position: relative;
    z-index: 1;
}

.art1-quote .quote-author {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* 뒤로가기 (art1 전용) */
.art1-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    padding: 12px 0;
    margin: 30px 0;
    transition: color 0.2s;
    text-decoration: none;
}

.art1-back-btn:hover {
    color: #442c93;
}

.art1-back-btn::before {
    content: '←';
    font-size: 18px;
}

/* art1 반응형 */
@media (max-width: 1024px) {
    .art1-hero { height: 460px; }
    .art1-hero .hero-main-title { font-size: 48px; }
    .art1-hero .hero-sub-title { font-size: 18px; }
    .art1-intro .intro-title { font-size: 28px; }
    .art1-section-header .section-title { font-size: 28px; }
    .art1-artist-grid { grid-template-columns: repeat(3, 1fr); }
    .art1-work-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
}

@media (max-width: 768px) {
    .art1-hero { height: 380px; margin-bottom: 60px; }
    .art1-hero .hero-main-title { font-size: 34px; }
    .art1-hero .hero-sub-title { font-size: 15px; }
    .art1-hero .hero-eyebrow { font-size: 11px; padding: 5px 14px; margin-bottom: 16px; }
    .art1-hero .hero-period { font-size: 13px; padding: 8px 18px; }
    .art1-intro { margin-bottom: 60px; }
    .art1-intro .intro-title { font-size: 22px; }
    .art1-intro .intro-desc { font-size: 15px; line-height: 1.8; }
    .art1-section-header { margin-bottom: 40px; }
    .art1-section-header .section-title { font-size: 24px; }
    .art1-artists { margin-bottom: 60px; }
    .art1-artist-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .art1-artist-card .artist-photo { width: 110px; height: 110px; }
    .art1-artist-card .artist-name { font-size: 17px; }
    .art1-work-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
    .art1-work-item .work-title { font-size: 16px; }
    .art1-work-item .work-price { font-size: 15px; }
    .art1-quote { padding: 40px 24px; margin-bottom: 60px; }
    .art1-quote::before { font-size: 70px; top: 5px; left: 15px; }
    .art1-quote .quote-text { font-size: 16px; }
}


/* ── 봄 시즌 와이드 배너 Hero (단일 이미지 풀폭) ──
   하나의 가로형 배너 이미지가 hero 영역 전체를 차지하는 레이아웃 */
.topic-hero.spring-hero {
    flex-direction: column;
    background: #fff;
    padding: 0;
    overflow: hidden;
    min-height: auto;
}

.topic-hero.spring-hero .spring-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 6;
    background: url('/resource/www/images/common/spring_artwork.png') no-repeat center / cover;
}

.topic-hero.spring-hero .spring-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.topic-hero.spring-hero .hero-content {
    padding: 36px 50px 44px;
    flex: none;
}

.topic-hero.spring-hero .hero-title {
    font-size: 32px;
}

@media (max-width: 1024px) {
    .topic-hero.spring-hero .spring-banner {
        aspect-ratio: 16 / 8;
    }
    .topic-hero.spring-hero .hero-content {
        padding: 30px 30px 36px;
    }
}

@media (max-width: 768px) {
    .topic-hero.spring-hero .spring-banner {
        aspect-ratio: 4 / 3;
    }
    .topic-hero.spring-hero .hero-content {
        padding: 24px 20px 30px;
    }
    .topic-hero.spring-hero .hero-title {
        font-size: 24px;
    }
}


/* ── 단일 주제 카드 (Single Topic) ──
   주제가 1개만 있을 때 카드를 와이드 배너 형태로 크게 표시
   spring_artwork.png 같은 가로형 배너 이미지에 최적화 */
.topic-grid.single-topic {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

.topic-grid.single-topic .topic-card {
    aspect-ratio: 16 / 7;
    border-radius: 24px;
}

.topic-grid.single-topic .topic-card .topic-thumb {
    object-fit: cover;
    object-position: center;
}

.topic-grid.single-topic .topic-card .topic-overlay {
    padding: 40px 50px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.75) 100%);
}

.topic-grid.single-topic .topic-card .topic-name {
    font-size: 32px;
}

.topic-grid.single-topic .topic-card .topic-count {
    font-size: 15px;
}

.topic-grid.single-topic .topic-card .topic-tags li {
    font-size: 13px;
    padding: 5px 12px;
}

@media (max-width: 768px) {
    .topic-grid.single-topic .topic-card {
        aspect-ratio: 16 / 9;
    }
    .topic-grid.single-topic .topic-card .topic-overlay {
        padding: 24px 24px;
    }
    .topic-grid.single-topic .topic-card .topic-name {
        font-size: 22px;
    }
}


/* ── Responsive ── */
@media (max-width: 1024px) {
    .topic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .topic-card .topic-name {
        font-size: 20px;
    }

    .topic-hero {
        flex-direction: column;
        min-height: auto;
    }

    .topic-hero .hero-image {
        flex: none;
        max-width: 100%;
        height: 280px;
    }

    .topic-hero .hero-content {
        padding: 30px;
    }

    .topic-hero .hero-title {
        font-size: 28px;
    }

    .creation-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .topic-section {
        padding-bottom: 50px;
    }

    .topic-section .section-title-area h2 {
        font-size: 26px;
    }

    .topic-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 16px;
    }

    .topic-card {
        aspect-ratio: 16 / 9;
    }

    .topic-card .topic-overlay {
        padding: 20px;
    }

    .topic-card .topic-name {
        font-size: 20px;
    }

    .topic-hero .hero-image {
        height: 200px;
    }

    .topic-hero .hero-content {
        padding: 24px 20px;
    }

    .topic-hero .hero-title {
        font-size: 24px;
    }

    .topic-hero .hero-desc {
        font-size: 15px;
    }

    .creation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .creation-card .card-info {
        padding: 14px 16px 18px;
    }

    .creation-card .card-title {
        font-size: 15px;
    }

    .creation-card .card-price strong {
        font-size: 16px;
    }

    .recommend-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .creation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .creation-card .card-info {
        padding: 12px 12px 16px;
    }

    .creation-card .card-title {
        font-size: 14px;
    }

    .creation-card .card-price strong {
        font-size: 15px;
    }

    .topic-hero .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* ── High Contrast Mode ── */
body.high-contrast .topic-card {
    border: 1px solid #fff;
}

body.high-contrast .topic-card .topic-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,0.9) 100%);
}

body.high-contrast .topic-hero {
    background: #111;
    border: 1px solid #fff;
}

body.high-contrast .topic-hero .hero-title {
    color: #fff;
}

body.high-contrast .topic-hero .hero-desc {
    color: #ccc;
}

body.high-contrast .topic-hero .hero-badge {
    background: #ffff00;
    color: #000;
}

body.high-contrast .topic-back-btn {
    color: #fff;
}

body.high-contrast .topic-back-btn .back-icon {
    background: #333;
}

body.high-contrast .topic-back-btn .back-icon::before {
    border-color: #fff;
}

body.high-contrast .creation-card {
    background: #111;
    border-color: #444;
}

body.high-contrast .creation-card .card-title {
    color: #fff;
}

body.high-contrast .creation-card .card-artist {
    color: #aaa;
}

body.high-contrast .creation-card .card-price strong {
    color: #ffff00;
}

body.high-contrast .recommend-list-header {
    border-bottom-color: #fff;
}

body.high-contrast .recommend-list-header h3 {
    color: #fff;
}
