/* Custom styles to complement Tailwind and style FullCalendar */

.fc {
    --fc-page-bg-color: transparent;
    --fc-neutral-bg-color: transparent;
    --fc-list-event-hover-bg-color: #fce7f3;
    --fc-theme-standard-border-color: #fbcfe8;
    --fc-today-bg-color: transparent; /* Geminiカラーの上書き用に透明化 */
}

/* 当日（今日）をGeminiカラーにカスタマイズ */
.fc-day-today {
    background-image: linear-gradient(135deg, rgba(66, 133, 244, 0.09) 0%, rgba(139, 92, 246, 0.09) 50%, rgba(236, 72, 153, 0.09) 100%) !important;
    box-shadow: inset 0 0 0 2px rgba(139, 92, 246, 0.35) !important;
    position: relative;
}

.fc .fc-toolbar-title {
    font-size: 1.5rem !important;
    font-weight: 700;
    color: #4c1d95;
    background: -webkit-linear-gradient(left, #e11d48, #db2777);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fc .fc-button-primary {
    background-color: #fff !important;
    border-color: #fbcfe8 !important;
    color: #be185d !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    transition: all 0.2s ease !important;
    border-radius: 0.75rem !important;
    padding: 0.5rem 1rem !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.fc .fc-button-primary:hover {
    background-color: #fdf2f8 !important;
    border-color: #f472b6 !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background-color: #f43f5e !important;
    border-color: #e11d48 !important;
    color: #fff !important;
}

.fc-theme-standard td, .fc-theme-standard th {
    border-color: #fce7f3 !important;
}

.fc-col-header-cell-cushion {
    color: #4b5563 !important;
    font-weight: 600 !important;
    padding: 0.75rem 0 !important;
}

.fc-daygrid-day-number {
    color: #374151 !important;
    font-weight: 500 !important;
    padding: 0.5rem !important;
}

/* Event styling */
.fc-event {
    cursor: pointer;
    border-radius: 0.625rem !important;
    margin: 3px 5px !important;
    padding: 6px 10px !important; /* パディングを増やして余裕を持たせる */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 10px -2px rgba(217, 119, 6, 0.15), 0 2px 4px -1px rgba(217, 119, 6, 0.05) !important;
    
    /* 通常時（非ホバー時）からリッチゴールドを適用 */
    background: linear-gradient(135deg, #ffd700 0%, #f1a80a 50%, #ca8a04 100%) !important;
    border-left: 5px solid #78350f !important; /* 左端の深いブロンズゴールドの太線 */
    border-top: 1px solid #d97706 !important;
    border-right: 1px solid #d97706 !important;
    border-bottom: 1px solid #d97706 !important;
}

.fc-event:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 25px -4px rgba(217, 119, 6, 0.35), 0 8px 12px -6px rgba(217, 119, 6, 0.2) !important;
}

/* 空席ありイベント（安全のために同一のゴールド指定を保証） */
.fc-h-event {
    background: linear-gradient(135deg, #ffd700 0%, #f1a80a 50%, #ca8a04 100%) !important;
    border-left: 5px solid #78350f !important;
    border-top: 1px solid #d97706 !important;
    border-right: 1px solid #d97706 !important;
    border-bottom: 1px solid #d97706 !important;
}

/* セミナー文字の視認性向上 */
.fc-event-main {
    padding: 2px 0;
}

.fc-event-title-container {
    overflow: visible !important;
}

.fc-event-title {
    font-size: 0.95rem !important; /* 文字サイズを大きく */
    font-weight: 700 !important; /* 太字 */
    white-space: normal !important; /* はみ出したタイトルを折り返して全て表示する */
    line-height: 1.4 !important;
    letter-spacing: 0.02em !important;
    color: #0f172a !important; /* 文字色を黒（ディープスレート）に */
}

.fc-event-time {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #475569 !important; /* 濃いめのグレーに */
    margin-bottom: 2px;
}

/* 満席イベント：ゴールドを上書きして薄いグレー背景 ＋ 左端スレートグレー太線 */
.event-full {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    border-left: 5px solid #64748b !important;
    border-top: 1px solid #cbd5e1 !important;
    border-right: 1px solid #cbd5e1 !important;
    border-bottom: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 10px -2px rgba(71, 85, 105, 0.1), 0 2px 4px -1px rgba(71, 85, 105, 0.05) !important;
}
.event-full:hover {
    box-shadow: 0 12px 25px -4px rgba(71, 85, 105, 0.2), 0 8px 12px -6px rgba(71, 85, 105, 0.15) !important;
}
.event-full .fc-event-title {
    color: #475569 !important; /* 満席時は文字色を少し薄い黒に */
}
.event-full .fc-event-time {
    color: #64748b !important;
}

/* Markdown prose rendering */
.prose p {
    margin-bottom: 1rem;
}
.prose strong {
    color: #be185d;
    font-weight: 700;
}
