/*
Theme Name: MediNotes Test
Theme URI: https://github.com/
Description: MediNotes 테스트용 복사본
Author: AI Designer
Template: astra
Version: 1.0.3
License: GNU General Public License v2 or later
Text Domain: medinotes-test
*/

/* --------------------------------------------------------------------------
   1. DESIGN SYSTEM & VARIABLES (Modern Palette)
-------------------------------------------------------------------------- */

:root {
  /* Colors: Modern & Professional Palette */
  --color-primary: #0f4c81; /* Deep Sea Blue - Link/Button Emphasis */
  --color-primary-dark: #0a3356; /* Darker Blue for Hover */
  --color-accent: #e1e8ed; /* Soft Gray Accent */

  --text-main: #333333; /* Dark Charcoal - Headings */
  --text-body: #333333; /* Dark Charcoal - Body Text */
  --text-muted: #666666; /* Medium Gray for metadata */

  --bg-page: #f4f6f8; /* Professional Light Gray Background */
  --bg-card: #ffffff; /* Pure White Card */

  /* Spacing & Layout */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;

  --radius-sm: 4px; /* Sharper radius for professional look */
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Effects */
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.1); /* Thin, subtle shadow */
  --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 8px 16px rgba(15, 76, 129, 0.15); /* Blue-tinted shadow on hover */
}

/* --------------------------------------------------------------------------
   2. GLOBAL TYPOGRAPHY REFRESH
-------------------------------------------------------------------------- */
body {
  font-family: "Noto Sans KR", sans-serif !important;
  color: var(--text-body);
  background-color: var(--bg-page) !important;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto Sans KR", sans-serif !important;
  color: var(--text-main);
  letter-spacing: -0.025em; /* Tight tracking for modern look */
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   3. HEADER & NAVIGATION (Clean & Professional)
-------------------------------------------------------------------------- */
.site-header {
  background: #ffffff !important; /* Pure White */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Very subtle divider */
  box-shadow: var(--shadow-soft) !important; /* Thin shadow */
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header-menu .menu-link {
  color: var(--text-main) !important;
  font-weight: 600 !important;
  font-size: 1.05rem !important;
  padding: 0 20px !important;
  position: relative;
  transition: color 0.3s ease;
}

/* Menu Hover Effect: Simple Underline Animation */
.main-header-menu .menu-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  background: var(--color-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.main-header-menu .menu-link:hover::after {
  width: 80%;
}

/* --------------------------------------------------------------------------
   4. BLOG POSTS & ARCHIVE (Card UI)
-------------------------------------------------------------------------- */
/* Main Content Container */
.ast-container {
  max-width: 1200px !important;
}

/* Blog Archive - Post Cards */
.blog .post,
.archive .post,
.search .post {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 0 !important; /* Reset padding for layout control */
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease;
  margin-bottom: var(--spacing-lg);
}

.blog .post:hover,
.archive .post:hover,
.search .post:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Thumbnail Image Styling */
.ast-blog-layout-1 .post-thumb img {
  border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Post Content Padding in Archive */
.ast-blog-layout-1 .entry-content,
.ast-blog-layout-1 .entry-header {
  padding: var(--spacing-md) var(--spacing-lg) !important;
}

/* --------------------------------------------------------------------------
   5. SINGLE POST CONTENT (Readability Focused)
-------------------------------------------------------------------------- */
.single .post {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl) !important;
  box-shadow: var(--shadow-card);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

/* Typography Overrides (Global Content) */
.entry-content {
  font-size: 17px !important;
  line-height: 1.8 !important;
  color: var(--text-body) !important;
}

/* Reset ALL inline styles within content */
.entry-content p,
.entry-content span,
.entry-content li,
.entry-content div {
  color: var(--text-body) !important;
  font-family: "Noto Sans KR", sans-serif !important;
}

.entry-title {
  font-size: 2.5rem !important;
  margin-bottom: var(--spacing-md) !important;
  color: var(--text-main) !important;
  line-height: 1.3 !important;
  text-align: center; /* Modern centered title */
}

/* Blockquotes */
.entry-content blockquote {
  background: #f8fafc;
  border-left: 5px solid var(--color-primary);
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-main);
}

/* Headings in Post */
.entry-content h2 {
  font-size: 1.8rem !important;
  margin-top: var(--spacing-xl) !important;
  margin-bottom: var(--spacing-sm) !important;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 10px;
}

.entry-content h3 {
  font-size: 1.4rem !important;
  margin-top: var(--spacing-lg) !important;
  color: var(--text-main) !important;
}

/* Links */
.entry-content a {
  color: var(--color-primary) !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
  font-weight: 600;
}

.entry-content a:hover {
  color: var(--color-primary-dark) !important;
  border-bottom-color: var(--color-primary-dark);
}

/* Buttons */
button,
.button,
.wp-block-button__link {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  ) !important;
  color: white !important;
  padding: 12px 28px !important;
  border-radius: var(--radius-full) !important; /* Pill shape */
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

button:hover,
.button:hover,
.wp-block-button__link:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 12px 24px rgba(97, 175, 239, 0.5) !important;
  filter: brightness(1.2) !important;
}

/* Tags & Categories */
.ast-post-tags a,
.ast-post-categories a {
  background: #eff6ff;
  color: var(--color-primary) !important;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.ast-post-tags a:hover,
.ast-post-categories a:hover {
  background: var(--color-primary);
  color: white !important;
}

/* --------------------------------------------------------------------------
   6. FOOTER (Clean & Minimal)
-------------------------------------------------------------------------- */
.site-footer {
  background-color: #ffffff !important;
  border-top: 1px solid #e5e7eb;
  padding: var(--spacing-xl) 0;
}

.site-footer .ast-footer-copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE ADJUSTMENTS
-------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .entry-title {
    font-size: 1.8rem !important;
  }
  .single .post {
    padding: var(--spacing-md) !important;
  }
  .entry-content {
    font-size: 16px !important;
  }
}
