/*
Theme Name: Editorial Luxury - Gold Coin
Theme URI: https://goldcoin.velagold.kr
Description: 에디토리얼 럭셔리 디자인 - 한국 공식 금 거래소 전용 테마
Author: VELA GOLD
Version: 1.0.0
Template: twentytwentyfive
Text Domain: editorial-luxury
*/

/* ============================================
   EDITORIAL LUXURY DESIGN SYSTEM
   Gold Trading Premium Theme
   ============================================ */

:root {
  --el-gold: #DAA520;
  --el-gold-dark: #B8860B;
  --el-gold-light: #F5DEB3;
  --el-gold-pale: #FFF8DC;
  --el-black: #0d0d0d;
  --el-dark: #1a1a1a;
  --el-dark-gray: #2a2a2a;
  --el-gray: #888888;
  --el-light-gray: #c0c0c0;
  --el-white: #f5f5f0;
  --el-cream: #faf9f6;
  --el-font-display: 'Noto Serif KR', Georgia, 'Times New Roman', serif;
  --el-font-body: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --el-font-accent: 'Playfair Display', Georgia, serif;
  --el-max-width: 1200px;
  --el-radius: 2px;
  --el-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --el-shadow-gold: 0 4px 30px rgba(218, 165, 32, 0.15);
  --el-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === GLOBAL RESET & BASE === */
* { box-sizing: border-box; }

body {
  font-family: var(--el-font-body) !important;
  background-color: var(--el-cream) !important;
  color: #333 !important;
  line-height: 1.8 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--el-font-display) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--el-black) !important;
}

/* === HEADER / NAVIGATION === */
.wp-site-header,
header.wp-block-template-part {
  background: var(--el-dark) !important;
  border-bottom: 2px solid var(--el-gold) !important;
  padding: 0 !important;
}

.wp-block-site-title a,
.wp-block-site-title {
  color: var(--el-gold) !important;
  font-family: var(--el-font-accent) !important;
  text-decoration: none !important;
  font-size: 1.5rem !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
}

.wp-block-navigation a {
  color: var(--el-white) !important;
  font-family: var(--el-font-body) !important;
  font-size: 0.9rem !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  transition: var(--el-transition) !important;
}

.wp-block-navigation a:hover {
  color: var(--el-gold) !important;
}

/* === HERO SECTION === */
.el-hero {
  position: relative;
  background: linear-gradient(135deg, var(--el-black) 0%, var(--el-dark) 50%, #1a1510 100%);
  padding: 100px 20px 80px;
  text-align: center;
  overflow: hidden;
}

.el-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, rgba(218,165,32,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.el-hero h1 {
  font-family: var(--el-font-display) !important;
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  color: var(--el-gold) !important;
  margin-bottom: 20px !important;
  letter-spacing: 3px;
  position: relative;
}

.el-hero .el-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--el-light-gray);
  font-family: var(--el-font-body);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.el-hero .el-divider {
  width: 80px;
  height: 2px;
  background: var(--el-gold);
  margin: 30px auto;
}

/* === SECTION LAYOUT === */
.el-section {
  max-width: var(--el-max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

.el-section-dark {
  background: var(--el-dark);
  color: var(--el-white);
  padding: 80px 24px;
}

.el-section-dark h2,
.el-section-dark h3 {
  color: var(--el-gold) !important;
}

.el-section-dark p {
  color: var(--el-light-gray);
}

.el-section-title {
  text-align: center;
  margin-bottom: 60px;
}

.el-section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
  color: var(--el-black) !important;
  margin-bottom: 15px !important;
  letter-spacing: 2px;
}

.el-section-title .el-line {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--el-gold);
  margin: 15px auto 0;
}

/* === CARD GRID === */
.el-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: var(--el-max-width);
  margin: 0 auto;
}

.el-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--el-radius);
  overflow: hidden;
  transition: var(--el-transition);
  box-shadow: var(--el-shadow);
}

.el-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--el-shadow-gold);
  border-color: var(--el-gold-light);
}

.el-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: var(--el-transition);
}

.el-card:hover img {
  transform: scale(1.03);
}

.el-card-body {
  padding: 28px;
}

.el-card-body h3 {
  font-size: 1.15rem !important;
  margin-bottom: 12px !important;
  letter-spacing: 0.5px;
}

.el-card-body p {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.7;
}

/* === IMAGE GALLERY === */
.el-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  max-width: var(--el-max-width);
  margin: 0 auto;
}

.el-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--el-radius);
  aspect-ratio: 4/3;
}

.el-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--el-transition);
}

.el-gallery-item:hover img {
  transform: scale(1.05);
}

/* === INFO BOX / FEATURES === */
.el-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: var(--el-max-width);
  margin: 0 auto;
}

.el-feature {
  text-align: center;
  padding: 40px 24px;
}

.el-feature-icon {
  font-size: 2.5rem;
  color: var(--el-gold);
  margin-bottom: 20px;
  display: block;
}

