/**
 * Uranai Fortune Plugin Styles
 *
 * @package Uranai_Fortune
 * @version 1.0.0
 */

/* コンテナ */
.uranai-fortune-container {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 30px;
    border-radius: 20px;
    max-width: 800px;
    margin: 20px auto;
    box-sizing: border-box;
}

.uranai-fortune-container *,
.uranai-fortune-container *::before,
.uranai-fortune-container *::after {
    box-sizing: border-box;
}

/* ライトテーマ */
.uranai-fortune-container.uranai-light-theme {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 50%, #d1d9e6 100%);
    color: #333;
}

.uranai-light-theme .uranai-subtitle,
.uranai-light-theme .uranai-fortune-date,
.uranai-light-theme .uranai-lucky-label,
.uranai-light-theme .uranai-footer p {
    color: #666;
}

.uranai-light-theme .uranai-input-section,
.uranai-light-theme .uranai-fortune-category,
.uranai-light-theme .uranai-lucky-item {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.uranai-light-theme .uranai-input-group input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: #333;
}

.uranai-light-theme .uranai-fortune-category p {
    color: #444;
}

/* 言語切り替え */
.uranai-language-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.uranai-lang-btn {
    padding: 8px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: transparent;
    color: #a0a0c0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.uranai-lang-btn:hover {
    border-color: #ffd700;
    color: #ffd700;
}

.uranai-lang-btn.active {
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    border-color: transparent;
    color: #1a1a2e;
    font-weight: bold;
}

.uranai-light-theme .uranai-lang-btn {
    border-color: rgba(0, 0, 0, 0.2);
    color: #666;
}

.uranai-light-theme .uranai-lang-btn:hover {
    border-color: #ff8c00;
    color: #ff8c00;
}

.uranai-light-theme .uranai-lang-btn.active {
    color: #fff;
}

/* ヘッダー */
.uranai-header {
    text-align: center;
    padding: 40px 0 30px;
    position: relative;
}

.uranai-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0 0 15px 0;
    color: #ffd700;
    position: relative;
    display: inline-block;
    letter-spacing: 0.1em;
    text-shadow:
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 107, 107, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.5);
    animation: uranai-glow 2s ease-in-out infinite;
}

@keyframes uranai-glow {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(255, 215, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 40px rgba(255, 107, 107, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.5);
    }
    50% {
        text-shadow:
            0 0 20px rgba(255, 215, 0, 1),
            0 0 40px rgba(255, 215, 0, 0.8),
            0 0 60px rgba(255, 107, 107, 0.6),
            0 2px 4px rgba(0, 0, 0, 0.5);
    }
}

.uranai-title::before {
    content: '✧';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    -webkit-text-fill-color: #ffd700;
    animation: uranai-sparkle 2s ease-in-out infinite;
}

.uranai-title::after {
    content: '✧';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    -webkit-text-fill-color: #ffd700;
    animation: uranai-sparkle 2s ease-in-out infinite 0.5s;
}


@keyframes uranai-sparkle {
    0%, 100% {
        opacity: 0.5;
        transform: translateY(-50%) scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2) rotate(180deg);
    }
}

/* タイトルの装飾ライン */
.uranai-header::after {
    content: '';
    display: block;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd700, #ff6b6b, #ffd700, transparent);
    margin: 20px auto 0;
    border-radius: 3px;
    animation: uranai-line-glow 2s ease-in-out infinite;
}

@keyframes uranai-line-glow {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    }
}

