/* 기본 스타일 */
:root {
    --primary-color: #3A7BD5;
    --secondary-color: #00D2FF;
    --accent-color: #00C9FF;
    --background-color: #121212;
    --card-bg-color: #1E1E1E;
    --text-color: #FFFFFF;
    --text-secondary: #B0B0B0;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 헤더 스타일 */
header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.back-btn {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.05);
}

.back-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* 카드 스타일 */
.card {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    letter-spacing: 0.5px;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* 입력 폼 스타일 */
.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #333;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 16px;
    transition: var(--transition);
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition);
}

.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    border-color: var(--primary-color);
    outline: none;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: 0;
    left: 10px;
    font-size: 12px;
    padding: 0 5px;
    background-color: var(--card-bg-color);
    color: var(--primary-color);
}

.input-group.focused input {
    border-color: var(--primary-color);
}

.input-group.focused label {
    top: 0;
    left: 10px;
    font-size: 12px;
    padding: 0 5px;
    background-color: var(--card-bg-color);
    color: var(--primary-color);
}

/* 버튼 스타일 */
.analyze-btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* 에러 메시지 */
.error-message {
    color: #ff6b6b;
    margin-top: 1rem;
    text-align: center;
}

/* 특징 섹션 */
.section-title {
    font-size: 28px;
    margin-bottom: 2rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 1rem;
}

.feature p {
    color: var(--text-secondary);
}

/* 결과 페이지 스타일 */
.result-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* 점수 카드 */
.score-card {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 40px rgba(138, 43, 226, 0.1) inset;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.score-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.12) 0%, rgba(74, 0, 224, 0.08) 40%, rgba(30, 30, 30, 0) 70%);
    animation: pulse 8s infinite ease-in-out;
    z-index: 0;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(0.8); opacity: 0.3; }
}

.score-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

/* 물결 효과 */
.ripple-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.2) 0%, rgba(74, 0, 224, 0.1) 50%, rgba(138, 43, 226, 0) 70%);
    transform: scale(0);
    animation: rippleEffect 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 0.7;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.score-container::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(138, 43, 226, 0.4);
    z-index: -1;
    animation: pulse-ring 3s ease-out infinite;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.3), 0 0 60px rgba(138, 43, 226, 0.1) inset;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
        border-width: 2px;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.6;
        border-width: 1px;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.3;
        border-width: 2px;
    }
}

.score-circle {
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.7));
    transition: transform 0.5s ease, filter 0.5s ease;
}

.score-circle:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(138, 43, 226, 0.9));
}

.score-value {
    font-weight: 700;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.8);
    transition: text-shadow 0.3s ease;
}

.score-label {
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

/* 글로우 효과 */
.glow {
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% {
        text-shadow: 0 0 10px rgba(138, 43, 226, 0.5), 0 0 20px rgba(138, 43, 226, 0.3);
    }
    100% {
        text-shadow: 0 0 20px rgba(138, 43, 226, 0.8), 0 0 30px rgba(138, 43, 226, 0.5), 0 0 40px rgba(138, 43, 226, 0.3);
    }
}

/* 폭죽 효과 */
.firework {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    box-shadow: 0 0 12px 4px;
    animation: firework-anim 2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    opacity: 0;
    z-index: 2;
}

@keyframes firework-anim {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    40% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y));
        opacity: 0;
    }
}

/* 폭죽 색상 변수 */
.firework-level-1 {
    background-color: #ff5252;
    box-shadow: 0 0 15px 4px #ff5252, 0 0 30px 2px rgba(255, 82, 82, 0.5);
}

.firework-level-2 {
    background-color: #ffab40;
    box-shadow: 0 0 15px 4px #ffab40, 0 0 30px 2px rgba(255, 171, 64, 0.5);
}

.firework-level-3 {
    background-color: #ffeb3b;
    box-shadow: 0 0 15px 4px #ffeb3b, 0 0 30px 2px rgba(255, 235, 59, 0.5);
}

.firework-level-4 {
    background-color: #66bb6a;
    box-shadow: 0 0 15px 4px #66bb6a, 0 0 30px 2px rgba(102, 187, 106, 0.5);
}

.firework-level-5 {
    background-color: #448aff;
    box-shadow: 0 0 15px 4px #448aff, 0 0 30px 2px rgba(68, 138, 255, 0.5);
}

/* 반짝이는 입자 효과 */
.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: white;
    opacity: 0;
    z-index: 3;
    animation: sparkle-anim 1.5s ease-out forwards;
}

