@charset "utf-8";

/* ==========================================================================
   Memory Theme Design System - 증산도 안경전 종도사님 추모관
   ========================================================================== */

:root {
    --bg-light: #f7f6f2;
    --bg-card: #ffffff;
    --bg-subtle: #f0eee8;
    --accent-gold: #ab8538;
    --accent-gold-light: #cfa856;
    --accent-gold-dark: #846221;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #79818a;
    --border-color: rgba(171, 133, 56, 0.28);
    --border-light: #e6e3da;
    --max-width: 1140px;
    --font-serif: 'Noto Serif KR', serif;
    --font-sans: 'Noto Sans KR', sans-serif;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body,
body.thema-memory,
input,
button,
select,
textarea,
table,
th,
td,
p,
div,
a,
span {
    font-family: 'Noto Sans KR', sans-serif !important;
}

body.thema-memory {
    background-color: var(--bg-light) !important;
    color: var(--text-primary);
    font-family: 'Noto Sans KR', sans-serif !important;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(207, 168, 86, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 90% 20%, rgba(240, 238, 232, 0.8) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Header & Banner Styles */
.top-header-banner {
    background: linear-gradient(90deg, #3a3227 0%, #4a4032 50%, #3a3227 100%);
    border-bottom: 1px solid var(--accent-gold);
    padding: 10px 0;
    font-size: 13.5px;
    color: #f7f3e8;
    text-align: center;
    letter-spacing: 0.5px;
}

.top-header-banner i {
    margin-right: 8px;
    color: var(--accent-gold-light);
}

.memory-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-symbol {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: var(--font-serif);
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(171, 133, 56, 0.25);
}

.logo-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.logo-sub {
    font-size: 11px;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
    position: relative;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-gold-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.stb-sso-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ab8538 0%, #846221 100%);
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 16px 8px !important;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(171, 133, 56, 0.25);
    transition: all 0.25s ease;
    text-decoration: none;
}

.stb-sso-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(171, 133, 56, 0.35);
    color: #ffffff !important;
}

.stb-sso-btn img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

/* Subpage & Layout Cards */
.memory-content-wrap {
    max-width: var(--max-width);
    margin: 40px auto 60px;
    padding: 0 20px;
}

.memory-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.section-header .sub {
    font-size: 15px;
    color: var(--accent-gold);
    font-weight: 500;
}

.golden-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    margin: 15px auto;
}

/* Footer */
.memory-footer {
    background-color: #2b2721;
    color: #a39c90;
    padding: 50px 0 30px;
    border-top: 2px solid var(--accent-gold);
    font-size: 14px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 20px;
    color: #e5dfd3;
    margin-bottom: 15px;
}

.footer-notice {
    max-width: 650px;
    margin: 0 auto 25px;
    line-height: 1.6;
    font-size: 13px;
}

/* ==========================================================================
   Board & APMS Skin Integration Styling
   ========================================================================== */
.thema-memory #bo_list,
.thema-memory #bo_v,
.thema-memory #bo_w,
.thema-memory .at-body {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.thema-memory .btn-navy,
.thema-memory .btn-primary,
.thema-memory .btn-black {
    background-color: var(--accent-gold) !important;
    border-color: var(--accent-gold-dark) !important;
    color: #ffffff !important;
    border-radius: 4px;
}

.thema-memory .btn-navy:hover,
.thema-memory .btn-primary:hover,
.thema-memory .btn-black:hover {
    background-color: var(--accent-gold-dark) !important;
    color: #ffffff !important;
}

.thema-memory .pagination>.active>a,
.thema-memory .pagination>.active>span {
    background-color: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
}

.thema-memory table.table {
    border-color: var(--border-light);
}

.thema-memory table.table th {
    background-color: var(--bg-subtle);
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

/* Write Form & Editor Styling */
.thema-memory #bo_w,
.thema-memory #write-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 35px;
    box-shadow: var(--shadow-soft);
}

.thema-memory .form-control {
    border-color: var(--border-light);
    border-radius: 6px;
}

.thema-memory .form-control:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.2rem rgba(171, 133, 56, 0.25);
}

.thema-memory .btn-color,
.thema-memory button[type="submit"].btn {
    background-color: var(--accent-gold) !important;
    border-color: var(--accent-gold-dark) !important;
    color: #ffffff !important;
}

.thema-memory .btn-color:hover,
.thema-memory button[type="submit"].btn:hover {
    background-color: var(--accent-gold-dark) !important;
    color: #ffffff !important;
}