/**
 * Lunar Leap Month Calculator Styles
 * 평달 윤달 계산기 전용 스타일
 *
 * @package Zipper
 */

.llmc-main-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 20px;
    align-items: start;
}

.llmc-input-col {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.llmc-result-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.llmc-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
}

.llmc-mode-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #5f5a56;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.llmc-mode-tab:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #b8860b;
}

.llmc-mode-tab.active {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

.llmc-range-card,
.llmc-section,
.llmc-actions-card,
.llmc-main-result,
.llmc-detail-card,
.llmc-result-guide,
.llmc-disclaimer {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.llmc-range-card,
.llmc-result-guide,
.llmc-disclaimer,
.llmc-actions-card,
.llmc-main-result,
.llmc-detail-card,
.llmc-section {
    padding: 16px;
}

.llmc-section,
.llmc-detail-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.llmc-range-title,
.llmc-section-title,
.llmc-card-title,
.llmc-result-guide-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
}

.llmc-range-title i,
.llmc-section-title i,
.llmc-card-title i,
.llmc-result-guide-title i,
.llmc-disclaimer i {
    color: #d4af37;
}

.llmc-range-card p,
.llmc-result-guide p,
.llmc-section-desc,
.llmc-card-desc,
.llmc-overview-toolbar p,
.llmc-disclaimer span {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #5f5a56;
}

.llmc-section-desc,
.llmc-overview-toolbar .llmc-card-desc {
    margin-top: 0;
}

.llmc-mode-panel {
    display: none;
    flex-direction: column;
    gap: 14px;
}

.llmc-mode-panel.active {
    display: flex;
}

.llmc-input-row {
    display: grid;
    gap: 12px;
}

.llmc-input-row-2 {
    grid-template-columns: 1fr 1fr;
}

.llmc-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.llmc-input-label {
    font-size: 12px;
    font-weight: 700;
    color: #5f5a56;
}

.llmc-date-input,
.llmc-select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #2d2a26;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.llmc-date-input:hover,
.llmc-select:hover {
    border-color: #d4c67a;
}

.llmc-date-input:focus,
.llmc-select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: #fff;
}

.llmc-inline-note,
.llmc-validation-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.6;
}

.llmc-inline-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(212, 175, 55, 0.08);
    color: #6a624d;
}

.llmc-inline-note i {
    margin-top: 1px;
}

.llmc-validation-note {
    background: #faf9f7;
    border: 1px solid #efeae2;
    color: #6b655e;
}

.llmc-check-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 11px 12px;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    background: #faf9f7;
    cursor: pointer;
}

.llmc-check-card input {
    margin-top: 3px;
}

.llmc-check-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.llmc-check-content strong {
    font-size: 13px;
    color: #2d2a26;
}

.llmc-check-content small {
    font-size: 12px;
    line-height: 1.5;
    color: #7a746f;
}

.llmc-main-result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.llmc-mode-badge,
.llmc-summary-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.14);
    color: #9f7717;
    font-size: 12px;
    font-weight: 700;
}

.llmc-main-result-title {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #2d2a26;
    line-height: 1.5;
}

.llmc-summary-hero {
    padding: 14px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(184, 134, 11, 0.08) 100%);
}

.llmc-summary-input {
    margin-top: 8px;
    font-size: 20px;
    font-weight: 800;
    color: #2d2a26;
    line-height: 1.4;
}

.llmc-summary-message {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #5f5a56;
}

.llmc-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.llmc-summary-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 120px;
    padding: 14px;
    border: 1px solid #ece7de;
    border-radius: 12px;
    background: #faf9f7;
}

.llmc-summary-card.highlight {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.14) 0%, rgba(184, 134, 11, 0.08) 100%);
    border-color: rgba(212, 175, 55, 0.35);
}

.llmc-summary-label {
    font-size: 12px;
    font-weight: 700;
    color: #8b847e;
}

.llmc-summary-value {
    font-size: 22px;
    font-weight: 800;
    color: #2d2a26;
    line-height: 1.35;
    word-break: keep-all;
}

