/**
 * Asera Child Theme - Override Styles
 * 
 * GeneratePress CSS override
 * Footer Element (.gb-element-f5806f67) is excluded from all overrides
 * !important removed to allow editor inline styles to take precedence
 */

/* ========================================
   Color Override (Footer excluded)
   ======================================== */

body:not(.gb-element-f5806f67) {
  color: var(--asera-text-primary);
  background-color: var(--asera-surface-50);
}

/* Headings - 블로그 포스트에만 적용 (페이지 제외) */
.single-post h1:not(.gb-element-f5806f67 *),
.single-post h2:not(.gb-element-f5806f67 *),
.single-post h3:not(.gb-element-f5806f67 *),
.single-post h4:not(.gb-element-f5806f67 *),
.single-post h5:not(.gb-element-f5806f67 *),
.single-post h6:not(.gb-element-f5806f67 *),
.blog h1:not(.gb-element-f5806f67 *),
.blog h2:not(.gb-element-f5806f67 *),
.blog h3:not(.gb-element-f5806f67 *),
.blog h4:not(.gb-element-f5806f67 *),
.blog h5:not(.gb-element-f5806f67 *),
.blog h6:not(.gb-element-f5806f67 *),
.archive h1:not(.gb-element-f5806f67 *),
.archive h2:not(.gb-element-f5806f67 *),
.archive h3:not(.gb-element-f5806f67 *),
.archive h4:not(.gb-element-f5806f67 *),
.archive h5:not(.gb-element-f5806f67 *),
.archive h6:not(.gb-element-f5806f67 *) {
  color: var(--asera-text-primary);
}

/* Links - 블로그 포스트에만 적용 (페이지 제외) */
.single-post a:not(.gb-element-f5806f67 *),
.blog a:not(.gb-element-f5806f67 *),
.archive a:not(.gb-element-f5806f67 *) {
  color: var(--asera-text-primary);
}

.single-post a:not(.gb-element-f5806f67 *):hover,
.single-post a:not(.gb-element-f5806f67 *):focus,
.single-post a:not(.gb-element-f5806f67 *):active,
.blog a:not(.gb-element-f5806f67 *):hover,
.blog a:not(.gb-element-f5806f67 *):focus,
.blog a:not(.gb-element-f5806f67 *):active,
.archive a:not(.gb-element-f5806f67 *):hover,
.archive a:not(.gb-element-f5806f67 *):focus,
.archive a:not(.gb-element-f5806f67 *):active {
  color: var(--asera-text-secondary);
}

/* ========================================
   Header Override
   ======================================== */

.site-header {
  background-color: var(--asera-surface-50);
}

.inside-header {
  padding: var(--asera-header-padding-desktop);
}

@media (max-width: 768px) {
  .inside-header {
    padding: var(--asera-header-padding-mobile);
  }
}

.main-title a,
.main-title a:hover {
  color: var(--asera-text-tertiary);
}

/* ========================================
   Navigation Override
   ======================================== */

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items {
  font-family: var(--asera-font-family);
  font-weight: var(--asera-font-weight-semibold);
  font-size: var(--asera-font-size-nav);
  text-transform: uppercase;
  letter-spacing: var(--asera-letter-spacing-wide);
  color: var(--asera-text-primary);
}

.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a,
.main-navigation .main-nav ul li.sfHover:not([class*="current-menu-"]) > a,
.main-navigation .menu-bar-item:hover > a,
.main-navigation .menu-bar-item.sfHover > a {
  color: var(--asera-text-secondary);
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
  color: var(--asera-text-primary);
}

/* ========================================
   Content Area Override
   ======================================== */

.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.one-container .site-content,
.inside-page-header {
  color: var(--asera-text-primary);
  background-color: var(--asera-surface-50);
  padding: var(--asera-content-padding-desktop);
}

@media (max-width: 768px) {
  .separate-containers .inside-article,
  .separate-containers .comments-area,
  .separate-containers .page-header,
  .separate-containers .paging-navigation,
  .one-container .site-content,
  .inside-page-header {
    padding: var(--asera-content-padding-mobile);
  }
}

/* ========================================
   Entry Title Override
   ======================================== */

.entry-title a {
  color: var(--asera-text-primary);
}

.entry-title a:hover {
  color: var(--asera-text-secondary);
}

.entry-meta {
  color: var(--asera-text-tertiary);
}

.entry-meta a {
  color: var(--asera-text-tertiary);
}

.entry-meta a:hover {
  color: var(--asera-text-secondary);
}

/* ========================================
   Button Override (Footer excluded)
   ======================================== */

button:not(.menu-toggle):not(.gb-element-f5806f67 *),
html input[type="button"]:not(.gb-element-f5806f67 *),
input[type="reset"]:not(.gb-element-f5806f67 *),
input[type="submit"]:not(.gb-element-f5806f67 *),
a.button:not(.gb-element-f5806f67 *),
.wp-block-button .wp-block-button__link:not(.gb-element-f5806f67 *) {
  font-family: var(--asera-font-family);
  font-weight: var(--asera-font-weight-semibold);
  font-size: var(--asera-font-size-button);
  text-transform: uppercase;
  letter-spacing: var(--asera-letter-spacing-wide);
  color: var(--asera-surface-50);
  background-color: var(--asera-secondary);
}

button:not(.menu-toggle):not(.gb-element-f5806f67 *):hover,
html input[type="button"]:not(.gb-element-f5806f67 *):hover,
input[type="reset"]:not(.gb-element-f5806f67 *):hover,
input[type="submit"]:not(.gb-element-f5806f67 *):hover,
a.button:not(.gb-element-f5806f67 *):hover,
button:not(.menu-toggle):not(.gb-element-f5806f67 *):focus,
html input[type="button"]:not(.gb-element-f5806f67 *):focus,
input[type="reset"]:not(.gb-element-f5806f67 *):focus,
input[type="submit"]:not(.gb-element-f5806f67 *):focus,
a.button:not(.gb-element-f5806f67 *):focus,
.wp-block-button .wp-block-button__link:not(.gb-element-f5806f67 *):not(.has-background):active,
.wp-block-button .wp-block-button__link:not(.gb-element-f5806f67 *):not(.has-background):focus,
.wp-block-button .wp-block-button__link:not(.gb-element-f5806f67 *):not(.has-background):hover {
  color: var(--asera-surface-50);
  background-color: var(--asera-secondary-600);
}

/* ========================================
   Entry Meta (Category Links)
   ======================================== */

/* 본문 글 안 카테고리 링크: 적절한 글자색 + 배경 없음 */
.entry-meta .cat-links a {
  color: var(--asera-text-primary) !important;
  background-color: transparent !important;
  padding: 0 !important;
}

/* 호버 시에도 배경 없음 */
.entry-meta .cat-links a:hover,
.entry-meta .cat-links a:focus {
  color: var(--asera-secondary) !important;
  background-color: transparent !important;
  text-decoration: underline;
}
