/* Daily Tarot Horoscope Pro - Frontend Styles */

.tarot-horoscope-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
}

.tarot-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.tarot-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tarot-description {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.zodiac-card {
    background: white;
    border-radius: 15px;
    margin-bottom: 25px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.zodiac-card.top-rank {
    border-left-color: #FFD700;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.zodiac-card.top-rank:nth-child(2) {
    border-left-color: #FFD700;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.zodiac-card.top-rank:nth-child(3) {
    border-left-color: #C0C0C0;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.zodiac-card.top-rank:nth-child(4) {
    border-left-color: #CD7F32;
    background: linear-gradient(135deg, #faf5f0 0%, #ffffff 100%);
}

.zodiac-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.zodiac-header h3 {
    margin: 0;
    font-size: 1.8em;
    color: #333;
}

.total-score {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1em;
}

.category-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.category-section h4 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fortune-text {
    margin: 0;
    line-height: 1.8;
    color: #555;
    font-size: 1.05em;
    text-align: justify;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .tarot-horoscope-container {
        padding: 10px;
    }

    .tarot-header h2 {
        font-size: 2em;
    }

    .zodiac-card {
        padding: 15px;
    }

    .zodiac-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .zodiac-header h3 {
        font-size: 1.5em;
    }
}

/* 星とハートの評価表示 */
.rating-display {
    font-size: 1.2em;
    letter-spacing: 2px;
}

/* アニメーション効果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zodiac-card {
    animation: fadeInUp 0.6s ease-out;
}

.zodiac-card:nth-child(even) {
    animation-delay: 0.1s;
}

.zodiac-card:nth-child(odd) {
    animation-delay: 0.2s;
}

/* 印刷用スタイル */
@media print {
    .tarot-horoscope-container {
        max-width: none;
        padding: 0;
    }

    .zodiac-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .tarot-header {
        background: #f0f0f0 !important;
        color: #333 !important;
    }
}
