/* fortune.css - 운세 페이지 스타일 */

.fortune-selector {
    background: var(--glass-bg);
    padding: 25px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fortune-selector label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1.1em;
}

.fortune-select {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 1em;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
}

.fortune-select:hover {
    border-color: var(--primary);
}

.fortune-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.1);
}

.fortune-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1.05em;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.fortune-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 210, 255, 0.3);
}

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

.loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 300px;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fortune-header {
    text-align: center;
    margin-bottom: 30px;
}

.fortune-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.fortune-date {
    color: var(--text-dim);
    font-size: 0.95em;
}

.fortune-overall {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    margin-bottom: 30px;
    text-align: center;
}

.fortune-overall.today-fortune {
    margin-bottom: 40px;
}

.fortune-level {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.fortune-level.level-excellent {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
}

.fortune-level.level-good {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: white;
}

.fortune-level.level-normal {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: white;
}

.fortune-level.level-caution {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.fortune-level.level-bad {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: white;
}

.fortune-message {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-main);
    margin-top: 15px;
}

.fortune-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.fortune-category-card {
    background: var(--glass-bg);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.fortune-category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 210, 255, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--text-main);
}

.category-header i {
    color: var(--primary);
    font-size: 1.2em;
}

.category-level {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 12px;
}

.category-level.level-excellent {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.category-level.level-good {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.category-level.level-normal {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.category-level.level-caution {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.category-level.level-bad {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.category-message {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 0.95em;
}

/* 오늘의 운세 전용 스타일 */
.today-fortune-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.fortune-detail-card {
    background: var(--glass-bg);
    padding: 25px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.fortune-detail-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 210, 255, 0.1);
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
}

.detail-content h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.detail-content p {
    color: var(--text-dim);
    line-height: 1.6;
}

.lucky-number {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-top: 10px;
}

.lucky-color {
    font-size: 1.5em;
    font-weight: 700;
    text-align: center;
    margin-top: 10px;
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-block;
    width: 100%;
}

.refresh-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.05em;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

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

.error-msg {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .fortune-categories {
        grid-template-columns: 1fr;
    }
    
    .today-fortune-details {
        grid-template-columns: 1fr;
    }
    
    .fortune-header h2 {
        font-size: 1.5rem;
    }
}

