

:root {
    --rg-fairway-light:  #123626;
    --rg-fairway:       #1f5c3f;
    --rg-fairway-light: #3d8a63;
    --rg-gold:          #c9a961;
    --rg-gold-light:    #e8d9ab;
    --rg-cream:         #f7f4ea;
    --rg-ink:           #16241c;
    --rg-sky:           #7fb3c9;
    --rg-shadow:        rgba(18, 54, 38, 0.25);
}


.rg-weather-hero,
.rg-forecast-card,
.rg-weather-tips {
    font-family: 'Georgia', 'Noto Serif KR', serif;
    color: var(--rg-ink);
}


.rg-weather-hero {
    position: relative;
    background:
            radial-gradient(circle at 15% 20%, rgba(255,255,255,0.06) 0%, transparent 45%),
            linear-gradient(135deg, var(--rg-fairway-light) 0%, var(--rg-fairway) 55%, var(--rg-fairway-light) 100%);
    border-radius: 18px;
    padding: 10px;
    color: var(--rg-cream);
    overflow: hidden;
    box-shadow: 0 18px 40px -12px var(--rg-shadow);
    border: 1px solid rgba(201, 169, 97, 0.35);
}


.rg-weather-hero::before {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 60px;
    background: repeating-linear-gradient(
            100deg,
            rgba(255,255,255,0.035) 0px,
            rgba(255,255,255,0.035) 2px,
            transparent 2px,
            transparent 10px
    );
    pointer-events: none;
}


.rg-weather-hero::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(232, 217, 171, 0.28);
    border-radius: 12px;
    pointer-events: none;
}

.rg-weather-hero h3 {
    font-family: 'Playfair Display', 'Georgia', serif;
    letter-spacing: 0.14em;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--rg-gold-light);
    margin-bottom: 18px;
    text-transform: uppercase;
}

.rg-weather-icon {
    font-size: 3.6rem;
    line-height: 1;
    margin-bottom: 4px;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.25));
    animation: rg-float 4s ease-in-out infinite;
}

@keyframes rg-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.rg-weather-temp {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 3.4rem;
    font-weight: 700;
    margin: 4px 0 2px;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.rg-weather-desc {
    font-size: 1.05rem;
    color: var(--rg-gold-light);
    margin-bottom: 10px;
    font-style: italic;
}

.rg-weather-location {
    font-size: 0.9rem;
    color: rgba(247, 244, 234, 0.85);
    margin-bottom: 2px;
}

.rg-weather-updated {
    font-size: 0.78rem;
    color: rgba(247, 244, 234, 0.55);
    font-family: 'Courier New', monospace;
}


.rg-weather-detail {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 10px;
    padding: 14px 6px;
    text-align: center;
    transition: background 0.25s ease, transform 0.25s ease;
}

.rg-weather-detail:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.rg-weather-detail-label {
    font-family: 'Noto Serif KR', serif;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--rg-gold-light);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.rg-weather-detail-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Georgia', serif;
}


.rg-forecast-card {
    border: 1px solid rgba(31, 92, 63, 0.15);
    padding: 10px;
    border-radius: 16px;
    margin-top: 5px;
    box-shadow: 0 10px 30px -18px var(--rg-shadow);
}

.rg-forecast-card h4 {
    font-family: 'Playfair Display', 'Georgia', serif;
    color: var(--rg-fairway-light);
    font-size: 1.5rem;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--rg-gold);
    display: inline-block;
}

.rg-forecast-day {
    text-align: center;
    padding: 16px 8px;
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: default;
}

.rg-forecast-day:hover {
    background: rgba(31, 92, 63, 0.06);
    transform: translateY(-4px);
}

.rg-forecast-day-name {
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--rg-fairway-light);
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.rg-forecast-day-icon {
    font-size: 2.1rem;
    margin: 6px 0;
}

.rg-forecast-day-desc {
    font-size: 0.78rem;
    color: #8a8a7a;
    font-style: italic;
    margin-bottom: 6px;
}

