/* ========================================
   Onur Danir — Personal Portfolio Styles
   ======================================== */

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

/* Cards */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Blog Post Content */
.post-content {
  line-height: 1.8;
  font-size: 1.05rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 1.5rem auto;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.post-content h4,
.post-content h5,
.post-content h6 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.post-content blockquote {
  border-left: 4px solid #0d6efd;
  padding-left: 1rem;
  color: #6c757d;
  font-style: italic;
  margin: 1.5rem 0;
}

.post-content pre {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1rem;
  border: 1px solid #e9ecef;
}

.post-content code {
  background: #f8f9fa;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  color: #d63384;
}

.post-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.post-content table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

.post-content table th,
.post-content table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #dee2e6;
}

.post-content table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

/* Footer */
footer {
  margin-top: auto;
}

footer a:hover {
  opacity: 0.8;
}

/* Badges */
.badge {
  font-weight: 500;
}

/* Navbar */
.navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.navbar .nav-link {
  font-weight: 500;
  transition: color 0.15s ease;
}

/* Section Title Underline */
.section-title {
  position: relative;
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #0d6efd;
  margin-top: 0.5rem;
  border-radius: 2px;
}

/* Utility */
.text-md-end {
  text-align: end;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .hero-section {
    min-height: 60vh;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }
}
