/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 단어별 줄넘김 설정 */
* {
    word-wrap: break-word;
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* 다크모드/라이트모드 구분 없이 강제 색상 설정 */
* {
    color: inherit !important;
}

/* 모든 텍스트 요소를 흰색으로 강제 설정 */
h1, h2, h3, h4, h5, h6, p, span, div, a, button, input, textarea, select, label, li, td, th {
    color: #ffffff !important;
}

/* 특별히 어두운 색상이 필요한 요소들 */
.recording-btn, .action-btn, .share-btn, .trainer-recommendation-btn {
    color: #ffffff !important;
}

/* 강조 색상은 그대로 유지하되 가시성 확보 */
.mbti-type, .match-percentage, .trainer-info h4, .trainer-intro h4, .career-section h4, 
.error-icon, .error-content h1 {
    color: #4ecdc4 !important;
}

/* 회색 텍스트도 흰색으로 변경 */
.achievement-item, .trainer-intro p, .career-item {
    color: #ffffff !important;
}

/* 아이콘 색상도 강제 설정 */
.achievement-item i {
    color: #4ecdc4 !important;
}


/* 하이라이트 텍스트 색상 */
.highlight-text {
    color: #4ecdc4 !important;
}

/* 에러/성공 메시지 색상 유지 */
.success {
    color: #4ecdc4 !important;
}

.error {
    color: #ff6b6b !important;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #ffffff !important;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 페이지 전환 */
.page {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 헤더 */
.header {
    padding: 15px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin: 0;
    padding: 0 60px;
    line-height: 1.2;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.back-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}

/* 메인 콘텐츠 */
.main-content {
    padding: 40px 0;
}

/* 히어로 섹션 */
.hero-section {
    text-align: center;
    margin-bottom: 50px;
}

.hero-image {
    margin-bottom: 30px;
}

.hero-image i {
    font-size: 4rem;
    color: white;
    opacity: 0.9;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* 기능 섹션 */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature i {
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.feature p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 버튼 */
.start-btn {
    width: 100%;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

.start-btn:active {
    transform: translateY(0);
}

/* 녹음 페이지 */
.recording-content {
    padding: 30px 0;
}

.recording-instructions {
    text-align: center;
    margin-bottom: 40px;
}

.recording-instructions h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.recording-instructions p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.sentence-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sentence-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: white;
    font-weight: 400;
}

/* 녹음 영역 */
.recording-area {
    text-align: center;
    margin-bottom: 40px;
}

.microphone-container {
    margin-bottom: 30px;
}

.microphone {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.microphone.recording {
    animation: pulse 1.5s infinite;
    background: linear-gradient(45deg, #ff4757, #c44569);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.microphone i {
    font-size: 2.5rem;
    color: white;
}

.recording-status {
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

.status-text {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* 녹음 컨트롤 */
.recording-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.record-btn, .stop-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.record-btn:hover, .stop-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.record-btn:disabled, .stop-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.stop-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border-color: transparent;
}

/* 오디오 플레이어 */
.audio-player {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.audio-player audio {
    width: 100%;
    margin-bottom: 15px;
}

.retry-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 진행률 */
.progress-section {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* 분석 중 페이지 */
.analyzing-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}

.analyzing-animation h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.analyzing-animation p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

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

/* 결과 페이지 */
.result-content {
    padding: 30px 0;
}

.mbti-result {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mbti-type h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.mbti-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.character-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: nowrap;
}

.character-image {
    text-align: center;
}

.character-image img {
    width: 40vw;
    max-width: 180px;
    min-width: 120px;
    height: 200px;
    object-fit: cover;
    object-position: center top;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
    background: transparent;
}

.character-image img:hover {
    transform: scale(1.05);
}

.character-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 10px;
    font-weight: 500;
}

.mbti-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.mbti-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* 보컬 상세 정보 */
.vocal-details {
    margin-top: 30px;
    margin-bottom: 40px;
    display: grid;
    gap: 20px;
}

.detail-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h4::before {
    content: "🎵";
    font-size: 1rem;
}

.detail-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-size: 0.85rem;
}

/* 밸런스 차트 - 레이더 차트 */
.balance-chart {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.balance-chart h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #4ecdc4;
    margin-bottom: 20px;
    text-align: center;
}

.radar-chart {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 300px;
}

.radar-svg {
    width: 100%;
    height: 100%;
    max-width: 300px;
    max-height: 300px;
}

/* SVG 기본 색상 설정 */
.radar-svg .grid-lines polygon {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1;
}

.radar-svg .axis-lines line {
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1;
}

.radar-svg .data-polygon {
    fill: rgba(78, 205, 196, 0.4);
    stroke: #4ecdc4;
    stroke-width: 2;
}

.radar-svg .data-points circle {
    fill: #4ecdc4;
    r: 4;
}

.radar-svg .labels text {
    fill: white;
    font-size: 12px;
    font-weight: 500;
}

.radar-svg .values text {
    fill: #4ecdc4;
    font-size: 14px;
    font-weight: 600;
}


.radar-svg .grid-lines polygon {
    transition: stroke 0.3s ease;
}

.radar-svg .axis-lines line {
    transition: stroke 0.3s ease;
}

.radar-svg .data-points circle {
    transition: all 0.5s ease;
    filter: drop-shadow(0 2px 4px rgba(78, 205, 196, 0.3));
}

.radar-svg .data-points circle:hover {
    r: 6;
    filter: drop-shadow(0 4px 8px rgba(78, 205, 196, 0.5));
}

.radar-svg .labels text {
    transition: fill 0.3s ease;
}

.radar-svg .values text {
    transition: all 0.5s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* 트레이너 매칭 */
.trainer-matching {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trainer-matching h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 25px;
    text-align: center;
}

.trainer-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trainer-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.trainer-avatar i {
    font-size: 1.5rem;
    color: white;
}

.trainer-info {
    flex: 1;
    text-align: left;
}

.trainer-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.trainer-specialty {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    margin-bottom: 3px;
}

.trainer-experience {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}


.trainer-description {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trainer-description h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.trainer-description p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-size: 0.85rem;
}

/* 트레이닝 상세 정보 */
.training-details {
    margin-top: 20px;
    display: grid;
    gap: 15px;
}

.training-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.training-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.training-section h4::before {
    content: "🎯";
    font-size: 0.9rem;
}

.training-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    font-size: 0.8rem;
}

/* 액션 버튼 */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

/* 결과 페이지 버튼들 */
.share-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    justify-content: center;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.trainer-recommendation-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    border: none;
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    justify-content: center;
}

.trainer-recommendation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.contact-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    border: none;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(78, 205, 196, 0.4);
}

.retry-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.retry-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 반응형 디자인 */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
    }
    
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .trainer-card {
        padding: 25px;
    }
    
    .action-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .contact-btn, .retry-btn {
        flex: 1;
        max-width: 200px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 800px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .mbti-type h2 {
        font-size: 3rem;
    }
    
    .character-images {
        gap: 15px;
    }
    
    .character-image img {
        width: 35vw;
        max-width: 150px;
        min-width: 100px;
    }
    
    .vocal-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .radar-chart {
        height: 350px;
    }
    
    .training-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
}

/* 접근성 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 포커스 스타일 */
button:focus, input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* 로딩 상태 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 성공/에러 상태 */
.success {
    color: #4ecdc4;
}

.error {
    color: #ff6b6b;
}

/* 트레이너 페이지 스타일 */
.trainer-content {
    padding: 20px;
    text-align: center;
}

.trainer-matching {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.trainer-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.trainer-avatar {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

.trainer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trainer-info {
    flex: 1;
    text-align: left;
}

.trainer-info h4 {
    color: #4ecdc4;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.trainer-achievements {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    font-size: 0.8em;
}

.achievement-item i {
    color: #4ecdc4;
    width: 16px;
    text-align: center;
}


.trainer-intro {
    background: rgba(78, 205, 196, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.trainer-intro h4 {
    color: #4ecdc4;
    margin-bottom: 15px;
    font-size: 1em;
}

.highlight-text {
    color: #4ecdc4;
    font-weight: 600;
    margin-bottom: 10px;
}

.trainer-intro p {
    color: #ccc;
    line-height: 1.5;
    font-size: 0.9em;
}

.career-details {
    margin-bottom: 20px;
}

.career-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: left;
}

.career-section h4 {
    color: #4ecdc4;
    margin-bottom: 15px;
    font-size: 1em;
}

.career-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.career-item {
    color: #ccc;
    font-size: 0.8em;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #4ecdc4;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    /* 결과 페이지 캐릭터 이미지 */
    .character-images {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        gap: 15px;
        flex-wrap: nowrap !important;
    }
    
    .character-image {
        flex: 1;
        max-width: 45%;
    }
    
    .character-image img {
        width: 100% !important;
        max-width: 120px !important;
        min-width: 80px !important;
        height: 150px !important;
        object-fit: cover !important;
        object-position: center top !important;
    }
}

/* 모바일 반응형 - 트레이너 페이지 */
@media (max-width: 768px) {
    .trainer-card {
        flex-direction: column;
        text-align: center;
    }
    
    .trainer-avatar {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .trainer-info {
        text-align: center;
    }
    
    
    .achievement-item {
        justify-content: center;
    }
    
    .career-item {
        font-size: 0.75em;
        padding: 5px 8px;
    }
}

/* 매우 작은 모바일 화면 */
@media (max-width: 480px) {
    .character-images {
        gap: 10px;
    }
    
    .character-image img {
        max-width: 100px !important;
        min-width: 70px !important;
        height: 120px !important;
        object-fit: cover !important;
        object-position: center top !important;
    }
}

/* 404 페이지 스타일 */
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

.error-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.error-icon {
    font-size: 4rem;
    color: #4ecdc4;
    margin-bottom: 20px;
}

.error-content h1 {
    font-size: 4rem;
    color: #4ecdc4;
    margin-bottom: 10px;
    font-weight: 700;
}

.error-content h2 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
}

.error-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 30px;
}

.home-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}
