/* ===========================
   BENETISIA — Home Page
   Light Theme / Black & Gold
   =========================== */

/* ── Hero Banner ── */
.hero-banner {
    position: relative;
    height: 480px;
    display: flex;
    align-items: flex-end;
    margin-top: var(--nav-h);
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #0a0810;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 20% 50%, rgba(40,20,80,0.6) 0%, transparent 70%),
        linear-gradient(to right, rgba(8,6,18,0.9) 0%, rgba(8,6,18,0.4) 60%, transparent 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8,6,18,0.7) 0%, transparent 50%);
}

.hero-text {
    position: relative;
    z-index: 2;
    padding: 0 4rem 3.5rem;
    max-width: 580px;
    margin-left: max(2rem, calc(50vw - 600px + 2rem));
}

.hero-eyebrow {
    font-size: 0.78rem;
    color: var(--gold-lt);
    letter-spacing: 0.06em;
    margin-bottom: 0.8rem;
    opacity: 0.85;
    font-family: var(--f-title);
}

.hero-banner h1 {
    font-family: var(--f-title);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #f5ead8;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-desc {
    font-size: 0.88rem;
    color: rgba(245,234,216,0.6);
    line-height: 1.9;
    margin-bottom: 2rem;
}

.hero-btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    border: 1px solid var(--gold-lt);
    color: var(--gold-lt);
    text-decoration: none;
    font-family: var(--f-title);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    transition: all 0.25s;
    background: rgba(200,168,76,0.1);
}

.hero-btn:hover {
    background: var(--gold-lt);
    color: var(--black);
}

.hero-dots {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(200,168,76,0.25);
    border: 1px solid rgba(200,168,76,0.4);
    cursor: pointer;
    transition: background 0.2s;
}

.dot.active { background: var(--gold-lt); }

/* ── Content Layout ── */
.content-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem 2rem;
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 2rem;
    align-items: start;
}

/* ── Section Block ── */
.section-block { margin-bottom: 2rem; }

.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--black);
}

.block-header h2 {
    font-family: var(--f-title);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: 0.1em;
}

.more-link {
    font-size: 0.76rem;
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--f-title);
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.more-link:hover { color: var(--gold); }

/* ── Article Grid ── */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.article-card {
    display: block;
    text-decoration: none;
    color: var(--text);
    background: var(--bg2);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
}

.article-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.article-thumb {
    height: 110px;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 0.6rem;
}

.article-tag {
    font-family: var(--f-title);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: var(--gold-lt);
    background: rgba(10,8,18,0.7);
    border: 1px solid rgba(200,168,76,0.3);
    padding: 0.18rem 0.45rem;
}

.article-body { padding: 0.9rem 1rem; }

.article-body h3 {
    font-family: var(--f-title);
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 0.4rem;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.article-card:hover .article-body h3 { color: var(--gold); }

.article-body p {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 0.6rem;
}

.article-meta {
    font-size: 0.7rem;
    color: var(--text-dim);
    opacity: 0.6;
}

/* ── Update List ── */
.update-list {
    list-style: none;
    background: var(--bg2);
    border: 1px solid var(--border);
}

.update-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border-dim);
    transition: background 0.15s;
}

.update-list li:last-child { border-bottom: none; }
.update-list li:hover { background: var(--bg3); }