.rg-forecast-day-temp {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #8dff6c;
}

.rg-forecast-day-range {
    font-size: 0.82rem;
    font-family: 'Georgia', serif;
    color: #9a9a8a;
    margin-top: 2px;
}


.rg-weather-tips {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 26px;
    margin-top: 28px;
    border: 1px solid rgba(31, 92, 63, 0.12);
}

.rg-weather-tips h4 {
    font-family: 'Playfair Display', 'Georgia', serif;
    color: var(--rg-fairway-light);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--rg-gold);
    display: inline-block;
}

.rg-tip-card {
    height: 100%;
    background: linear-gradient(180deg, #fbfaf5 0%, #f3f0e6 100%);
    border: 1px solid rgba(201, 169, 97, 0.35);
    border-radius: 12px;
    padding: 22px 16px;
    text-align: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.rg-tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px -14px var(--rg-shadow);
    border-color: var(--rg-gold);
}

.rg-tip-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.rg-tip-title {
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    color: var(--rg-fairway-light);
    font-size: 1rem;
    margin-bottom: 8px;
}

.rg-tip-desc {
    font-size: 0.85rem;
    line-height: 1.55;
    color: #5c5c50;
    margin: 0;
}


.rg-ai-tips-card {
    position: relative;
    background: linear-gradient(135deg, #f7f4ea 0%, #eef2e8 100%);
    border: 1px solid rgba(31, 92, 63, 0.18);
    border-left: 4px solid var(--rg-fairway);
    border-radius: 14px;
    padding: 10px 20px;
    margin-top: 5px;
}

.rg-ai-tips-card h4 {
    font-family: 'Playfair Display', 'Georgia', serif;
    color: var(--rg-fairway-light);
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rg-ai-badge {
    display: inline-block;
    background: var(--rg-fairway-light);
    color: var(--rg-gold-light);
    font-family: 'Georgia', serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--rg-gold);
}

.rg-ai-tips-content {
    font-family: 'Noto Serif KR', 'Georgia', serif;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #33422f;
    margin: 0;
}

.rg-ai-tips-content.rg-ai-loading {
    color: #8a8a7a;
    font-style: italic;
}


@media (max-width: 767px) {
    .rg-weather-hero { padding: 32px 22px; text-align: center; }
    .rg-weather-hero .row.align-items-center > div { text-align: center ; }
    .rg-weather-temp { font-size: 2.6rem; }
    .rg-weather-icon { font-size: 2.8rem; }
    .rg-forecast-card, .rg-weather-tips { padding: 22px 16px; }
}


@media (prefers-reduced-motion: reduce) {
    .rg-weather-icon { animation: none; }
    .rg-forecast-item, .rg-tip-card, .rg-weather-detail { transition: none; }
}




.rg-weather-main {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
}

@media (min-width: 768px) {
    .rg-weather-main {
        justify-content: flex-start;
    }


}

.rg-weather-main .rg-weather-icon {
    flex: 0 0 auto;
    line-height: 1;
}

.rg-weather-info {
    text-align: left;
}

.rg-weather-info .rg-weather-temp {
    margin: 0 0 2px;
}

.rg-weather-info .rg-weather-desc {
    margin-bottom: 4px;
}

.rg-weather-detail {
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    height: 100%;
}

.rg-weather-detail-label {
    font-size: 12px;
    color: #a8acf7;
    margin-bottom: 5px;
}

.rg-weather-detail-value {
    font-size: 20px;
    font-weight: 700;
    color: #33355b;
}

.rg-forecast-card {
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2px 0 0 28px;
}

.rg-forecast-day-name {
    font-size: 14px;
    font-weight: 600;
    color: #7e83da;
    text-align: center;
}

.rg-forecast-day-icon {
    font-size: 32px;
    text-align: center;
    margin: 8px 0;
}

.rg-forecast-day-desc {
    font-size: 12px;
    color: #888;
    text-align: center;
}

.rg-forecast-day-temp {
    font-size: 18px;
    font-weight: 700;
    color: #33355b;
    text-align: center;
}

.rg-forecast-day-range {
    font-size: 12px;
    color: #aaa;
    text-align: center;
}


#rg-forecast-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    margin: 0;
}

#rg-forecast-row > .col,
#rg-forecast-row > .rg-forecast-day {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 4px;
}