@keyframes sparkle-anim {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    20% {
        opacity: 1;
        transform: scale(1);
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* 점수 값 하이라이트 효과 */
.highlight {
    animation: highlight 0.8s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

@keyframes highlight {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.3);
        filter: brightness(1.8);
    }
}

/* 지표 카드 */
.metrics-card {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metrics-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.metric {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

.metric:nth-child(1) { animation-delay: 0.2s; }
.metric:nth-child(2) { animation-delay: 0.4s; }
.metric:nth-child(3) { animation-delay: 0.6s; }
.metric:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-bar-fill {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    height: 100%;
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.metric-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 프로필 카드 */
.profile-card {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.8s ease-in-out;
    max-width: 100%;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-name {
    font-size: 24px;
    margin-bottom: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.data-notice {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.data-notice p {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    letter-spacing: 0.3px;
}

/* 통계 카드 */
.stats-card {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 포스트 카드 */
.posts-card {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.posts-container {
    display: grid;
    gap: 1.5rem;
}

.post {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.post-content {
    margin-bottom: 1rem;
    font-size: 14px;
}

.post-stats {
    display: flex;
    gap: 1.5rem;
}

.post-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-stat-icon {
    font-size: 14px;
}

.post-stat-value {
    font-size: 14px;
    font-weight: 600;
}

/* 푸터 스타일 */
footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 스타일 */
@media (min-width: 768px) {
    .result-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-card, .score-card {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 1rem;
    }
    
    .title {
        font-size: 32px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
}

/* 파티클 애니메이션 */
.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--color, linear-gradient(135deg, var(--primary-color), var(--secondary-color)));
    opacity: var(--opacity, 0);
    width: var(--size, 5px);
    height: var(--size, 5px);
    transform: scale(0);
    animation: particleFade var(--speed, 3s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    box-shadow: 0 0 10px var(--color, rgba(138, 43, 226, 0.6));
    z-index: 0;
}

@keyframes particleFade {
    0% {
        opacity: 0;
        transform: scale(0) translate(0, 0);
    }
    20% {
        opacity: var(--opacity, 0.8);
        transform: scale(1) translate(calc(var(--x, 50%) - 50%), calc(var(--y, 50%) - 50%));
    }
    80% {
        opacity: var(--opacity, 0.8);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) translate(calc(var(--x, 50%) - 25%), calc(var(--y, 50%) - 25%));
    }
}

/* 점수 값 하이라이트 효과 */
.highlight {
    animation: highlight 0.5s ease-in-out;
}

@keyframes highlight {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.2);
        filter: brightness(1.5);
    }
}

/* 메트릭 값 색상 */
.high-score {
    color: #4CAF50;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.medium-score {
    color: #FFC107;
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

.low-score {
    color: #F44336;
    text-shadow: 0 0 5px rgba(244, 67, 54, 0.5);
}

/* 카드 틸트 효과 */
.score-card, .metrics-card {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

/* 메트릭 컨테이너 */
.metrics-container {
    display: grid;
    gap: 1.5rem;
}

.metric {
    margin-bottom: 1rem;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.metric-name {
    font-size: 16px;
    color: var(--text-secondary);
}

.metric-value {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.metric-bar {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

/* 애니메이션 오버레이 스타일 */
.analysis-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.analysis-overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
}

.loader-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

.loader-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
    animation: spin 1.5s linear infinite;
}

.loader-circle::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-left-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    animation: spin 2s linear infinite reverse;
}

.loader-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 0, 224, 0.1) 0%, rgba(142, 45, 226, 0) 70%);
    animation: pulse 2s ease-out infinite;
}

.loader-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.loader-particles::before,
.loader-particles::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    animation: particles 2s ease-in-out infinite;
}

.loader-particles::before {
    top: 20%;
    left: 20%;
    animation-delay: 0.5s;
}

.loader-particles::after {
    bottom: 20%;
    right: 20%;
    animation-delay: 1s;
}

.loading-text {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.loading-subtext {
    font-size: 16px;
    color: var(--text-secondary);
}

.dot-animation {
    display: inline-block;
    animation: dotAnimation 1.5s infinite;
}

/* 애니메이션 키프레임 */
@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
}

@keyframes particles {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

@keyframes dotAnimation {
    0%, 20% {
        content: '.';
    }
    40%, 60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* 카카오 로그인 버튼 */
.kakao-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.8rem 1.5rem;
    background-color: #FEE500;
    color: #000000;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    margin-top: 1rem;
}

.kakao-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-required {
    text-align: center;
    padding: 1rem;
}

.login-required p {
    margin-bottom: 1rem;
    color: #666;
}

/* 사용자 프로필 */
.user-profile {
    display: flex;
    align-items: center;
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.user-name {
    font-size: 0.9rem;
    color: #fff;
    margin-right: 1rem;
    font-weight: 500;
}

.logout-btn {
    font-size: 0.8rem;
    color: #ccc;
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* 대기 페이지 스타일 */
.waiting-container {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.waiting-container h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.8rem;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    border-left-color: var(--secondary-color);
    animation: spin 1.5s linear infinite;
}

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

.waiting-message {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.waiting-info {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.auto-refresh {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.refresh-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.refresh-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.refresh-button:active {
    transform: translateY(1px);
}
