/* --- 상세 이미지 템플릿 전용 스타일 --- */
.detailed-image-template-container {
    position: absolute;
    left: -9999px; /* 화면 밖에서 렌더링 */
    top: 0;
    width: 1200px;
    background-color: #121212;
    color: #e0e0e0;
    /* [수정] 기본 폰트 적용 */
    font-family: 'DnfTemperedBlade', sans-serif;
    font-weight: 300;
    padding: 24px;
    box-sizing: border-box;
}

/* image-template.css에서 헤더 스타일 가져오기 */
.detailed-image-template-container .template-header {
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #4f545c;
    margin-bottom: 20px;
}
.detailed-image-template-container .template-header .build-name {
    /* [수정] 제목 폰트 적용 */
    font-family: 'Isamanru', sans-serif;
    font-weight: 700;
    font-size: 28px;
}
.detailed-image-template-container .template-header .author-name {
    font-size: 18px;
    color: #aaa;
}

/* build-viewer.css에서 콘텐츠 스타일 가져오기 및 수정 */
.detailed-image-template-container .build-viewer-main-content {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.detailed-image-template-container .build-viewer-portrait-wrapper { display: flex; align-items: flex-start; justify-content: center; }
.detailed-image-template-container .build-viewer-portrait { width: 100%; height: auto; }
.detailed-image-template-container .build-viewer-content-right { display: flex; flex-direction: column; gap: 10px; }
.detailed-image-template-container .build-viewer-section h4, .detailed-image-template-container .template-section-header h4 {
    /* [수정] 부제목 폰트 적용 */
    font-family: 'MuseumCulturalFoundationClassic', sans-serif;
    font-weight: 500;
    font-size: 1.2rem; 
    color: #00aaff; 
    margin: 0 0 10px 0; 
    padding-bottom: 5px; 
    border-bottom: 1px solid #4f545c; 
}
.detailed-image-template-container .build-viewer-starting-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; } /* 2열 고정 */
.detailed-image-template-container .build-viewer-memory-essence-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.detailed-image-template-container .item-box { display: flex; flex-direction: column; gap: 8px; background-color: #2a2a2a; padding: 12px; border-radius: 5px; border-left: 4px solid #555; }
.detailed-image-template-container .item-box.empty { min-height: 84px; border-left-color: #555; background-color: #2a2a2a; }
.detailed-image-template-container .constellation-slot-item.empty { min-height: 84px; background-color: #2a2a2a;}
.detailed-image-template-container .item-box-header { display: flex; align-items: center; gap: 10px; }
.detailed-image-template-container .item-box-icon { width: 40px; height: 40px; flex-shrink: 0; }
.detailed-image-template-container .item-box-header-text { display: flex; flex-direction: column; }
.detailed-image-template-container .item-box-name { font-size: 1rem; font-weight: bold; }
.detailed-image-template-container .item-box-desc { font-size: 0.85rem; line-height: 1.5; color: #ccc; padding-top: 8px; border-top: 1px solid #444; }
.detailed-image-template-container .sprite-icon { height: 1.1em; vertical-align: bottom; margin: 0 1px; }
.detailed-image-template-container .memory-group { display: flex; flex-direction: column; gap: 8px; }
.detailed-image-template-container .essence-list { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; }
.detailed-image-template-container .cooldown-info, .detailed-image-template-container .cost-info { font-size: 0.8rem; color: #aaa; }
.detailed-image-template-container .item-box.rarity-border-Common { border-left-color: #e4f0f1; }
.detailed-image-template-container .item-box.rarity-border-Rare { border-left-color: #35fbfd; }
.detailed-image-template-container .item-box.rarity-border-Epic { border-left-color: #c85ef9; }
.detailed-image-template-container .item-box.rarity-border-Legendary { border-left-color: #fe3e35; }
.detailed-image-template-container .item-box.rarity-border-Unique, .detailed-image-template-container .item-box.rarity-border-Character, .detailed-image-template-container .item-box.rarity-border-Identity { border-left-color: #f1b050; }
.detailed-image-template-container .build-viewer-constellation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.detailed-image-template-container .constellation-slot-item { background-color: #2a2a2a; padding: 12px; border-radius: 5px; border-left: 4px solid #555; }
.detailed-image-template-container .constellation-slot-item .item-box-header .item-icon-wrapper { width: 40px; height: 40px; flex-shrink: 0; }
.detailed-image-template-container .constellation-slot-item .star-icon-tint { width: 100%; height: 100%; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.detailed-image-template-container .constellation-slot-item.category-border-Destruction { border-left-color: #c03B2b; }
.detailed-image-template-container .constellation-slot-item.category-border-Life { border-left-color: #27ae60; }
.detailed-image-template-container .constellation-slot-item.category-border-Imagination { border-left-color: #2980b9; }
.detailed-image-template-container .constellation-slot-item.category-border-Flexible { border-left-color: #f39c12; }
.detailed-image-template-container .template-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.detailed-image-template-container .template-legend { display: flex; gap: 15px; font-size: 13px; color: #ccc; }
.detailed-image-template-container .legend-item { display: flex; align-items: center; gap: 5px; }
.detailed-image-template-container .legend-color-box { width: 13px; height: 13px; display: inline-block; border-radius: 2px; }
.detailed-image-template-container .item-box.highlight-dejavu,
.detailed-image-template-container .constellation-slot-item.highlight-dejavu,
.detailed-image-template-container .item-box.highlight-core,
.detailed-image-template-container .constellation-slot-item.highlight-core {
    box-shadow: none;
}
.detailed-image-template-container .build-viewer-section h4, .detailed-image-template-container .template-section-header h4 { 
    border-bottom: none;
}
.detailed-image-template-container .template-site-url {
    position: absolute;
    bottom: 10;
    right: 0;
    font-size: 12px;
    color: #777;
    padding-right: 20px;
}