.update-list a {
    flex: 1;
    font-size: 0.84rem;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.update-list a:hover { color: var(--gold); }

.update-time {
    font-size: 0.7rem;
    color: var(--text-dim);
    white-space: nowrap;
    opacity: 0.55;
}

.update-tag {
    font-family: var(--f-title);
    font-size: 0.62rem;
    padding: 0.12rem 0.4rem;
    white-space: nowrap;
    letter-spacing: 0.04em;
}

/* ── Tag Colors (라이트 테마용) ── */
.tag-world   { background: #f0eaf8; color: #6a2a9a; border: 1px solid #d0b8e8; }
.tag-nation  { background: #fdf0e8; color: #b05010; border: 1px solid #e8c0a0; }
.tag-faction { background: #fdf6e0; color: var(--gold); border: 1px solid #e0c870; }
.tag-race    { background: #e8f8ee; color: #1a7a3a; border: 1px solid #a0d8b0; }
.tag-notice  { background: #fdf6e0; color: var(--gold); border: 1px solid #e0c870; }
.tag-event   { background: #f0eaf8; color: #6a2a9a; border: 1px solid #d0b8e8; }
.tag-info    { background: #e8f0f8; color: #1a4a8a; border: 1px solid #a0c0e0; }
.tag-update  { background: #e8f8ee; color: #1a7a3a; border: 1px solid #a0d8b0; }

/* ── Explore Grid ── */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.explore-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1.1rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--ec, var(--gold));
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s;
}

.explore-card:hover { background: var(--bg3); }

.explore-mark {
    font-size: 1.25rem;
    color: var(--ec, var(--gold));
    opacity: 0.65;
    flex-shrink: 0;
}

.explore-name {
    display: block;
    font-family: var(--f-title);
    font-size: 0.83rem;
    color: var(--text);
    letter-spacing: 0.03em;
    margin-bottom: 0.15rem;
    transition: color 0.15s;
}

.explore-card:hover .explore-name { color: var(--ec, var(--gold)); }

.explore-sub {
    display: block;
    font-size: 0.72rem;
    color: var(--text-dim);
}

/* ── Sidebar ── */
.content-sidebar { position: sticky; top: calc(var(--nav-h) + 1rem); }

.sidebar-block {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-top: 3px solid var(--black);
    margin-bottom: 1rem;
    padding: 1.2rem;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-header h3 {
    font-family: var(--f-title);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--black);
    font-weight: 700;
}

/* ── Notice List ── */
.notice-list { list-style: none; }

.notice-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-dim);
    font-size: 0.8rem;
}

.notice-list li:last-child { border-bottom: none; }

.notice-list a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.82rem;
}

.notice-list a:hover { color: var(--gold); }

.notice-date {
    font-size: 0.68rem;
    color: var(--text-dim);
    opacity: 0.55;
    white-space: nowrap;
}

.notice-tag {
    font-family: var(--f-title);
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
    white-space: nowrap;
    letter-spacing: 0.04em;
}

/* ── PC List ── */
.pc-list { list-style: none; }

.pc-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border-dim);
}

.pc-item:last-child { border-bottom: none; }

.pc-rank {
    font-family: var(--f-title);
    font-size: 0.75rem;
    color: var(--text-dim);
    width: 16px;
    text-align: center;
    font-weight: 700;
}

.pc-item:nth-child(1) .pc-rank { color: var(--gold); }
.pc-item:nth-child(2) .pc-rank { color: #888; }
.pc-item:nth-child(3) .pc-rank { color: #a06030; }

.pc-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    flex-shrink: 0;
    color: rgba(255,255,255,0.8);
}

.pc-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }

.pc-name {
    font-size: 0.84rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-origin {
    font-size: 0.7rem;
    color: var(--text-dim);
    opacity: 0.65;
}

/* ── Quick Links ── */
.quicklinks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.ql-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.7rem 0.2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.68rem;
    text-align: center;
    line-height: 1.3;
    transition: all 0.2s;
}

.ql-item:hover {
    background: var(--black);
    color: var(--gold-lt);
    border-color: var(--black);
}

.ql-icon { font-size: 1.1rem; }

/* ── Project Block ── */
.project-block {
    background: var(--black) !important;
    border-color: rgba(200,168,76,0.2) !important;
    border-top-color: var(--gold-lt) !important;
    text-align: center;
    padding: 1.5rem 1.2rem;
}

.project-gear {
    font-size: 2rem;
    color: var(--gold-lt);
    opacity: 0.5;
    margin-bottom: 0.5rem;
    display: block;
    animation: spin 20s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.project-block h3 {
    font-family: var(--f-title);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: var(--gold-lt);
    margin-bottom: 0.5rem;
}

.project-block p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--gold-lt);
    color: var(--gold-lt);
    text-decoration: none;
    font-family: var(--f-title);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    transition: all 0.2s;
}

.project-btn:hover { background: var(--gold-lt); color: var(--black); }

/* ── Responsive ── */
@media (max-width: 960px) {
    .content-layout { grid-template-columns: 1fr; }
    .content-sidebar { position: static; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .hero-text { padding: 0 1.5rem 3rem; margin-left: 0; }
    .article-grid { grid-template-columns: 1fr; }
    .content-layout { padding: 1.5rem 1rem 3rem; }
}