#rg-forecast-row .rg-forecast-day-name {
    font-size: 16px;
    margin-bottom: 2px;
}

#rg-forecast-row .rg-forecast-day-icon {
    font-size: 24px;
    margin: 4px 0;
}

#rg-forecast-row .rg-forecast-day-desc {
    font-size: 14px;
    margin-bottom: 4px;
}

#rg-forecast-row .rg-forecast-day-temp {
    font-size: 15px;
}

#rg-forecast-row .rg-forecast-day-range {
    font-size: 11px;
}

@media (max-width: 480px) {
    #rg-forecast-row .rg-forecast-day-icon {
        font-size: 20px;
    }

    #rg-forecast-row .rg-forecast-day-temp {
        font-size: 13px;
    }

    #rg-forecast-row .rg-forecast-day-name {
        font-size: 11px;
    }
}

.rg-weather-compact {
    width: 100%;
    max-width: 530px;
    aspect-ratio: 530 / 765;
    margin: 0 auto;
    padding: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.rg-weather-compact .rg-weather-hero {
    padding: 20px 18px;
    border-radius: 12px;
}

.rg-weather-compact .rg-weather-hero h3 {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.rg-weather-compact .rg-weather-icon {
    font-size: 2.1rem;
}

.rg-weather-compact .rg-weather-temp {
    font-size: 2rem;
    margin: 2px 0;
}

.rg-weather-compact .rg-weather-desc {
    font-size: 0.82rem;
    margin-bottom: 4px;
}

.rg-weather-compact .rg-weather-location,
.rg-weather-compact .rg-weather-updated {
    font-size: 0.68rem;
}

.rg-weather-compact .rg-weather-detail {
    padding: 8px 3px;
    border-radius: 8px;
}

.rg-weather-compact .rg-weather-detail-label {
    font-size: 0.58rem;
}

.rg-weather-compact .rg-weather-detail-value {
    font-size: 0.85rem;
}

.rg-weather-compact .rg-forecast-card,
.rg-weather-compact .rg-ai-tips-card,
.rg-weather-compact .rg-weather-tips {
    padding: 14px 14px;
    margin-top: 14px;
    border-radius: 12px;
}

.rg-weather-compact .rg-forecast-card h4,
.rg-weather-compact .rg-ai-tips-card h4,
.rg-weather-compact .rg-weather-tips h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding-bottom: 6px;
}

.rg-weather-compact .rg-forecast-day-name { font-size: 0.65rem; margin-bottom: 4px; }
.rg-weather-compact .rg-forecast-day-icon { font-size: 1.3rem; margin: 2px 0; }
.rg-weather-compact .rg-forecast-day-desc { font-size: 0.6rem; margin-bottom: 2px; }
.rg-weather-compact .rg-forecast-day-temp { font-size: 0.85rem; }
.rg-weather-compact .rg-forecast-day-range { font-size: 0.6rem; }

.rg-weather-compact .rg-ai-tips-content {
    font-size: 0.78rem;
    line-height: 1.55;
}

.rg-weather-compact .rg-ai-badge {
    font-size: 0.6rem;
    padding: 2px 7px;
}

.rg-weather-compact .rg-tip-card {
    padding: 12px 8px;
}

.rg-weather-compact .rg-tip-icon { font-size: 1.4rem; margin-bottom: 4px; }
.rg-weather-compact .rg-tip-title { font-size: 0.78rem; margin-bottom: 4px; }
.rg-weather-compact .rg-tip-desc { font-size: 0.68rem; line-height: 1.4; }

.rg-weather-compact .hm_cover-company {
    font-size: 0.6rem;
    color: #8a8a7a;
    margin-top: 14px;
    text-align: center;
    line-height: 1.5;
}
