/**
 * エンジェルナンバープラグインフロントエンド用スタイル
 * 
 * フロントエンドでのエンジェルナンバー表示のスタイルを定義
 * 
 * @package AngelNumberMeanings
 * @version 1.0.0
 * @author AI Assistant
 */

/* 検索コンテナ */
.anm-search-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: white;
    text-align: center;
}

.anm-search-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 300;
}

.anm-search-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

/* 検索フォーム */
.anm-search-form {
    margin-bottom: 30px;
}

.anm-input-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.anm-number-input {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transition: all 0.3s ease;
}

.anm-number-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.anm-search-button {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.anm-search-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
}

.anm-search-button:active {
    transform: translateY(-1px);
}

/* 結果コンテナ */
.anm-result-container {
    margin-top: 30px;
}

.anm-loading {
    text-align: center;
    padding: 40px;
    color: white;
    font-size: 1.2em;
}

.anm-loading::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: anm-spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes anm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 結果表示 */
.anm-result {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: anm-fadeIn 0.5s ease-in;
}

@keyframes anm-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* h2タグのスタイル（検索結果タイトル用） */
.anm-result-title {
    color: #667eea;
    font-size: 1.8em;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
}

/* 既存のh3スタイルをh2に統合 */
.anm-result h2,
.anm-result h3 {
    color: #667eea;
    font-size: 1.8em;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
}

/* 各ショートコードのh2タイトルスタイル */
.anm-popular-title,
.anm-category-title,
.anm-random-title,
.anm-number-title {
    color: #667eea;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
}