.el-feature h3 {
  font-size: 1.1rem !important;
  margin-bottom: 12px !important;
  letter-spacing: 1px;
}

.el-feature p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
}

/* === CTA SECTION === */
.el-cta {
  background: linear-gradient(135deg, var(--el-dark) 0%, #1a1510 100%);
  text-align: center;
  padding: 80px 24px;
  position: relative;
}

.el-cta h2 {
  color: var(--el-gold) !important;
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  margin-bottom: 20px !important;
}

.el-cta p {
  color: var(--el-light-gray);
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.el-btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--el-gold);
  color: var(--el-black) !important;
  font-family: var(--el-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--el-gold);
  transition: var(--el-transition);
  cursor: pointer;
}

.el-btn:hover {
  background: transparent;
  color: var(--el-gold) !important;
}

.el-btn-outline {
  background: transparent;
  color: var(--el-gold) !important;
}

.el-btn-outline:hover {
  background: var(--el-gold);
  color: var(--el-black) !important;
}

/* === FAQ SECTION === */
.el-faq {
  max-width: 800px;
  margin: 0 auto;
}

.el-faq-item {
  border-bottom: 1px solid #e5e5e5;
  padding: 24px 0;
}

.el-faq-item h3 {
  font-size: 1.05rem !important;
  color: var(--el-dark) !important;
  margin-bottom: 10px !important;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.el-faq-item p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.8;
  margin: 0;
}

/* === FOOTER === */
.wp-block-template-part:last-child,
footer.wp-block-template-part {
  background: var(--el-black) !important;
  border-top: 2px solid var(--el-gold) !important;
  color: var(--el-light-gray) !important;
}

footer a {
  color: var(--el-gold) !important;
}

/* === SINGLE POST STYLES === */
.el-post-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px;
}

.el-post-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
  margin-bottom: 20px !important;
  line-height: 1.4 !important;
}

.el-post-content h2 {
  font-size: 1.5rem !important;
  margin-top: 50px !important;
  margin-bottom: 20px !important;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--el-gold-light);
}

.el-post-content h3 {
  font-size: 1.2rem !important;
  margin-top: 35px !important;
  color: var(--el-gold-dark) !important;
}

.el-post-content p {
  font-size: 1.02rem;
  line-height: 2;
  margin-bottom: 24px;
  color: #444;
}

.el-post-content img {
  width: 100%;
  height: auto;
  border-radius: var(--el-radius);
  margin: 30px 0;
  box-shadow: var(--el-shadow);
}

.el-post-content blockquote {
  border-left: 3px solid var(--el-gold);
  padding: 20px 30px;
  margin: 30px 0;
  background: var(--el-gold-pale);
  font-style: italic;
  color: #555;
}

.el-post-content ul, .el-post-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.el-post-content li {
  margin-bottom: 8px;
  line-height: 1.8;
  color: #444;
}

/* === INFO TABLE === */
.el-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.el-info-table th {
  background: var(--el-dark);
  color: var(--el-gold);
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.el-info-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.el-info-table tr:hover td {
  background: var(--el-gold-pale);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .el-hero { padding: 60px 16px 50px; }
  .el-section { padding: 50px 16px; }
  .el-grid { grid-template-columns: 1fr; gap: 20px; }
  .el-features { grid-template-columns: 1fr; gap: 20px; }
  .el-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .el-card img { height: 180px; }
  .el-card-body { padding: 20px; }
  .el-post-content { padding: 30px 16px; }
}

@media (max-width: 480px) {
  .el-gallery { grid-template-columns: 1fr; }
  .el-hero h1 { font-size: 1.8rem !important; }
}

/* === ANIMATION === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.el-animate {
  animation: fadeInUp 0.8s ease forwards;
}

/* === BLOG LISTING (Home page posts) === */
.el-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  max-width: var(--el-max-width);
  margin: 0 auto;
}

.el-post-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--el-radius);
  overflow: hidden;
  transition: var(--el-transition);
}

.el-post-card:hover {
  box-shadow: var(--el-shadow-gold);
  transform: translateY(-3px);
}

.el-post-card .el-post-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.el-post-card .el-post-info {
  padding: 24px;
}

.el-post-card .el-post-info h3 {
  font-size: 1.05rem !important;
  margin-bottom: 10px !important;
}

.el-post-card .el-post-info h3 a {
  color: var(--el-black) !important;
  text-decoration: none !important;
  transition: var(--el-transition) !important;
}

.el-post-card .el-post-info h3 a:hover {
  color: var(--el-gold-dark) !important;
}

.el-post-card .el-post-excerpt {
  font-size: 0.88rem;
  color: #777;
  line-height: 1.7;
}

/* === UTILITY === */
.el-text-gold { color: var(--el-gold) !important; }
.el-text-center { text-align: center; }
.el-mt-0 { margin-top: 0 !important; }
.el-mb-0 { margin-bottom: 0 !important; }
.el-py-lg { padding-top: 80px; padding-bottom: 80px; }
