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

body {
    font-family: 'Segoe UI', 'Malgun Gothic', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

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

.detail-container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 20px;
    padding: 30px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

h1 {
    font-size: 2.5em;
    color: #2d3748;
    margin-bottom: 10px;
    font-weight: 700;
}

.date {
    font-size: 1.2em;
    color: #4a5568;
    margin-bottom: 5px;
    font-weight: 500;
}

.subtitle {
    color: #718096;
    font-size: 0.95em;
}

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

.zodiac-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.zodiac-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f6d365 0%, #fda085 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.zodiac-card:hover::before {
    transform: scaleX(1);
}

.zodiac-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.zodiac-emoji {
    font-size: 4em;
    margin-bottom: 15px;
    display: block;
}

.zodiac-name {
    font-size: 1.5em;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 8px;
}

.zodiac-years {
    color: #718096;
    font-size: 0.9em;
}

.luck-indicator {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.luck-stars {
    color: #f6d365;
    font-size: 1.2em;
    letter-spacing: 2px;
}

footer {
    text-align: center;
    padding: 30px;
    color: #718096;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* 상세 페이지 스타일 */
.back-button {
    display: inline-block;
    margin-bottom: 20px;
    padding: 12px 24px;
    background: white;
    color: #4a5568;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.back-button:hover {
    background: #f7fafc;
    transform: translateX(-5px);
}

.detail-header {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.detail-emoji {
    font-size: 5em;
    margin-bottom: 15px;
}

.detail-title {
    font-size: 2.2em;
    color: #2d3748;
    margin-bottom: 10px;
}

.fortune-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.fortune-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f6d365 0%, #fda085 50%, #48c6ef 100%);
}

.section-title {
    font-size: 1.4em;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    font-size: 1.2em;
}

.section-content {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.05em;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #718096;
}

.error {
    text-align: center;
    padding: 40px;
    color: #e53e3e;
    background: #fff5f5;
    border-radius: 15px;
}

/* 반응형 */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    
    .zodiac-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .zodiac-card {
        padding: 20px;
    }
    
    .detail-header {
        padding: 30px 20px;
    }
    
    .fortune-section {
        padding: 20px;
    }
}