.uranai-subtitle {
    margin: 0;
    color: #c0c0e0;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 入力セクション */
.uranai-input-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.uranai-input-section h3 {
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    color: #e0e0ff;
}

.uranai-light-theme .uranai-input-section h3 {
    color: #444;
}

.uranai-date-inputs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.uranai-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.uranai-input-group label {
    margin-bottom: 8px;
    color: #c0c0e0;
    font-size: 0.9rem;
}

.uranai-light-theme .uranai-input-group label {
    color: #555;
}

.uranai-input-group input {
    width: 100px;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.uranai-input-group input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.uranai-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.uranai-light-theme .uranai-input-group input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.uranai-submit-btn {
    display: block;
    width: 180px;
    margin: 0 auto;
    padding: 14px 28px;
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    border: none;
    border-radius: 30px;
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.uranai-submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

/* 結果セクション */
.uranai-result-section {
    margin-top: 25px;
    animation: uranai-fadeIn 0.8s ease;
}

@keyframes uranai-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.uranai-hidden {
    display: none !important;
}

.uranai-result-header {
    text-align: center;
    margin-bottom: 20px;
}

.uranai-result-header h3 {
    font-size: 1.6rem;
    color: #ffd700;
    margin: 0 0 5px 0;
}

.uranai-fortune-date {
    color: #a0a0c0;
    margin: 0;
}

/* 運勢レベル */
.uranai-fortune-level {
    text-align: center;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.uranai-stars {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.uranai-level-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffd700;
    margin: 0;
}

/* 運勢コンテンツ */
.uranai-fortune-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.uranai-fortune-category {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.uranai-fortune-category:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.uranai-fortune-category h4 {
    color: #ff6b6b;
    margin: 0 0 10px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.uranai-fortune-category h4::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    border-radius: 50%;
}

#uranai-work-fortune h4 { color: #4ecdc4; }
#uranai-work-fortune h4::before { background: #4ecdc4; }

#uranai-health-fortune h4 { color: #95e1d3; }
#uranai-health-fortune h4::before { background: #95e1d3; }

#uranai-money-fortune h4 { color: #ffd93d; }
#uranai-money-fortune h4::before { background: #ffd93d; }

.uranai-fortune-category p {
    line-height: 1.8;
    color: #e0e0e0;
    margin: 0;
    font-size: 0.95rem;
}

/* ラッキーアイテム */
.uranai-lucky-items {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.uranai-lucky-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.uranai-lucky-label {
    display: block;
    font-size: 0.8rem;
    color: #a0a0c0;
    margin-bottom: 4px;
}

.uranai-lucky-value {
    font-size: 1rem;
    font-weight: bold;
    color: #ffd700;
}

/* アドバイスセクション */
.uranai-advice-section {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(78, 205, 196, 0.2));
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.uranai-advice-section h4 {
    color: #ffd700;
    margin: 0 0 12px 0;
    text-align: center;
}

.uranai-advice-section p {
    line-height: 1.8;
    color: #e0e0e0;
    text-align: center;
    margin: 0;
    font-size: 0.95rem;
}

.uranai-light-theme .uranai-advice-section p {
    color: #444;
}

/* パターン情報 */
.uranai-pattern-info {
    text-align: center;
    color: #606080;
    padding: 8px;
}

.uranai-pattern-info small {
    font-size: 0.8rem;
}

/* フッター */
.uranai-footer {
    text-align: center;
    padding: 20px 0 0;
    color: #606080;
    font-size: 0.85rem;
}

.uranai-footer p {
    margin: 0;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .uranai-fortune-container {
        padding: 20px 15px;
        margin: 10px;
        border-radius: 15px;
    }

    .uranai-title {
        font-size: 1.8rem;
        letter-spacing: 0.05em;
    }

    .uranai-title::before,
    .uranai-title::after {
        font-size: 1rem;
        left: -25px;
        right: -25px;
    }

    .uranai-title::before {
        left: -25px;
    }

    .uranai-title::after {
        right: -25px;
    }

    .uranai-date-inputs {
        flex-direction: column;
        align-items: center;
    }

    .uranai-input-group input {
        width: 140px;
    }

    .uranai-fortune-content {
        grid-template-columns: 1fr;
    }

    .uranai-lucky-items {
        flex-direction: column;
        align-items: center;
    }

    .uranai-lucky-item {
        width: 100%;
        max-width: 250px;
    }
}
