/* 本気で好きな人診断 - WordPress Plugin Styles */

/* ベーススタイル */
#love-diagnosis-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, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

#love-diagnosis-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); }
}

/* フォームヘッダー */
.form-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

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

.diagnosis-subtitle {
    font-size: 1.2em;
    color: #666;
    margin: 0;
    font-weight: 300;
}

/* フォームセクション */
.form-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.form-section h3 {
    color: #e91e63;
    font-size: 1.5em;
    margin: 0 0 20px 0;
    text-align: center;
    font-weight: bold;
}

/* フォームグループ */
.form-group {
    margin-bottom: 25px;
}

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

/* 日付セレクター */
.date-selectors {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-select {
    flex: 1;
    min-width: 100px;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.form-select:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

/* 性別選択 */
.gender-options {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px 25px;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
    min-width: 120px;
    justify-content: center;
}

.radio-option:hover {
    border-color: #e91e63;
    background: #fce4ec;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #e91e63;
    background: #e91e63;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-option input[type="radio"]:checked ~ .radio-text {
    color: #e91e63;
    font-weight: bold;
}

.radio-text {
    font-size: 1.1em;
    transition: all 0.3s ease;
}

/* プログレスバー */
.progress-bar {
    background: #f0f0f0;
    border-radius: 10px;
    height: 8px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #e91e63, #ff6b9d);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 0.9em;
    color: #666;
    font-weight: bold;
}

/* 質問コンテナ */
#question-container {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.question-card {
    text-align: center;
    width: 100%;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-title {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.question-option {
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
    text-align: left;
    display: flex;
    align-items: center;
}

.question-option:hover {
    border-color: #e91e63;
    background: #fce4ec;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.2);
}

.question-option.selected {
    border-color: #e91e63;
    background: #e91e63;
    color: white;
    font-weight: bold;
}

.question-option-icon {
    font-size: 1.5em;
    margin-right: 15px;
}

/* ナビゲーションボタン */
.question-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

/* ボタンスタイル */
.btn-primary, .btn-secondary, .btn-submit, .btn-cta {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 150px;
}

.btn-primary {
    background: linear-gradient(135deg, #e91e63, #ff6b9d);
    color: white;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    background: #e0e0e0;
    border-color: #bbb;
}

.btn-submit {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    font-size: 1.2em;
    padding: 18px 40px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-cta {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
    font-size: 1.2em;
    padding: 18px 40px;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
    text-decoration: none;
    color: white;
}

/* 結果セクション */
#result-section {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
}

.result-header h2 {
    font-size: 2.2em;
    color: #e91e63;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.result-subtitle {
    font-size: 1.2em;
    color: #666;
    margin: 0;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.result-card h3 {
    color: #e91e63;
    font-size: 1.4em;
    margin: 0 0 20px 0;
    text-align: center;
    font-weight: bold;
}

.result-item {
    margin-bottom: 15px;
}

.result-item h4 {
    color: #333;
    font-size: 1.1em;
    margin: 0 0 8px 0;
    font-weight: bold;
}

.result-item p {
    color: #555;
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #e91e63;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* シェアボタン */
.share-buttons {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
}

.share-buttons h4 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 1.2em;
}

.share-btn {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #4267b2;
}

.share-btn.line {
    background: #00b900;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ローディング */
#loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

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

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

#loading-overlay p {
    font-size: 1.2em;
    color: #666;
    font-weight: bold;
}

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

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

    .form-section {
        padding: 20px;
    }

    .date-selectors {
        flex-direction: column;
    }

    .gender-options {
        flex-direction: column;
        align-items: center;
    }

    .question-navigation {
        flex-direction: column;
    }

    .result-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary, .btn-submit, .btn-cta {
        width: 100%;
        max-width: 300px;
    }
}

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

    .diagnosis-subtitle {
        font-size: 1em;
    }

    .form-section {
        padding: 15px;
    }

    .question-options {
        max-width: 100%;
    }

    .share-btn {
        display: block;
        margin: 5px auto;
        width: 200px;
    }
}

/* アニメーション効果 */
.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-up {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ハート装飾 */
.heart-decoration {
    position: absolute;
    color: rgba(233, 30, 99, 0.3);
    font-size: 2em;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* テーマバリエーション */
.love-diagnosis-theme-pink {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.love-diagnosis-theme-blue {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.love-diagnosis-theme-purple {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
}