/* ==========================================================
   VDSSATINAL.AT - TECH BLOG THEME
   THEME: Modern Tech / SaaS Publication (Vercel/Medium style)
   ========================================================== */

/* 1. RESET & GLOBALS */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
  background-color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

a {
  text-decoration: none;
  color: #0066cc;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #0044aa;
}

/* Reading Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #0066cc;
  z-index: 1100;
  width: 0;
  transition: width 0.1s ease;
}

/* 2. BLOG HEADER */
.blog-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f0f0f0;
  height: 64px;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: #0066cc;
  border-radius: 50%;
}

.logo-text {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.logo-sub {
  color: #0066cc;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #555555;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover {
  color: #0066cc;
  text-decoration: none;
}

.header-cta .cta-button {
  background-color: #0066cc;
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.header-cta .cta-button:hover {
  background-color: #0055bb;
}

/* 3. BLOG HERO */
.blog-hero {
  background-color: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  color: #bf4800;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.blog-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.blog-hero h1 span {
  color: #0066cc;
}

.blog-hero .subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: #666666;
  max-width: 680px;
  margin: 1.25rem auto 0;
  line-height: 1.5;
  font-weight: 400;
}

/* 4. BLOG CONTENT MAIN LAYOUT */
.blog-main {
  background-color: #ffffff;
  padding: 4rem 0;
}

.content-block {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Featured Article (Section 1 - Static/Always open) */
.featured-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  margin-bottom: 5rem;
  align-items: center;
}

.featured-image-wrapper img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #888888;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.post-category {
  color: #0066cc;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.featured-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.featured-content h2 a {
  color: #1a1a1a;
}

.featured-content h2 a:hover {
  color: #0066cc;
}

.featured-content p {
  font-size: 1.05rem;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Blog Divider line */
.blog-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 4rem 0 2.5rem;
}

.blog-divider h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
}

.divider-line {
  height: 1px;
  background-color: #eaeaea;
  flex-grow: 1;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.02);
}

.post-header {
  cursor: pointer;
}

.post-image-wrapper {
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  border: 1px solid #f0f0f0;
}

.post-image-wrapper img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-header:hover img {
  transform: scale(1.03);
}

.post-header-text h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0.5rem 0 0.25rem;
  letter-spacing: -0.01em;
}

.post-header-text h3 a {
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.post-header:hover h3 a {
  color: #0066cc;
}

/* Chevron - Pointing right by default */
.blog-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #888888;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s, color 0.2s;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-color: #f5f5f7;
  border-radius: 50%;
  transform: rotate(-90deg); /* Downward SVG rotated counter-clockwise to point right */
}

.post-header:hover .blog-chevron {
  background-color: #e8e8ed;
  color: #1a1a1a;
  transform: rotate(-90deg) translateX(2px); /* Moves slightly right on hover */
}

/* Hide post body on grid cards */
.post-card .post-body {
  display: none;
}

.post-body p {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.blog-read-more-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #0066cc;
  margin-top: 0.5rem;
}

.blog-read-more-link:hover {
  color: #0044aa;
  text-decoration: underline;
}

/* 5. COMPONENTS & SPECIFIC WRAPPERS */
.winner-box, .tip-box {
  background-color: #fafafa;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.winner-box h4, .tip-box strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.winner-box p, .tip-box p {
  font-size: 13px;
  color: #666666;
  margin-bottom: 0;
}

.compare-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 8px;
  border: 1px solid #eaeaea;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.compare-table th, .compare-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}

