/*
 Theme Name: Astra Child
 Theme URI: https://www.razvlazilci-najem.si
 Description: Astra Child Tema za Razvlazilci-Najem.si
 Author: Instanet d.o.o.
 Author URI: https://www.razvlazilci-najem.si
 Template: astra
 Version: 1.0.0
 Text Domain: astra-child
*/

/* =========================================
   BLOG STRAN - GLAVNI STILI
   ========================================= */

:root {
  --navy: #0D1B2A;
  --blue: #1B6CA8;
  --blue-light: #3A8FCC;
  --blue-pale: #E8F3FB;
  --teal: #0F7B72;
  --amber: #D4860A;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --text-dark: #111111;
  --text-mid: #6e6e73;
  --text-light: #999999;
  --border: #EDEDED;
  --radius: 12px;
  --radius-lg: 20px;
}

.claude-wrapper * { box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
.claude-wrapper { background: var(--off-white); }
.claude-wrapper a { text-decoration: none; color: inherit; }

/* HERO */
.blog-hero {
  background: #0D1B2A !important;
  color: #ffffff !important;
  padding: 50px 40px !important;
  border-radius: 0 0 20px 20px !important;
  margin-bottom: 0 !important;
}
.hero-inner { max-width: 800px; }
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9) !important;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 0.3rem 0.8rem; border-radius: 6px;
  margin-bottom: 1.2rem;
}
.blog-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
  font-weight: 800 !important; color: #ffffff !important;
  margin: 0 0 1rem 0 !important; line-height: 1.2 !important;
  font-family: 'Montserrat', sans-serif !important;
}
.blog-hero p {
  font-size: 1rem; font-weight: 500;
  color: rgba(255,255,255,0.65) !important;
  margin: 0; max-width: 520px; line-height: 1.6;
}

/* GUMB UREDNIK */
.new-post-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue); color: #fff !important;
  border: none; border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem; font-weight: 700;
  padding: 0.65rem 1.4rem; cursor: pointer;
  transition: background .2s;
}
.new-post-btn:hover { background: var(--navy); }

