/* 願いが叶う日カレンダー スタイル */

#wish-calendar-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#wish-calendar-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
}

#wish-calendar-form h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 16px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.wfc-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.wfc-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 25px rgba(255, 107, 107, 0.4);
}

.wfc-btn:active {
    transform: translateY(-1px);
}

#wish-calendar-results {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    color: #333;
}

#lucky-days-summary {
    margin-bottom: 25px;
}

.lucky-day-card {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.lucky-day-card:hover {
    transform: translateY(-5px);
}

.lucky-day-card h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #2c3e50;
}

.lucky-day-card p {
    margin: 5px 0;
    font-size: 14px;
}

.score-badge {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.google-calendar-link {
    display: inline-block;
    background: #4285f4;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.google-calendar-link:hover {
    background: #3367d6;
    color: white;
    text-decoration: none;
}

/* FullCalendar カスタマイズ */
.fc {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.fc-toolbar-title {
    font-size: 24px !important;
    font-weight: bold !important;
    color: #2c3e50 !important;
}

.fc-button {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 15px !important;
    font-weight: 600 !important;
}

.fc-button:hover {
    background: linear-gradient(45deg, #5a67d8, #6b46c1) !important;
}

.fc-event {
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 2px 5px !important;
    transition: transform 0.2s ease !important;
}

.fc-event:hover {
    transform: scale(1.05) !important;
    z-index: 999 !important;
}

/* ローディングアニメーション */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* レスポンシブ対応 */
@media (max-width: 768px) {
    #wish-calendar-container {
        margin: 10px;
        padding: 15px;
    }

    #wish-calendar-form {
        padding: 20px;
    }

    #wish-calendar-form h3 {
        font-size: 22px;
    }

    .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
    }
}

/* エラーメッセージ */
.error-message {
    background: #ff6b6b;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
    text-align: center;
    font-weight: 600;
}

/* 成功メッセージ */
.success-message {
    background: #4ecdc4;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
    text-align: center;
    font-weight: 600;
}

/* ツールチップ */
.fc-event .fc-event-title {
    font-size: 11px !important;
}

/* 特別な日のハイライト */
.super-lucky-day {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e) !important;
    animation: pulse 2s infinite !important;
}

.lucky-day {
    background: linear-gradient(45deg, #4ecdc4, #6ee7e1) !important;
}

.warning-day {
    background: linear-gradient(45deg, #95a5a6, #b2bec3) !important;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 今日の日付をハイライト */
.fc-day-today {
    background-color: rgba(255, 235, 59, 0.3) !important;
}