/*
Theme Name: Travel Sunrise Timeline
Theme URI: https://example.com/travel-sunrise-timeline
Author: Copilot
Author URI: https://example.com
Description: Minimalis elegan WordPress theme dengan konsep timeline sosmed untuk konten travel.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: travel-sunrise-theme
Tags: blog, one-column, custom-logo, custom-menu, featured-images
*/

:root {
  --sun-50: #fef9ec;
  --sun-100: #fdeec8;
  --sun-200: #fada8d;
  --sun-300: #f7c252;
  --sun-400: #f5a824;
  --sun-500: #ef8911;
  --sun-600: #d3650c;
  --sun-700: #af450e;
  --sun-800: #8e3612;
  --sun-900: #752d12;
  --sun-950: #431505;

  --mantis-50: #f3fbf2;
  --mantis-100: #e3f6e2;
  --mantis-200: #c7ecc6;
  --mantis-300: #9adc99;
  --mantis-400: #66c365;
  --mantis-500: #41a740;
  --mantis-600: #318930;
  --mantis-700: #296c29;
  --mantis-800: #245724;
  --mantis-900: #1f4820;
  --mantis-950: #0c270d;

  --shark-50: #fafafa;
  --shark-100: #f4f5f4;
  --shark-200: #e5e6e5;
  --shark-300: #d5d7d5;
  --shark-400: #a4a7a4;
  --shark-500: #747774;
  --shark-600: #555855;
  --shark-700: #414441;
  --shark-800: #232423;
  --shark-900: #191a19;
  --shark-950: #0a0a0a;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(245, 168, 36, 0.14), transparent 55%),
    radial-gradient(1000px 500px at 100% 0%, rgba(65, 167, 64, 0.12), transparent 50%),
    linear-gradient(180deg, var(--sun-50) 0%, var(--shark-50) 100%);
}

.site-shell {
  position: relative;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
  pointer-events: none;
  z-index: -1;
}

.timeline-line {
  background: linear-gradient(180deg, var(--mantis-300), var(--sun-400), var(--shark-300));
}

.card-title-accent {
  box-shadow: inset 0 -0.4em 0 rgba(247, 194, 82, 0.35);
}

.social-post-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.social-post-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.social-post-media {
  position: relative;
  display: block;
  aspect-ratio: 9 / 12;
  overflow: hidden;
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(12, 39, 13, 0.95), rgba(67, 21, 5, 0.8));
  box-shadow: 0 20px 38px -20px rgba(25, 26, 25, 0.45);
  isolation: isolate;
}

.social-post-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.04) 38%, rgba(10, 10, 10, 0.83) 100%);
  z-index: 2;
}

.social-post-badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.social-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(4px);
  padding: 0.26rem 0.6rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fffef8;
}

.social-badge-location {
  background: rgba(49, 137, 48, 0.56);
}

.social-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.social-post-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 25% 10%, rgba(245, 168, 36, 0.8), transparent 75%),
    radial-gradient(95% 70% at 78% 14%, rgba(65, 167, 64, 0.6), transparent 80%),
    linear-gradient(150deg, rgba(67, 21, 5, 0.92), rgba(12, 39, 13, 0.9));
}

.social-post-card:hover .social-post-image {
  transform: scale(1.04);
}

.social-post-title {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 3;
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fffef8;
  text-wrap: balance;
  text-shadow: 0 2px 8px rgba(10, 10, 10, 0.45);
}

.social-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--shark-200);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.38rem 0.7rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shark-600);
}

.social-pill-category a {
  color: var(--sun-700);
  text-decoration: none;
}

.social-pill-category a:hover {
  color: var(--sun-800);
}

.social-pill-category .cat-item {
  display: inline-flex;
}

.social-pill-category a + a,
.social-pill-category a + span {
  margin-left: 0.28rem;
}

.social-post-excerpt {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--shark-600);
}

.social-post-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid rgba(213, 215, 213, 0.85);
  padding-top: 0.75rem;
}

.social-action-item {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(165, 167, 164, 0.4);
  background: rgba(250, 250, 250, 0.95);
  padding: 0.32rem 0.62rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shark-600);
}

.social-action-link {
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid var(--mantis-300);
  background: var(--mantis-50);
  padding: 0.36rem 0.8rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mantis-700);
  text-decoration: none;
  transition: background-color 180ms ease;
}

.social-action-link:hover {
  background: var(--mantis-100);
}

.social-post-empty {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .social-post-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .social-post-title {
    font-size: clamp(1.05rem, 4.5vw, 1.35rem);
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
  }

  .social-post-meta {
    gap: 0.35rem;
  }

  .social-pill {
    font-size: 0.6rem;
  }

  .social-post-actions {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .social-action-item {
    font-size: 0.58rem;
    padding: 0.28rem 0.52rem;
  }

  .social-action-link {
    margin-left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.6rem;
  }
}

.entry-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.entry-content ul,
.entry-content ol {
  margin: 1rem 0 1rem 1.2rem;
}

.entry-content a {
  color: var(--sun-700);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.entry-content blockquote {
  border-left: 4px solid var(--mantis-500);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--shark-700);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
