/* === Reset & Base === */
:root {
    --lsg-max-width: 720px;
    --lsg-content-padding: 1.5rem;
    --lsg-font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    --lsg-border-radius: 12px;
    --lsg-transition: 0.2s ease;
}

* { box-sizing: border-box; }

body {
    font-family: var(--lsg-font-family);
    line-height: 1.8;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}

/* === Layout: Single Column === */
.lsg-container {
    max-width: var(--lsg-max-width);
    margin: 0 auto;
    padding: 0 var(--lsg-content-padding);
}

.lsg-post-content {
    max-width: var(--lsg-max-width);
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.9;
}

.lsg-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--lsg-border-radius);
}

/* === Navigation === */
.lsg-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--lsg-content-padding);
    max-width: 1200px;
    margin: 0 auto;
}

.lsg-nav__logo {
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.lsg-nav__links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lsg-nav__links a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--lsg-transition);
}

/* === Hero Section === */
.lsg-hero {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 var(--lsg-content-padding);
}

.lsg-hero__card {
    border-radius: var(--lsg-border-radius);
    overflow: hidden;
    position: relative;
    display: block;
    text-decoration: none;
}

.lsg-hero__card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.lsg-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

/* === Card Grid (Info) === */
.lsg-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--lsg-content-padding);
}

@media (max-width: 768px) {
    .lsg-card-grid {
        grid-template-columns: 1fr;
    }
}

.lsg-card {
    border-radius: var(--lsg-border-radius);
    overflow: hidden;
    transition: transform var(--lsg-transition), box-shadow var(--lsg-transition);
}

.lsg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.lsg-card a {
    text-decoration: none;
    color: inherit;
}

.lsg-card__thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.lsg-card__body {
    padding: 1rem;
}

.lsg-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.lsg-card__summary {
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lsg-card__meta {
    font-size: 0.8rem;
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* === List Layout (Finance) === */
.lsg-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--lsg-content-padding);
}

.lsg-list__item {
    padding: 1.25rem 0;
    border-bottom: 1px solid;
    transition: background var(--lsg-transition);
}

.lsg-list__item:hover {
    padding-left: 0.5rem;
}

.lsg-list__item a {
    text-decoration: none;
    color: inherit;
}

.lsg-list__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.lsg-list__meta {
    font-size: 0.85rem;
    display: flex;
    gap: 0.75rem;
}

.lsg-list__summary {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* === Filter Chips === */
.lsg-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0;
}

.lsg-chip {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--lsg-transition);
    border: 1px solid;
}

/* === Post Page === */
.lsg-post-header {
    max-width: var(--lsg-max-width);
    margin: 2rem auto;
    padding: 0 var(--lsg-content-padding);
}

.lsg-post-header__title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.75rem;
}

.lsg-post-header__meta {
    font-size: 0.9rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* === Recommendation Section === */
.lsg-recommendations {
    max-width: var(--lsg-max-width);
    margin: 3rem auto;
    padding: 0 var(--lsg-content-padding);
}

.lsg-recommendations__section {
    margin-bottom: 2rem;
}

.lsg-recommendations__heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid;
}

/* === AdSense Slots === */
.lsg-ad-slot {
    max-width: var(--lsg-max-width);
    margin: 2rem auto;
    padding: 1rem;
    text-align: center;
    min-height: 100px;
}

/* === Section Headers (Home) === */
.lsg-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 var(--lsg-content-padding);
}

.lsg-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.lsg-section__title {
    font-size: 1.5rem;
    font-weight: 700;
}

.lsg-section__more {
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}

/* === Front Page Finance Section === */
.lsg-section--finance {
    background: #0F172A;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    padding: 3rem calc(50% - 600px + var(--lsg-content-padding));
    border-radius: 0;
}

.lsg-section--finance .lsg-section__title { color: #E2E8F0; }
.lsg-section--finance .lsg-section__more { color: #D4A843; }
.lsg-section--finance .lsg-list { max-width: 1200px; padding: 0; }
.lsg-section--finance .lsg-list__item { border-color: #334155; }
.lsg-section--finance .lsg-list__item:hover { background: #1E293B; }
.lsg-section--finance .lsg-list__title { color: #E2E8F0; }
.lsg-section--finance .lsg-list__meta { color: #94A3B8; }
.lsg-section--finance .lsg-list__summary { color: #94A3B8; }
.lsg-section--finance .lsg-list__item a { color: inherit; }

@media (max-width: 1248px) {
    .lsg-section--finance {
        padding-left: var(--lsg-content-padding);
        padding-right: var(--lsg-content-padding);
    }
}

/* === Footer === */
.lsg-footer {
    margin-top: 4rem;
    padding: 2rem var(--lsg-content-padding);
    text-align: center;
    font-size: 0.85rem;
}

.lsg-footer a {
    text-decoration: none;
}

/* === Responsive === */
@media (max-width: 768px) {
    .lsg-post-header__title { font-size: 1.5rem; }
    .lsg-hero__card img { height: 250px; }
    .lsg-nav { flex-direction: column; gap: 0.75rem; }
}
