/* 캐릭터 스타일 CSS */
.character-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.character-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

.character-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.character-title {
    text-align: center;
    margin-bottom: 50px;
}

.character-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.character-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.character-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.character-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.character-image {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
}

.character-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: transform 0.5s ease;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.character-card:hover .character-image img {
    transform: translateX(-50%) scale(1.05);
}

.character-info {
    padding: 20px;
}

.character-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.character-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.character-tag {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.character-cta {
    text-align: center;
    margin-top: 40px;
}

.character-cta .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* 캐릭터 배경 요소 */
.character-floating {
    position: absolute;
    z-index: 1;
}

.float-tl {
    top: 5%;
    left: 5%;
    width: 120px;
    opacity: 0.2;
    animation: float 8s ease-in-out infinite;
}

.float-br {
    bottom: 5%;
    right: 5%;
    width: 150px;
    opacity: 0.2;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* 캐릭터 안내 섹션 */
.character-guide {
    background-color: white;
    padding: 60px 0;
}

.guide-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.guide-row {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
}

.guide-row:last-child {
    margin-bottom: 0;
}

.guide-row:nth-child(even) {
    flex-direction: row-reverse;
}

.guide-image {
    flex: 1;
    text-align: center;
    padding: 20px;
}

.guide-image img {
    max-width: 300px;
    height: auto;
}

.guide-content {
    flex: 1;
    padding: 20px;
}

.guide-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.guide-content p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.guide-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.guide-feature {
    display: flex;
    align-items: center;
}

.guide-feature i {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-right: 10px;
}

/* 캐릭터 스토리 섹션 */
.character-story {
    background-color: #f0f0f0;
    padding: 60px 0;
    position: relative;
}

.story-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.story-title {
    text-align: center;
    margin-bottom: 40px;
}

.story-title h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.story-title p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.story-timeline {
    position: relative;
    padding: 30px 0;
}

.story-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: var(--accent-color);
    transform: translateX(-50%);
}

.story-item {
    position: relative;
    margin-bottom: 50px;
    width: 45%;
}

.story-item:last-child {
    margin-bottom: 0;
}

.story-item:nth-child(odd) {
    left: 0;
}

.story-item:nth-child(even) {
    left: 55%;
}

.story-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    position: relative;
}

.story-content::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: white;
    transform: rotate(45deg);
}

.story-item:nth-child(odd) .story-content::after {
    right: -10px;
}

.story-item:nth-child(even) .story-content::after {
    left: -10px;
}

.story-date {
    position: absolute;
    top: 0;
    width: 120px;
    padding: 5px 10px;
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    border-radius: 5px;
    font-weight: 600;
}

.story-item:nth-child(odd) .story-date {
    right: -140px;
}

.story-item:nth-child(even) .story-date {
    left: -140px;
}

.story-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.story-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.story-character {
    position: absolute;
    bottom: -20px;
    width: 100px;
    z-index: 2;
}

.story-item:nth-child(odd) .story-character {
    right: -120px;
}

.story-item:nth-child(even) .story-character {
    left: -120px;
}

/* 캐릭터 스토리 스타일 - 새로운 컴팩트 디자인 */
.story-timeline-compact {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.story-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.story-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.story-character-small {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center top;
    background-color: #f0f8ff;
}

.story-card-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.story-card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #3a86ff;
}

.story-card-content p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
    flex-grow: 1;
}

.story-summary {
    background-color: rgba(242, 248, 255, 0.9);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.story-summary p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #444;
}

.story-summary .btn {
    display: inline-block;
    font-size: 0.9rem;
}

/* 캐릭터 안내 섹션 - 가로 배치 */
.horizontal-guides {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.guide-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.guide-card .guide-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f0f8ff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.guide-card .guide-image img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.guide-card:hover .guide-image img {
    transform: scale(1.08);
}

.guide-card .guide-content {
    padding: 1.5rem;
}

.guide-card .guide-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.guide-card .guide-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.guide-card .guide-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* 스토리 캐릭터 이미지 스타일 */
.story-character-full {
    width: 100%;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f8ff;
    overflow: hidden;
    position: relative;
}

.story-character-full img {
    max-width: 90%;
    max-height: 200px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.story-card:hover .story-character-full img {
    transform: scale(1.1);
}

/* 반응형 스타일 */
@media (max-width: 992px) {
    .guide-row {
        flex-direction: column;
    }
    
    .guide-row:nth-child(even) {
        flex-direction: column;
    }
    
    .guide-image, .guide-content {
        width: 100%;
    }
    
    .story-timeline::before {
        left: 30px;
    }
    
    .story-item {
        width: 90%;
        left: 0;
        margin-left: 60px;
    }
    
    .story-item:nth-child(even) {
        left: 0;
    }
    
    .story-date {
        left: -60px !important;
        width: 90px;
        text-align: center;
    }
    
    .story-item:nth-child(odd) .story-content::after,
    .story-item:nth-child(even) .story-content::after {
        left: -10px;
        right: auto;
    }
    
    .story-character {
        display: none;
    }
    
    .horizontal-guides {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .character-grid {
        grid-template-columns: 1fr;
    }
    
    .character-image {
        height: 250px;
    }
    
    .guide-features {
        grid-template-columns: 1fr;
    }
    
    .guide-card .guide-features {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 1024px) {
    .story-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .story-cards {
        grid-template-columns: 1fr;
    }
}

/* 히어로 섹션 캐릭터 스타일 */
.hero-characters {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 20px 0;
    position: relative;
    height: 120px;
}

.hero-character {
    height: 100px;
    margin: 0 -10px;
    object-fit: contain;
    transform: translateY(0);
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
    position: relative;
    cursor: pointer;
    z-index: 1;
}

.hero-character:hover {
    transform: translateY(-15px) scale(1.2);
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.4));
    z-index: 2;
}

.hero-character:nth-child(1) {
    animation: bounce 6s ease-in-out infinite;
}

.hero-character:nth-child(2) {
    animation: bounce 6s ease-in-out 1.5s infinite;
}

.hero-character:nth-child(3) {
    animation: bounce 6s ease-in-out 3s infinite;
}

.hero-character:nth-child(4) {
    animation: bounce 6s ease-in-out 4.5s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .hero-characters {
        height: 100px;
    }
    
    .hero-character {
        height: 80px;
        margin: 0 -15px;
    }
} 