.llmc-summary-sub {
    font-size: 12px;
    line-height: 1.6;
    color: #6d665f;
}

.llmc-result-dual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.llmc-result-dual > * {
    min-width: 0;
}

.llmc-info-table {
    width: 100%;
    margin-top: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.llmc-info-table th,
.llmc-info-table td {
    padding: 11px 0;
    border-bottom: 1px solid #efeae2;
    font-size: 13px;
    vertical-align: top;
}

.llmc-info-table tr:last-child th,
.llmc-info-table tr:last-child td {
    border-bottom: none;
}

.llmc-info-table th {
    width: 108px;
    padding-right: 12px;
    text-align: left;
    color: #7a746f;
    font-weight: 700;
}

.llmc-info-table td {
    color: #2d2a26;
    line-height: 1.6;
    word-break: keep-all;
}

.llmc-overview-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
    margin-top: 0;
}

.llmc-overview-toolbar > :first-child {
    min-width: 0;
}

.llmc-overview-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #2d2a26;
}

.llmc-overview-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.llmc-overview-select {
    flex: 0 0 132px;
    width: 132px;
    min-width: 132px;
    padding: 9px 11px;
    font-size: 14px;
}

.llmc-overview-controls .tool-btn {
    flex: 0 0 auto;
    width: auto;
    padding: 9px 12px;
    font-size: 13px;
    white-space: nowrap;
}

.llmc-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 0;
    border: 1px solid #efeae2;
    border-radius: 9px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.llmc-year-table {
    width: 100%;
    min-width: 430px;
    border-collapse: collapse;
    table-layout: fixed;
}

.llmc-year-table thead th {
    background: #faf9f7;
    color: #5f5a56;
    font-size: 11px;
    font-weight: 700;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e8e4dc;
}

.llmc-year-table tbody td {
    padding: 10px 12px;
    font-size: 12px;
    color: #2d2a26;
    border-bottom: 1px solid #f1ece5;
}

.llmc-year-table tbody tr:last-child td {
    border-bottom: none;
}

.llmc-year-table tbody tr:nth-child(even) {
    background: #fcfbf9;
}

.llmc-year-table tbody tr.is-highlight {
    background: rgba(212, 175, 55, 0.12);
}

.llmc-empty-row td {
    text-align: center;
    color: #7a746f;
    line-height: 1.7;
    padding: 16px 14px;
}

.llmc-disclaimer {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.6;
}

.llmc-disclaimer i {
    flex: 0 0 auto;
    line-height: 1;
}

.llmc-disclaimer span {
    flex: 1;
    margin: 0;
}

@media (max-width: 1024px) {
    .llmc-main-layout {
        grid-template-columns: 320px 1fr;
    }
}

@media (max-width: 768px) {
    .llmc-main-layout {
        grid-template-columns: 1fr;
    }

    .llmc-input-col {
        position: static;
    }

    .llmc-tabs {
        flex-direction: column;
    }

    .llmc-input-row-2,
    .llmc-summary-grid,
    .llmc-result-dual,
    .llmc-overview-controls {
        grid-template-columns: 1fr;
    }

    .llmc-main-result-header,
    .llmc-overview-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .llmc-overview-controls {
        width: 100%;
    }

    .llmc-overview-select,
    .llmc-overview-controls .tool-btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .llmc-range-card,
    .llmc-section,
    .llmc-actions-card,
    .llmc-main-result,
    .llmc-detail-card,
    .llmc-result-guide,
    .llmc-disclaimer {
        padding: 14px;
    }

    .llmc-summary-card {
        min-height: 0;
    }

    .llmc-main-result-title {
        font-size: 16px;
    }

    .llmc-summary-value,
    .llmc-summary-input {
        font-size: 18px;
    }
}

.llmc-result-summary { display: flex; flex-direction: column; gap: 16px; }
.llmc-result-dual > .llmc-table-card {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-self: stretch;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}
