/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #eef1f5;
  color: #111;
}

/* Topbar */
.topbar {
  background: linear-gradient(90deg, #0f172a, #1e293b, #334155);
  color: #fff;
  padding: 12px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

/* Search form */
.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 420px;
  max-width: 100%;
}

.search-form input {
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: 999px;
  outline: none;
  font-size: 14px;
}

.search-form button {
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.search-form button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* Hero banner */
.hero-banner {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.9), rgba(88, 28, 135, 0.82)),
    radial-gradient(circle at top right, rgba(255, 215, 0, 0.18), transparent 30%);
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  width: 100%;
  height: 100%;
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  gap: 22px;
  padding: 40px 20px 32px;
  color: #fff;
  position: relative;
}

.profile-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #9333ea);
  border: 5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 800;
  flex-shrink: 0;
}

.image-circle {
  overflow: hidden;
  padding: 0;
}

.image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-text h1 {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.2;
}

.hero-text p {
  margin: 0;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.hero-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hero-stats span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

/* Social icons */
.hero-socials {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 420px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transition: all 0.2s ease;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  color: inherit;
}

.social-icon:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.social-disabled {
  opacity: 0.45;
  cursor: default;
}

.social-whatsapp { color: #ffffff; }
.social-telegram { color: #ffffff; }
.social-twitter { color: #ffffff; }
.social-instagram { color: #ffffff; }
.social-facebook { color: #ffffff; }

/* Tabs */
.profile-tabs {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.profile-tabs-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.profile-tabs-inner a {
  text-decoration: none;
  color: #334155;
  padding: 16px 18px;
  font-weight: 700;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.profile-tabs-inner a:hover,
.profile-tabs-inner a.active {
  color: #2563eb;
  border-color: #2563eb;
}

/* Welcome strip */
.welcome-strip {
  max-width: 1280px;
  margin: 18px auto 0;
  padding: 0 20px;
}

.welcome-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.welcome-card h2 {
  margin: 0 0 10px;
  color: #0f172a;
}

.welcome-card p {
  margin: 0;
  line-height: 1.7;
  color: #475569;
}

/* Layout */
.page-layout {
  max-width: 1280px;
  margin: 18px auto 30px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 260px;
  gap: 20px;
  align-items: start;
}

.sidebar {
  display: grid;
  gap: 18px;
}

.side-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.side-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #0f172a;
}

.side-card p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.side-card ul {
  margin: 0;
  padding-left: 18px;
  color: #475569;
}

.side-card li {
  margin-bottom: 8px;
}

/* Feed */
.feed {
  min-width: 0;
}

.empty-state {
  background: #fff;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.empty-state h2 {
  margin-top: 0;
}

.empty-state p {
  line-height: 1.7;
  color: #475569;
}

.post {
  background: #fff;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.post h2,
.post-title {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.35;
}

.post-link {
  text-decoration: none;
  color: inherit;
}

.post-link:hover {
  color: #2563eb;
}

.post p {
  margin: 0;
  line-height: 1.7;
  color: #1f2937;
}

.post img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 12px 0;
  display: block;
}

.post-preview {
  margin-top: 10px;
}

.post-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #64748b;
  margin-top: 12px;
  align-items: center;
}

.post-meta-top {
  margin-bottom: 12px;
}

.badge {
  display: inline-block;
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e7f0ff;
  color: #2563eb;
  font-weight: 700;
}

.aeo {
  background: #f8fafc;
  padding: 12px;
  border-radius: 12px;
  line-height: 1.7;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
}

.read-more-wrap {
  margin-top: 14px !important;
}

.read-more-link {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.read-more-link:hover {
  text-decoration: underline;
}

/* Comments */
.comments {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.comments h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.comment-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.comment {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
}

.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.comment-body {
  font-size: 14px;
  color: #222;
  line-height: 1.6;
}

.comment-empty {
  color: #666;
  font-size: 13px;
}

.comment-form {
  display: grid;
  gap: 8px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d6dbe3;
  border-radius: 10px;
  outline: none;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

.comment-form textarea {
  min-height: 90px;
  resize: vertical;
}

.comment-form button {
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease;
}

.comment-form button:hover {
  background: #1d4ed8;
}

.comment-actions {
  margin-top: 6px;
}

.comment-actions a {
  color: #e02424;
  font-size: 12px;
  text-decoration: none;
  font-weight: bold;
}

.comment-actions a:hover {
  text-decoration: underline;
}

.comment-login-hint {
  font-size: 13px;
  color: #555;
}

.comment-login-hint a {
  color: #2563eb;
  text-decoration: none;
  font-weight: bold;
}

.comment-login-hint a:hover {
  text-decoration: underline;
}

/* Single post page */
.single-post h1 {
  margin: 12px 0 14px;
  font-size: 34px;
  line-height: 1.3;
}

.post-content {
  margin-top: 16px;
}

.post-content h2 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 22px;
  color: #111;
}

.post-content p {
  line-height: 1.9;
  color: #222;
}

/* Footer */
.site-footer {
  margin-top: 30px;
  background: linear-gradient(90deg, #0f172a, #1e293b, #334155);
  color: #fff;
  padding: 28px 20px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.footer-brand h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.footer-links,
.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-socials a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover,
.footer-socials a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 1100px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .left-sidebar,
  .right-sidebar {
    order: 2;
  }

  .feed {
    order: 1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 700px) {
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    text-align: center;
    font-size: 22px;
  }

  .search-form {
    width: 100%;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 28px;
    padding-bottom: 90px;
  }

  .profile-circle {
    width: 110px;
    height: 110px;
    font-size: 34px;
  }

  .hero-text h1 {
    font-size: 30px;
  }

  .hero-socials {
    position: static;
    justify-content: center;
    margin-top: 16px;
    max-width: 100%;
  }

  .post {
    padding: 14px;
  }

  .post h2,
  .post-title {
    font-size: 22px;
  }

  .single-post h1 {
    font-size: 28px;
  }

  .profile-tabs-inner {
    justify-content: center;
  }
}