.compare-table th {
  background-color: #fafafa;
  font-weight: 600;
  color: #1a1a1a;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

/* 6. BLOG FOOTER */
.blog-footer {
  background-color: #111111;
  color: #888888;
  padding: 5rem 1.5rem 3rem;
  border-top: 1px solid #222222;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.brand-col .brand {
  margin-bottom: 1rem;
}

.brand-col .brand .logo-text {
  color: #ffffff;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #888888;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-col a {
  color: #888888;
  display: block;
  margin-bottom: 0.65rem;
  font-size: 13px;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #222222;
  padding-top: 2rem;
  text-align: center;
  font-size: 12px;
  color: #666666;
}

.footer-bottom a {
  color: #666666;
  border-bottom: 1px dotted #666666;
}

.footer-bottom a:hover {
  color: #888888;
}

/* 7. FLAWLESS MOBILE RESPONSIVENESS */
@media (max-width: 992px) {
  .featured-post {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-header {
    height: 56px;
  }
  
  .nav-links {
    display: none; /* Hide top nav links on mobile to look cleaner */
  }

  .header-container {
    padding: 0 1rem;
  }

  .blog-hero {
    padding: 3.5rem 1rem 2.5rem;
  }
  
  .blog-main {
    padding: 2.5rem 0;
  }

  .featured-content h2 {
    font-size: 1.6rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
}

/* 8. MODERN READER MODAL */
body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 15, 15, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 760px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  transform: scale(0.95) translateY(15px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #eaeaea;
  scrollbar-width: thin;
  scrollbar-color: #d0d0d0 transparent;
}

.modal-container::-webkit-scrollbar {
  width: 6px;
}

.modal-container::-webkit-scrollbar-track {
  background: transparent;
}

.modal-container::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 10px;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f5f5f7;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555555;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
  z-index: 10;
}

.modal-close:hover {
  background-color: #e8e8ed;
  color: #1a1a1a;
  transform: scale(1.05);
}

.modal-close:active {
  transform: scale(0.95);
}

.modal-content {
  padding: 3rem 2.5rem;
}

/* Modal Internal Formatting */
.modal-inner-content {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.modal-inner-content .post-image-wrapper {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
}

.modal-inner-content .post-image-wrapper img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: none !important;
}

.modal-inner-content h3 {
  font-size: 2.25rem !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  margin-top: 1rem !important;
  margin-bottom: 1.5rem !important;
  letter-spacing: -0.02em !important;
}

.modal-inner-content h3 a {
  color: #1a1a1a !important;
  pointer-events: none;
  cursor: default;
}

.modal-inner-content .post-body {
  display: block !important;
  margin-top: 1.5rem;
  border-top: 1px solid #eaeaea;
  padding-top: 1.5rem;
  opacity: 1 !important;
}

.modal-inner-content .post-body p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .modal-overlay {
    padding: 1rem;
  }
  
  .modal-content {
    padding: 2rem 1.5rem;
  }
  
  .modal-inner-content h3 {
    font-size: 1.75rem !important;
  }
}


/* ========================================== 
   EXTRACTED INLINE STYLES 
   ========================================== */
/* Dropdown Styles */
  .dropdown {
    position: relative;
    display: inline-block;
  }

  .dropdown-trigger {
    font-weight: 600;
    color: #555555;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
  }

  .dropdown-trigger:hover {
    background-color: #f5f5f7;
    color: #0066cc;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    min-width: 320px;
    max-height: 480px;
    overflow-y: auto;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #eaeaea;
    border-radius: 8px;
    z-index: 1000;
    padding: 0.5rem;
  }

  .dropdown-content a {
    display: block;
    padding: 0.6rem 0.8rem;
    font-size: 0.875rem;
    color: #555555;
    border-radius: 4px;
    transition: all 0.2s;
    text-align: left;
    border-bottom: 1px solid #f9f9f9;
  }

  .dropdown-content a:last-child {
    border-bottom: none;
  }

  .dropdown-content a:hover {
    background-color: #f5f5f7;
    color: #0066cc;
    padding-left: 1rem;
    text-decoration: none;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  .dropdown-content::-webkit-scrollbar {
    width: 4px;
  }
  .dropdown-content::-webkit-scrollbar-track {
    background: #ffffff;
  }
  .dropdown-content::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 2px;
  }

  /* Responsive Header Navigation Fixes */
  @media (max-width: 768px) {
    .blog-header {
      height: auto !important;
      padding: 0.75rem 0 !important;
    }
    .header-container {
      flex-direction: column !important;
      gap: 0.5rem !important;
    }
    .nav-links {
      display: flex !important;
      justify-content: center !important;
      width: 100% !important;
      margin: 0.25rem 0 !important;
    }
    .header-cta {
      width: 100% !important;
      display: flex !important;
      justify-content: center !important;
    }
  }

/* Collapsible Content Toggler */
.more-text {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.more-text.show {
  display: block !important;
  opacity: 1 !important;
}

.read-more-btn {
  background: none;
  border: none;
  color: #0066cc;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  transition: opacity 0.2s ease;
}

.read-more-btn:hover {
  opacity: 0.8;
  text-decoration: underline;
}


.highlight {
  color: #0066cc !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  display: inline !important;
}

/* HERO STATS - VERISUNUCU STYLE */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  width: 100%;
}
.stat-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-item:hover {
  transform: translateY(-3px);
  border-color: #0066cc;
  box-shadow: 0 10px 25px rgba(0, 102, 204, 0.08);
}
.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #666666;
  letter-spacing: 0.05em;
}
@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}
