@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

.fcst-info-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', sans-serif;
}
.fcst-info-container {
    color: #212529;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    margin: 20px auto;
    border-radius: 8px;
}
/* Header */
.fcst-info-header {
    padding: 0px 0px 24px;
    border-bottom: 1px solid #e9ecef;
}
.fcst-info-header h1 {
    font-size: 26px;
    font-weight: 800;
}
.fcst-info-header-description {
    margin-top: 8px;
    font-size: 15px;
    color: #495057;
}
/* Main Content Area */
.fcst-info-main-content {
    padding: 30px 0px 30px;
}
.fcst-info-input-section h3,
.fcst-info-result-section h3,
.fcst-info-reference-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
/* Input Area */
.fcst-info-input-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 12px;
}
.fcst-info-input-group {
    display: flex;
    flex-direction: column;
}
.fcst-info-input-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #495057;
}
.fcst-info-input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 40px;
}
.fcst-info-input-group select:focus {
    outline: none;
    border-color: #4c6ef5;
    box-shadow: 0 0 0 2px rgba(76, 110, 245, 0.2);
}
.fcst-info-input-group select:disabled {
    background-color: #f1f3f5;
    color: #868e96;
    cursor: not-allowed;
}
.fcst-info-error-message {
    color: #fa5252;
    font-size: 14px;
    margin-top: 8px;
    height: 1.2em;
}
/* Divider */
.fcst-info-divider {
    border: 0;
    height: 1px;
    background-color: #e9ecef;
    margin: 32px 0;
}
/* Result Area */
.fcst-info-result-section {
    display: none;
}
/* Loader */
.fcst-info-loader {
    display: none;
    margin: 40px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4c6ef5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: fcst-info-spin 1s linear infinite;
}
@keyframes fcst-info-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Reference Section */
.fcst-info-reference-section ul {
    list-style: none;
    padding-left: 0;
}
.fcst-info-reference-section li {
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
}

/* Weather UI Styles */
.weather-info-wrapper {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
}
.weather-hourly-title,
.weather-vilage-hourly-title,
.weather-current-title,
.weather-daily-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Current Weather */
.weather-current {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}
.weather-current-icon {
    font-size: 64px;
}
.weather-current-details {
    flex-grow: 1;
}
.weather-current-temp {
    font-size: 48px;
    font-weight: 700;
}
.weather-current-temp sup {
    font-size: 24px;
    top: -15px;
}
.weather-current-desc {
    font-size: 18px;
    font-weight: 500;
    color: #495057;
    margin-top: 4px;
}
.weather-current-extra {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #495057;
}

/* Hourly Forecast (Today) */
.weather-hourly {
    padding: 20px 0;
    border-bottom: 1px solid #dee2e6;
}
.weather-hourly-list {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: center;
}
.weather-hourly-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 15%;
}
.weather-hourly-item .time {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}
.weather-hourly-item .icon {
    font-size: 28px;
    height: 32px;
    line-height: 32px;
}
.weather-hourly-item .temp {
    font-size: 16px;
    font-weight: 700;
}
.weather-hourly-item .precipitation,
.weather-hourly-item .wind,
.weather-hourly-item .lightning {
    font-size: 12px;
    color: #495057;
    min-height: 1.2em;
    line-height: 1.2em;
    word-break: keep-all;
}
.weather-hourly-item .wind {
    font-weight: 500;
}
.weather-hourly-item .lightning {
    color: #f76707;
    font-weight: 600;
}

/* Hourly Forecast Table (Tomorrow) */
.weather-vilage-hourly {
    padding: 20px 0;
    border-bottom: 1px solid #dee2e6;
    overflow-x: auto;
}
.weather-vilage-hourly-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.weather-vilage-hourly-table thead {
    background-color: #f1f3f5;
}
.weather-vilage-hourly-table th,
.weather-vilage-hourly-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}
.weather-vilage-hourly-table th {
    font-weight: 600;
    color: #495057;
}
/* 마지막 행은 보더 제거(내일 시간별 예보)
.weather-vilage-hourly-table tbody tr:last-child td {
    border-bottom: none;
}
*/
.weather-vilage-hourly-table td:nth-child(2) { /* Weather Icon */
    font-size: 20px;
}


/* Daily / Weekly Forecast */
.weather-daily {
    padding-top: 20px;
}
.weather-daily-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.weather-daily-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.weather-daily-item .day {
    font-weight: 600;
    flex-basis: 30%;
}
.weather-daily-item .icon {
    font-size: 24px;
    flex-basis: 30%;
    text-align: center;
}
.weather-daily-item .temps {
    font-weight: 500;
    flex-basis: 30%;
    text-align: right;
}
.weather-daily-item .temps .max {
    font-weight: 700;
}
.weather-daily-item .temps .min {
    color: #868e96;
}

/* Notices / Alerts */
.fcst-info-alert {
    background: #fff4e6;
    border: 1px solid #ffd8a8;
    color: #995c00;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 12px 0 16px;
    font-size: 14px;
    line-height: 1.5;
}
.fcst-info-alert-item + .fcst-info-alert-item {
    margin-top: 6px;
}

/* 공통 버튼 스타일 */
.fcst-info-btn {
    padding: 14px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 버튼 컨테이너 */
.fcst-info-action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

/* 조회 버튼 */
.fcst-info-btn-query {
    background-color: #4c6ef5;
    color: #ffffff;
    flex: 2;
}
.fcst-info-btn-query:hover {
    background-color: #364fc7;
}
.fcst-info-btn-query:disabled {
    background-color: #ced4da;
    color: #868e96;
    cursor: not-allowed;
}

/* 초기화 버튼 스타일 */
.fcst-info-btn-reset {
    background-color: #f1f3f5;
    color: #495057;
    flex: 1;
}
.fcst-info-btn-reset:hover {
    background-color: #e9ecef;
}

.weather-weekly-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.weather-weekly-table thead {
    background-color: #f1f3f5;
}
.weather-weekly-table th,
.weather-weekly-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}
.weather-weekly-table td.wday {
    text-align: center;
/*    font-weight: 600; 글자 볼드 처리*/
}
.weather-weekly-table td.am .icon,
.weather-weekly-table td.pm .icon {
    font-size: 20px;
    display: inline-block;
    margin-right: 6px;
}
.weather-weekly-table td.am .txt,
.weather-weekly-table td.pm .txt {
    font-weight: 500;
    color: #495057;
}
.weather-weekly-table td.tmmx strong {
    font-weight: 700;
}
.weather-weekly-table td.am-pop,
.weather-weekly-table td.pm-pop {
  min-width: 90px;
}
.weather-vilage-hourly-table td.wx { 
    font-size: 14px;        /* 글자는 표 기본 크기 유지 */
}
.weather-vilage-hourly-table td.wx .icon {
    font-size: 20px;        /* 아이콘만 크게 */
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}
.weather-vilage-hourly-table td.wx .txt {
    font-weight: 500;
    color: #495057;
    vertical-align: middle;
}
.weather-weekly-table td.wx-pair .icon {
  font-size: 20px;           /* 기존 주간표 아이콘 크기 */
  display: inline-block;
  margin: 0 4px 0 0;
  vertical-align: middle;
}
.weather-weekly-table td.wx-pair .txt {
  /* 폰트 크기 지정 안 함 → 표 기본(14px) 유지 */
  font-weight: 500;
  color: #495057;
  vertical-align: middle;
}
.weather-weekly-table td.wx-pair .sep {
  margin: 0 6px;
  color: #adb5bd;
}
.weather-current-date{
  margin-top: 2px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #868e96;
}
.weather-current-base {
  margin-top: 2px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #868e96;
}
