/* Single Post Page Styles */

/* Ukloni bijeli prostor iznad headera */
body.single {
  padding: 0 !important;
  margin: 0 !important;
  background: var(--theme-color1, #122250) !important;
}

body.single #wrapper {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.single .site-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Header na single strani - 20px padding */
body.single .site-header--onicx {
  padding: 20px 0 0 0 !important;
  margin-top: 0 !important;
}

/* Hero Section with Featured Image Background - kao na service strani */
body.single-post .single-hero-section {
  background: var(--theme-color1, #122250);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  color: #ffffff;
  padding: 240px 0 120px;
  margin-top: -120px !important;
  position: relative;
  overflow: hidden;
  min-height: 550px;
  display: flex;
  align-items: center;
}

body.single-post .single-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 34, 80, 0.85);
  pointer-events: none;
  z-index: 1;
}

body.single-post .single-hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
  z-index: 1;
}

.single-hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 80px 0 80px;
  margin-top: 0 !important;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.single-hero-overlay {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
  z-index: 1;
}

.single-hero-section .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.single-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.single-hero-text {
  width: 100%;
  position: relative;
  z-index: 2;
}

body.single-post .single-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin: 0 0 30px;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

body.single-post .single-excerpt {
  font-size: 1.35rem;
  line-height: 1.8;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-weight: 400;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.single-title {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 25px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.single-excerpt {
  font-size: 1.25rem;
  line-height: 1.7;
  margin: 0 0 30px;
  opacity: 0.95;
  color: #ffffff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  font-weight: 400;
}

.single-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  margin-top: 20px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.single-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.single-meta span:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.single-meta i {
  font-size: 1rem;
}

.single-meta a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.single-meta a:hover {
  opacity: 0.8;
}

/* Main Content Section - kao na service strani */
body.single-post .single-post-section {
  padding: 100px 0 !important;
  background: #ffffff;
  position: relative;
}

body.single-post .single-post-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}

.single-post-section {
  padding: 0 !important;
  background: #ffffff;
}

/* Ukloni padding sa body na single strani */
body.single {
  padding: 0 !important;
}

body.single .container {
  padding-left: 20px;
  padding-right: 20px;
}

body.single-post .single-post-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.single-article {
  max-width: 900px;
  margin: 0 auto;
}

body.single-post .single-content {
  font-size: 1.125rem;
  line-height: 1.9;
  color: #4a5568;
}

.single-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #333333;
  text-align: left;
}

.single-content h1,
.single-content h2,
.single-content h3,
.single-content h4,
.single-content h5,
.single-content h6 {
  margin-top: 2em;
  margin-bottom: 1em;
  font-weight: 700;
  color: #2d3748;
  text-align: left;
}

body.single-post .single-content h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #2d3748;
  margin-top: 3em;
  margin-bottom: 1.2em;
  border-bottom: 4px solid var(--theme-color1, #122250);
  padding-bottom: 15px;
  position: relative;
  letter-spacing: -0.5px;
}

body.single-post .single-content h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--theme-color1, #122250);
}

body.single-post .single-content h3 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #2d3748;
  margin-top: 2.5em;
  margin-bottom: 1em;
  letter-spacing: -0.3px;
}

body.single-post .single-content h3::before {
  content: '▸';
  color: var(--theme-color1, #122250);
  margin-right: 10px;
  font-size: 1.2em;
}

.single-content h2 {
  font-size: 2rem;
  border-bottom: 3px solid #667eea;
  padding-bottom: 10px;
}

.single-content h3 {
  font-size: 1.5rem;
}

body.single-post .single-content p {
  margin-bottom: 1.8em;
  color: #4a5568;
}

body.single-post .single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 3em 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.single-content p {
  margin-bottom: 1.5em;
  text-align: left;
}

.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 2em 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.single-content ul,
.single-content ol {
  margin: 1.5em 0;
  padding-left: 2em;
  text-align: left;
}

.single-content li {
  margin-bottom: 0.75em;
}

.single-content blockquote {
  border-left: 4px solid #667eea;
  padding-left: 20px;
  margin: 2em 0;
  font-style: italic;
  color: #555;
  background: #f7fafc;
  padding: 20px;
  border-radius: 5px;
  text-align: left;
}

.single-content a {
  color: #667eea;
  text-decoration: underline;
  transition: color 0.3s;
}

.single-content a:hover {
  color: #764ba2;
}

/* Hide author and comments info */
.single-content .post-author,
.single-content .author-info,
.single-content .entry-author,
.single-content .by-author,
.single-content .post-meta-author,
.single-content .comments-link,
.single-content .entry-comments,
.single-content .post-comments,
.single-article .post-author,
.single-article .author-info,
.single-article .entry-author,
.single-article .by-author,
.single-article .post-meta-author,
.single-article .comments-link,
.single-article .entry-comments,
.single-article .post-comments,
body.single-post .author-info,
.single-post-section .author-info,
.single-post-section .post-meta,
.single-post-section .entry-meta {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Tags */
.single-tags {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.tags-label {
  font-weight: 600;
  color: #2d3748;
  display: flex;
  align-items: center;
  gap: 8px;
}

.single-tags a {
  display: inline-block;
  padding: 6px 15px;
  background: #f7fafc;
  color: #667eea;
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid #e2e8f0;
}

.single-tags a:hover {
  background: #667eea;
  color: #ffffff;
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  body.single .site-header--onicx {
    padding: 20px 0 0 0 !important;
  }
  body.single-post .single-hero-section {
    margin-top: -100px !important;
    padding: 140px 0 70px;
    min-height: 380px;
  }
  body.single-post .single-title {
    font-size: 2.25rem;
  }
  body.single-post .single-excerpt {
    font-size: 1.15rem;
  }
  body.single-post .single-post-section {
    padding: 70px 0 !important;
  }
  body.single-post .single-content {
    font-size: 1.05rem;
  }
  body.single-post .single-content h2 {
    font-size: 1.75rem;
  }
  body.single-post .single-content h3 {
    font-size: 1.4rem;
  }
  .single-hero-section {
    padding: 60px 0 60px;
    min-height: 350px;
    margin-top: 0 !important;
  }
  
  .single-title {
    font-size: 2rem;
  }
  
  .single-excerpt {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
  
  .single-meta {
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    padding-top: 20px;
  }
  
  .single-meta span {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
  
  .single-content {
    font-size: 1rem;
  }
  
  .single-content h2 {
    font-size: 1.5rem;
  }
  
  .single-content h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  body.single .site-header--onicx {
    padding: 20px 0 0 0 !important;
  }
  body.single-post .single-hero-section {
    margin-top: -100px !important;
    padding: 120px 0 60px;
    min-height: 350px;
  }
  body.single-post .single-title {
    font-size: 1.9rem;
    margin-bottom: 20px;
  }
  body.single-post .single-excerpt {
    font-size: 1.05rem;
  }
  .single-hero-section {
    padding: 50px 0 50px;
    min-height: 300px;
    margin-top: 0 !important;
  }
  
  .single-title {
    font-size: 1.75rem;
    margin-bottom: 15px;
  }
  
  .single-excerpt {
    font-size: 1rem;
  }
}

/* Service page hero section */
body.page-template-template-service .service-hero-section, 
.service-page .service-hero-section {
  margin-top: -120px !important;
  padding-top: 240px !important;
  padding-bottom: 100px !important;
  min-height: 450px !important;
}
