/* 金運UP日診断プラグイン - メインスタイル */

/* ベーススタイル */
.kinun-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.kinun-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

/* ヘッダースタイル */
.kinun-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.kinun-title {
    font-size: 2.5em;
    color: #8b4513;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

.kinun-subtitle {
    font-size: 1.1em;
    color: #654321;
    margin: 0;
    opacity: 0.9;
}

/* フォームスタイル */
.kinun-form {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: bold;
    color: #8b4513;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
}

.form-group input[type="date"]:focus,
.form-group select:focus {
    border-color: #ffd700;
    outline: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* ラジオボタングループ */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
}

/* 送信ボタン */
.kinun-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.kinun-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

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

/* ローディングアニメーション */
.kinun-loading {
    text-align: center;
    padding: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.kinun-loading p {
    font-size: 1.2em;
    color: #8b4513;
    margin: 0;
}

/* 結果表示エリア */
.kinun-results {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    z-index: 1;
}

.results-header h3 {
    text-align: center;
    font-size: 2em;
    color: #8b4513;
    margin: 0 0 30px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.fortune-section {
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-radius: 10px;
    border-left: 5px solid #ffd700;
}

.fortune-section h4 {
    color: #8b4513;
    font-size: 1.4em;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 週間チャート */
.weekly-chart {
    display: flex;
    justify-content: space-between;
    align-items: end;
    height: 200px;
    padding: 20px 0;
    background: white;
    border-radius: 8px;
    margin: 10px 0;
}

.day-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 5px;
}

.day-bar-container {
    height: 150px;
    display: flex;
    align-items: end;
    width: 100%;
    justify-content: center;
}

.day-bar {
    width: 30px;
    background: linear-gradient(to top, #ff6b35, #ffd700);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s ease;
    min-height: 20px;
}

.day-bar:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.score-label {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    color: #8b4513;
    font-size: 0.9em;
}

.day-label {
    margin-top: 10px;
    font-weight: bold;
    color: #8b4513;
}

.day-level {
    margin-top: 5px;
    font-size: 0.8em;
    color: #666;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 10px;
}

/* 月間チャート */
.monthly-chart {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
}

.week-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.month-day {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.month-day:hover {
    transform: scale(1.2);
}

.intensity-1 { background: #fff3cd; color: #856404; }
.intensity-2 { background: #ffeaa7; color: #6c5ce7; }
.intensity-3 { background: #fdcb6e; color: #2d3436; }
.intensity-4 { background: #e17055; color: white; }
.intensity-5 { background: #d63031; color: white; }

/* ラッキーデイカード */
.lucky-days-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.lucky-day-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffd700;
    position: relative;
    transition: all 0.3s ease;
}

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

.lucky-rank {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 2em;
    background: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.lucky-date {
    font-size: 1.3em;
    font-weight: bold;
    color: #8b4513;
    margin-bottom: 10px;
}

.lucky-score {
    font-size: 1.1em;
    color: #ff6b35;
    font-weight: bold;
    margin-bottom: 10px;
}

.lucky-reason {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.add-to-calendar {
    background: #4285f4;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.add-to-calendar:hover {
    background: #3367d6;
    transform: scale(1.05);
}

/* 推奨事項グリッド */
.recommendations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.actions-column,
.items-column {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.actions-column h5,
.items-column h5 {
    color: #8b4513;
    margin: 0 0 15px 0;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-list,
.item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.action-list li,
.item-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 25px;
}

.action-list li:before {
    content: '✨';
    position: absolute;
    left: 0;
}

.item-list li:before {
    content: '🎁';
    position: absolute;
    left: 0;
}

.action-list li:last-child,
.item-list li:last-child {
    border-bottom: none;
}

/* CTAセクション */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
}

.cta-section h4 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 1.5em;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.cta-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

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

/* リセットボタン */
.reset-section {
    text-align: center;
    margin-top: 30px;
}

.reset-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* モーダルスタイル */
.kinun-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 15px 15px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #8b4513;
}

.close-modal {
    font-size: 2em;
    cursor: pointer;
    color: #8b4513;
    line-height: 1;
}

.close-modal:hover {
    color: #654321;
}

.modal-body {
    padding: 30px;
}

/* グッズ・占い師グリッド */
.goods-grid,
.teller-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.goods-item,
.teller-item {
    text-align: center;
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.goods-item:hover,
.teller-item:hover {
    border-color: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.goods-image,
.teller-image {
    font-size: 3em;
    margin-bottom: 10px;
}

.goods-item h4,
.teller-item h4 {
    color: #8b4513;
    margin: 10px 0;
}

.goods-item p,
.teller-item p {
    color: #666;
    font-size: 0.9em;
    margin: 10px 0;
}

.teller-rating {
    margin: 10px 0;
}

.goods-link,
.teller-link {
    display: inline-block;
    background: #ffd700;
    color: #8b4513;
    padding: 8px 15px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.goods-link:hover,
.teller-link:hover {
    background: #ffed4e;
    transform: scale(1.05);
}

/* エラー表示 */
.kinun-error {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border-radius: 12px;
}

.error-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.error-message {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.error-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.error-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

    .kinun-title {
        font-size: 2em;
    }

    .kinun-form {
        padding: 20px;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .weekly-chart {
        height: 150px;
    }

    .day-bar-container {
        height: 100px;
    }

    .day-bar {
        width: 20px;
    }

    .lucky-days-list {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .goods-grid,
    .teller-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .kinun-title {
        font-size: 1.8em;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .week-row {
        justify-content: space-around;
    }

    .month-day {
        width: 25px;
        height: 25px;
        font-size: 0.7em;
    }
}

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

.fortune-section {
    animation: fadeInUp 0.6s ease-out;
}

.fortune-section:nth-child(2) { animation-delay: 0.1s; }
.fortune-section:nth-child(3) { animation-delay: 0.2s; }
.fortune-section:nth-child(4) { animation-delay: 0.3s; }
.fortune-section:nth-child(5) { animation-delay: 0.4s; }

/* テーマバリエーション */
.theme-dark .kinun-container {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.theme-dark .kinun-form,
.theme-dark .kinun-results {
    background: rgba(52, 73, 94, 0.9);
    color: white;
}

.theme-dark .kinun-title,
.theme-dark .results-header h3,
.theme-dark .fortune-section h4 {
    color: #f39c12;
}

.theme-pink .kinun-container {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.theme-green .kinun-container {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}