.anm-result .anm-number-value {
    font-size: 4em;
    font-weight: bold;
    color: #764ba2;
    text-align: center;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.anm-result .anm-number-category {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    margin: 15px 0;
    font-size: 0.9em;
    font-weight: 600;
}

.anm-result .anm-number-meaning {
    line-height: 1.8;
    font-size: 1.1em;
    margin: 20px 0;
    text-align: justify;
}

.anm-result .anm-number-date {
    text-align: right;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* エラーメッセージ */
.anm-error {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.1em;
}

/* 表示コンテナ */
.anm-display-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.anm-number-display {
    text-align: center;
}

.anm-number-display .anm-number-title {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 20px;
}

.anm-number-display .anm-number-value {
    font-size: 5em;
    font-weight: bold;
    color: #764ba2;
    margin: 30px 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
}

.anm-number-display .anm-number-category {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    display: inline-block;
    margin: 20px 0;
    font-size: 1em;
    font-weight: 600;
}

.anm-number-display .anm-number-meaning {
    line-height: 1.8;
    font-size: 1.2em;
    margin: 30px 0;
    text-align: justify;
    color: #333;
}

.anm-number-display .anm-number-date {
    text-align: right;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* 人気ナンバー */
.anm-popular-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.anm-popular-title {
    color: #667eea;
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 30px;
}

.anm-popular-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.anm-popular-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.anm-popular-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.anm-popular-number {
    font-size: 3em;
    font-weight: bold;
    color: #764ba2;
    margin-bottom: 15px;
}

.anm-popular-title {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.anm-popular-meaning {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.anm-popular-category {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

/* カテゴリナンバー */
.anm-category-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.anm-category-title {
    color: #667eea;
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 30px;
}

.anm-category-search {
    margin-bottom: 30px;
    text-align: center;
}

.anm-category-filter {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.anm-category-filter:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.anm-category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.anm-category-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.anm-category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.anm-category-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #764ba2;
    margin-bottom: 15px;
    text-align: center;
}

.anm-category-title {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.anm-category-meaning {
    color: #666;
    line-height: 1.6;
    text-align: justify;
}

/* ランダムナンバー */
.anm-random-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    color: white;
    text-align: center;
}

.anm-random-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.anm-refresh-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.anm-refresh-button:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.anm-random-number {
    font-size: 6em;
    font-weight: bold;
    margin: 30px 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.anm-random-container .anm-number-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: white;
}

.anm-random-container .anm-number-meaning {
    line-height: 1.8;
    font-size: 1.2em;
    margin: 25px 0;
    text-align: justify;
    color: white;
}

.anm-random-container .anm-number-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    margin: 20px 0;
    font-size: 0.9em;
    font-weight: 600;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .anm-search-container,
    .anm-display-container,
    .anm-popular-container,
    .anm-category-container,
    .anm-random-container {
        margin: 20px 15px;
        padding: 20px;
    }
    
    .anm-search-title,
    .anm-popular-title,
    .anm-category-title,
    .anm-random-title {
        font-size: 1.8em;
    }
    
    .anm-input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .anm-number-input,
    .anm-search-button {
        width: 100%;
        min-width: auto;
    }
    
    .anm-popular-list,
    .anm-category-list {
        grid-template-columns: 1fr;
    }
    
    .anm-result .anm-number-value,
    .anm-number-display .anm-number-value,
    .anm-random-number {
        font-size: 3em;
    }
}

@media screen and (max-width: 480px) {
    .anm-search-container,
    .anm-display-container,
    .anm-popular-container,
    .anm-category-container,
    .anm-random-container {
        margin: 15px 10px;
        padding: 15px;
    }
    
    .anm-search-title,
    .anm-popular-title,
    .anm-category-title,
    .anm-random-title {
        font-size: 1.5em;
    }
    
    .anm-result .anm-number-value,
    .anm-number-display .anm-number-value,
    .anm-random-number {
        font-size: 2.5em;
    }
}

/* アニメーション */
.anm-fadeIn {
    animation: anm-fadeIn 0.5s ease-in;
}

.anm-slideIn {
    animation: anm-slideIn 0.5s ease-out;
}

@keyframes anm-slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
    .anm-search-button:hover,
    .anm-popular-item:hover,
    .anm-category-item:hover,
    .anm-refresh-button:hover {
        transform: none;
    }
    
    .anm-loading::before {
        animation: none;
    }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .anm-search-container,
    .anm-random-container {
        border: 3px solid currentColor;
    }
    
    .anm-result,
    .anm-display-container,
    .anm-popular-container,
    .anm-category-container {
        border: 2px solid currentColor;
    }
    
    .anm-birthday-container {
        border: 3px solid currentColor;
    }
}

/* 誕生日エンジェルナンバー生成 */
.anm-birthday-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: white;
}

.anm-birthday-title {
    font-size: 2.2em;
    margin-bottom: 15px;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.anm-birthday-description {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.1em;
    line-height: 1.6;
    opacity: 0.9;
}

.anm-birthday-form {
    margin-bottom: 25px;
}

.anm-birthday-input-group {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.anm-birthday-input {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transition: all 0.3s ease;
}

.anm-birthday-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.anm-birthday-button {
    padding: 15px 30px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.anm-birthday-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
}

.anm-birthday-result-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.anm-birthday-loading {
    text-align: center;
    font-size: 1.2em;
    color: #ffd700;
    margin-bottom: 20px;
}

.anm-birthday-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: #ffd700;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

.anm-birthday-error {
    background: rgba(255, 107, 107, 0.15);
    border: 2px solid #ff6b6b;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    color: #ffd700;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: errorShake 0.5s ease-in-out;
}

.anm-error-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
}

.anm-error-message {
    font-size: 1.2em;
    margin-bottom: 15px;
    line-height: 1.5;
    color: #ffd700;
}

.anm-error-help {
    font-size: 0.95em;
    color: rgba(255, 215, 0, 0.8);
    font-weight: normal;
    line-height: 1.4;
}

/* エラーアニメーション */
@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* エラーメッセージのホバー効果 */
.anm-birthday-error:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* フォーム初期化エラーのスタイル */
.anm-birthday-form-error {
    background: rgba(255, 107, 107, 0.15);
    border: 2px solid #ff6b6b;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    color: #ffd700;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: errorShake 0.5s ease-in-out;
}

.anm-birthday-details {
    color: white;
}

.anm-birthday-info,
.anm-life-path-number,
.anm-destiny-number,
.anm-generated-numbers {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.anm-birthday-info h3,
.anm-life-path-number h3,
.anm-destiny-number h3,
.anm-generated-numbers h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.3em;
    text-align: center;
}

.anm-birthday-info p {
    margin: 10px 0;
    font-size: 1.1em;
    text-align: center;
}

.anm-number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.anm-number-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.anm-number-item:hover {
    transform: translateY(-3px);
}

.anm-number-item strong {
    color: #ffd700;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.anm-number-item small {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* スピンアニメーション */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