/* KONTEJNER */
.blog-container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }
.blog-section { padding: 3.5rem 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.section-title { font-size: 1.2rem !important; font-weight: 800 !important; color: #111 !important; margin: 0 0 6px !important; font-family: 'Montserrat', sans-serif !important; }
.section-line { width: 44px; height: 3px; background: var(--blue); border-radius: 2px; margin-bottom: 24px; }

/* FILTER BAR */
.blog-filter-vrstica {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: 20px; padding: 30px 0 20px;
  border-bottom: 1px solid #EDEDED;
  font-family: 'Montserrat', sans-serif;
}
.blog-zavihki { display: flex; gap: 10px; flex-wrap: wrap; }
.zavihek {
  padding: 8px 22px; background: #ffffff; color: #111111 !important;
  border: 1px solid #EDEDED; border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  transition: all 0.3s ease; text-decoration: none !important;
  display: inline-block;
}
.zavihek:hover, .zavihek.aktivno {
  background: #111111 !important; color: #ffffff !important; border-color: #111111;
}
.blog-iskalnik-forma { display: flex; position: relative; max-width: 320px; width: 100%; }
.blog-iskalnik-forma input {
  width: 100%; padding: 12px 45px 12px 20px;
  border: 1px solid #EDEDED; border-radius: 50px;
  font-family: 'Montserrat', sans-serif; font-size: 0.9rem;
  color: #111; background: #FAFAFA; outline: none;
}
.blog-iskalnik-forma input:focus { border-color: #111; background: #fff; }
.blog-iskalnik-gumb {
  position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #737373;
}

/* FEATURED CARD */
.featured-card {
  background: #ffffff !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  border: 1px solid #EDEDED !important;
  transition: box-shadow .25s !important;
  text-decoration: none !important;
  color: inherit !important;
  margin-bottom: 50px;
}
.featured-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08) !important; }
.featured-img {
  min-height: 300px !important;
  background-size: cover !important;
  background-position: center !important;
  background-color: #1B6CA8;
  position: relative !important;
}
.featured-img-tag {
  position: absolute; bottom: 20px; left: 20px;
  background: #fff; color: #0D1B2A;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 0.28rem 0.7rem; border-radius: 6px;
}
.featured-body {
  padding: 2.5rem !important;
  display: flex !important; flex-direction: column !important; justify-content: center !important;
}
.featured-meta { font-size: 0.78rem; font-weight: 600; color: #999; margin-bottom: 1rem; }
.featured-body h2 {
  font-size: 1.5rem !important; font-weight: 800 !important;
  color: #0D1B2A !important; line-height: 1.3 !important;
  margin: 0 0 1rem 0 !important;
  font-family: 'Montserrat', sans-serif !important;
}
.featured-body p {
  font-size: 0.92rem; font-weight: 500;
  color: #6e6e73; line-height: 1.65;
  margin: 0 0 1.75rem 0;
}
.read-more-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #1B6CA8; color: #fff !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  padding: 0.65rem 1.4rem; border-radius: 50px;
  text-decoration: none !important; align-self: flex-start;
  transition: background .25s;
}
.read-more-btn:hover { background: #0D1B2A; }

/* ARTICLE GRID */
.articles-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 1.5rem !important;
}
.article-card {
  background: #fff !important;
  border-radius: 20px !important;
  border: 1px solid #EDEDED !important;
  overflow: hidden !important;
  text-decoration: none !important; color: inherit !important;
  transition: all .25s !important;
  display: flex !important; flex-direction: column !important;
}
.article-card:hover { transform: translateY(-4px) !important; box-shadow: 0 16px 40px rgba(0,0,0,0.07) !important; }
.article-thumb {
  height: 190px !important;
  background-size: cover !important; background-position: center !important;
  background-color: #1B6CA8;
  position: relative !important;
}
.article-thumb-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.92); color: #0D1B2A;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 0.25rem 0.65rem; border-radius: 5px;
}
.article-body {
  padding: 1.4rem 1.5rem 1.5rem !important;
  flex: 1 !important; display: flex !important; flex-direction: column !important;
}
.article-meta { font-size: 0.75rem; font-weight: 600; color: #999; margin-bottom: 0.6rem; }
.article-body h3 {
  font-size: 1.05rem !important; font-weight: 800 !important;
  color: #0D1B2A !important; line-height: 1.4 !important;
  margin: 0 0 0.6rem 0 !important;
  font-family: 'Montserrat', sans-serif !important;
}
.article-body p {
  font-size: 0.85rem; font-weight: 500;
  color: #6e6e73; line-height: 1.6; flex: 1; margin: 0;
}
.article-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid #EDEDED;
}
.read-time { font-size: 0.75rem; font-weight: 700; color: #1B6CA8; }
.arrow-link { font-size: 0.75rem; font-weight: 700; color: #1B6CA8; }

/* UREDNIK */
.body-no-scroll { overflow: hidden; }
#view-editor .editor-layout { display: grid; grid-template-columns: 260px 1fr; height: calc(100vh - 80px); }
#view-editor .editor-sidebar { background: #fff; border-right: 1px solid #EDEDED; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; overflow-y: auto; }
#view-editor .sidebar-header { font-size: 0.72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #999; padding: 0 0.25rem; margin-top: 1rem; }
#view-editor .sidebar-post { background: none; border: 1px solid transparent; border-radius: 8px; padding: 0.65rem 0.75rem; text-align: left; cursor: pointer; width: 100%; transition: all .15s; font-family: 'Montserrat', sans-serif; }
#view-editor .sidebar-post:hover { background: #E8F3FB; border-color: #EDEDED; }
#view-editor .sidebar-post.active { background: #E8F3FB; border-color: #1B6CA8; }
#view-editor .sidebar-post .sp-title { font-size: 0.88rem; font-weight: 600; color: #111; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-editor .sidebar-post .sp-meta { font-size: 0.75rem; color: #999; margin-top: 2px; display: flex; align-items: center; gap: 4px; }
#view-editor .status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
#view-editor .status-dot.published { background: #22C55E; }
#view-editor .status-dot.draft { background: #D4860A; }
#view-editor .editor-main { display: flex; flex-direction: column; overflow: hidden; }
#view-editor .editor-topbar { background: #fff; border-bottom: 1px solid #EDEDED; padding: 0.9rem 1.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
#view-editor .editor-title-input { font-family: 'Montserrat', sans-serif; font-size: 1.25rem; font-weight: 800; border: none; outline: none; color: #0D1B2A; flex: 1; background: transparent; }
#view-editor .editor-actions { display: flex; gap: 0.6rem; align-items: center; }
#view-editor .btn-secondary { background: #F7F8FA; border: 1px solid #EDEDED; color: #6e6e73; font-size: 0.82rem; font-weight: 600; padding: 0.5rem 1rem; border-radius: 50px; cursor: pointer; font-family: 'Montserrat', sans-serif; }
#view-editor .btn-primary { background: #1B6CA8; color: #fff; border: none; font-size: 0.82rem; font-weight: 700; padding: 0.5rem 1.1rem; border-radius: 50px; cursor: pointer; font-family: 'Montserrat', sans-serif; }
#view-editor .editor-body { display: flex; flex: 1; overflow: hidden; }
#view-editor .editor-write { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
#view-editor .editor-textarea { flex: 1; padding: 2rem 2.5rem; font-size: 1rem; font-family: 'Montserrat', sans-serif; color: #111; line-height: 1.8; border: none; outline: none; resize: none; background: #fff; overflow-y: auto; }

@media (max-width: 768px) {
  .blog-hero { padding: 36px 20px !important; }
  .blog-container { padding: 0 1rem; }
  .featured-card { grid-template-columns: 1fr !important; }
  .featured-img { min-height: 200px !important; }
  .blog-filter-vrstica { padding: 20px 0 16px; }
  .blog-iskalnik-forma input { width: 180px; }
}

/* FOOTER POPRAVEK */
.kinex-clean-footer {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 50px !important;
    text-align: left !important;
    font-family: 'Montserrat', sans-serif !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}
.kinex-clean-footer ul { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    text-align: left !important;
}
.kinex-clean-footer li { 
    list-style-type: none !important;
    text-align: left !important;
}
@media (max-width: 768px) {
    .kinex-clean-footer { 
        grid-template-columns: 1fr !important; 
        text-align: center !important; 
    }
}