/* ============================================================
   Saint Calendar Styles: "Sacred Manuscript" Theme
   ============================================================ */

/* 폰트 임포트 (클래식한 느낌을 위해) */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Noto+Sans+KR:wght@400;500&display=swap');

/* --- 전체 달력 컨테이너 --- */
#saint-calendar-container .fc { /* FullCalendar 컨테이너 */
    background-color: #FDFBF5; /* 양피지 배경 */
    border: 2px solid #6B4F4B; /* 진한 갈색 테두리 */
    border-radius: 8px;
    padding: 15px;
    font-family: 'Noto Sans KR', sans-serif; /* 기본 폰트 */
}

/* --- 달력 상단 컨트롤 (오늘의 성인, 검색창) --- */
#saint-calendar-container .calendar-top-controls {
    display: flex;
    justify-content: space-between; /* 양쪽 끝으로 정렬 */
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap; /* 반응형을 위해 줄바꿈 허용 */
    gap: 10px; /* 요소 간 간격 */
}

#saint-calendar-container .today-saints-info {
    flex-grow: 1; /* 공간이 남으면 최대한 확장 */
    font-size: 0.95em;
    color: #5D4037;
}

#saint-calendar-container .saint-search-wrap {
    flex-shrink: 0; /* 공간이 부족해도 줄어들지 않음 */
    width: 250px; /* 검색창 너비 고정 */
}

/* --- 헤더 툴바 (월/년, 버튼) --- */
#saint-calendar-container .fc .fc-toolbar-title {
    font-family: 'Merriweather', serif; /* 월/년 표시를 위한 세리프 폰트 */
    color: #5D4037; /* 헤더 텍스트 색상 */
    font-size: 1.9em;
}

#saint-calendar-container .fc .fc-button {
    background: transparent;
    border: 1px solid #8A6F5E; /* 버튼 테두리 */
    color: #6B4F4B; /* 버튼 텍스트/아이콘 색상 */
    box-shadow: none;
    text-transform: none; /* 버튼 텍스트 대문자화 방지 */
    transition: all 0.3s ease;
}

#saint-calendar-container .fc .fc-button-primary:hover {
    background-color: #EADDC6; /* 부드러운 금색 호버 */
    border-color: #D4AF37;
    color: #5D4037;
}

#saint-calendar-container .fc .fc-button-primary:focus {
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.5); /* 포커스 시 금색 그림자 */
}

/* --- 요일 헤더 (일, 월, 화...) --- */
#saint-calendar-container .fc .fc-col-header-cell-cushion {
    color: #8A6F5E; /* 옅은 갈색 */
    font-weight: 500;
    font-size: 0.9em;
    padding: 10px 0;
}

/* --- 날짜 칸 --- */
#saint-calendar-container .fc .fc-daygrid-day-frame {
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

#saint-calendar-container .fc .fc-daygrid-day:hover .fc-daygrid-day-frame {
    background-color: rgba(234, 221, 198, 0.2); /* 날짜 칸 호버 시 은은한 배경색 */
}

/* 오늘 날짜 하이라이트 */
#saint-calendar-container .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-frame {
    background-color: rgba(234, 221, 198, 0.4); /* 옅은 베이지 배경 */
    border-top: 3px solid #D4AF37; /* 상단에 금색 라인 */
}

/* 다른 달의 날짜 */
#saint-calendar-container .fc .fc-day-other .fc-daygrid-day-top {
    opacity: 0.4; /* 흐릿하게 처리 */
}

/* --- 이벤트 (성인 축일) --- */
#saint-calendar-container .fc .fc-daygrid-event {
    background-color: rgba(255, 255, 255, 0.7); /* 더 밝은 배경 */
    border: 1px solid #D4C5A5;
    color: #6B4F4B; /* 진한 갈색 텍스트 유지 */
    font-weight: 500;
    padding: 3px 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin: 1px 4px;
}

#saint-calendar-container .fc .fc-daygrid-event .fc-event-title {
    color: #6B4F4B; /* 이벤트 제목 텍스트 색상 명시 */
}

#saint-calendar-container .fc .fc-daygrid-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 79, 75, 0.3); /* 갈색 그림자 */
    background-color: #D4AF37; /* 호버 시 더 진한 금색 */
    color: #fff;
}

/* --- 검색 및 정보 섹션 --- */
.saint-search-wrap,
.today-saints-info,
.saints-by-date-section {
    font-family: 'Noto Sans KR', sans-serif;
    color: #5D4037;
    margin-bottom: 20px;
}

.saint-search-input {
    border: 1px solid #D4C5A5;
    border-radius: 6px;
    padding: 12px;
    font-size: 1em;
    background-color: #FDFBF5;
    color: #6B4F4B;
}

.saint-search-input:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
    outline: none;
}

.today-saints-list a,
.saints-by-date li a {
    color: #8A6F5E;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.today-saints-list a:hover,
.saints-by-date li a:hover {
    color: #D4AF37; /* 호버 시 금색 */
    text-decoration: underline;
}