/*
Theme Name: Oilife iCloud Theme
Theme URI: https://oilife.co.id
Author: Oilife Indonesia
Author URI: https://oilife.co.id
Description: Custom WordPress theme untuk Oilife dengan desain iCloud-inspired. Font Inter, glassmorphism nav, card-based layout, responsive.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
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: oilife
*/

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

/* BASE */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: #1d1d1f; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* NAV */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 48px;
  display: flex; align-items: center; flex-wrap: wrap;
  background: rgba(245,245,247,0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
body.admin-bar .site-nav { top: 32px; }

.site-nav__logo {
  font-weight: 800; font-size: 22px;
  color: #1d1d1f; text-decoration: none;
}
.site-nav__menu {
  display: flex; align-items: center; justify-content: center;
  gap: 0; list-style: none; flex: 1;
}
.site-nav__menu li a {
  font-size: 18px; font-weight: 400; color: #86868b;
  padding: 0 20px; text-decoration: none; transition: color 0.2s;
}
.site-nav__menu li a:hover { color: #1d1d1f; }
.site-nav__menu li.current-menu-item a,
.site-nav__menu li.current_page_item a {
  color: #1d1d1f; font-weight: 600;
}
.site-nav__hamburger {
  display: none; margin-left: auto;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
}
.site-nav__hamburger svg {
  width: 24px; height: 24px; stroke: #1d1d1f; stroke-width: 2; fill: none;
}

/* MAIN */
.site-main {
  max-width: 860px; margin: 0 auto;
  padding: 120px 24px 60px;
}
.site-main--wide { max-width: 1080px; }

/* PAGE HEADER */
.page-header { text-align: center; padding: 40px 0 60px; }
.page-header__title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 900; letter-spacing: -2px; line-height: 1.15;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 { font-family: 'Inter', sans-serif; color: #1d1d1f; }
h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 900; letter-spacing: -2px; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 32px; font-weight: 900; letter-spacing: -1px; line-height: 1.2; margin: 2em 0 0.8em; }
h3 { font-size: 24px; font-weight: 800; margin: 1.5em 0 0.6em; }
h4 { font-size: 20px; font-weight: 700; margin: 1.2em 0 0.5em; }
p { margin-bottom: 1.5em; }
ul, ol { padding-left: 1.5em; margin-bottom: 1.5em; }
li { margin-bottom: 0.4em; }
blockquote {
  border-left: 4px solid #d2d2d7;
  padding: 16px 24px; margin: 2em 0;
  background: #fff; border-radius: 0 16px 16px 0;
}
blockquote p { font-size: 20px; font-style: italic; color: #86868b; margin: 0; }
strong { font-weight: 700; }

/* LINKS IN CONTENT */
.entry-content a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: #86868b; }

/* IMAGES IN CONTENT */
.entry-content img {
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  margin: 1em 0;
}
.wp-block-image { margin: 2em 0; }

/* BLOG ARCHIVE */
.blog-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; max-width: 1080px; margin: 0 auto;
}
.post-card {
  background: #fff; border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  overflow: hidden; transition: transform 0.3s;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); }
.post-card__thumb {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; border-radius: 0;
}
.post-card__body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.post-card__meta {
  font-size: 18px; color: #aeaeb2; margin-bottom: 10px;
}
.post-card__title {
  font-size: 22px; font-weight: 800; line-height: 1.3;
  letter-spacing: -0.5px; margin-bottom: 10px;
}
.post-card__title a { text-decoration: none; color: #1d1d1f; }
.post-card__title a:hover { color: #86868b; }
.post-card__excerpt {
  font-size: 18px; color: #86868b; line-height: 1.6; flex: 1;
}
.post-card__more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 18px; font-weight: 600; color: #1d1d1f;
  margin-top: 16px; text-decoration: none;
}
.post-card__more:hover { color: #86868b; }

/* SINGLE POST */
.single-post .entry-content {
  max-width: 720px; margin: 0 auto;
}
.post-hero { text-align: center; padding: 40px 0; }
.post-hero__meta { font-size: 18px; color: #aeaeb2; margin-bottom: 16px; }
.post-hero__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900; letter-spacing: -1.5px; line-height: 1.2;
}
.post-hero__image {
  margin: 40px auto; max-width: 720px;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* POST NAVIGATION */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 720px; margin: 60px auto;
}
.post-nav__item {
  background: #fff; border-radius: 20px; padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  text-decoration: none; transition: transform 0.2s;
}
.post-nav__item:hover { transform: translateY(-2px); }
.post-nav__label { font-size: 18px; color: #aeaeb2; margin-bottom: 6px; }
.post-nav__title { font-size: 18px; font-weight: 600; color: #1d1d1f; }

/* PAGINATION */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  padding: 40px 0;
}
.pagination a, .pagination span {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 500;
  background: #fff; color: #1d1d1f;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  text-decoration: none; transition: all 0.2s;
}
.pagination .current, .pagination a:hover {
  background: #1d1d1f; color: #fff;
}

/* COMMENTS */
.comments-area { max-width: 720px; margin: 40px auto; }
.comments-area h2 { font-size: 28px; margin-bottom: 24px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment {
  background: #fff; border-radius: 20px; padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  margin-bottom: 16px;
}
.comment-form input, .comment-form textarea {
  font-family: 'Inter', sans-serif; font-size: 18px;
  border-radius: 14px; border: 1px solid #d2d2d7;
  padding: 14px 18px; background: #fff; width: 100%;
  margin-bottom: 12px;
}
.comment-form input[type="submit"] {
  font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 600;
  background: #1d1d1f; color: #fff; border: none;
  border-radius: 100px; padding: 14px 32px;
  cursor: pointer; width: auto;
}

/* SEARCH */
.search-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }
.search-form input[type="search"] {
  flex: 1; font-family: 'Inter', sans-serif; font-size: 18px;
  border-radius: 100px; border: 1px solid #d2d2d7;
  padding: 14px 24px; background: #fff;
}
.search-form button {
  font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 600;
  background: #1d1d1f; color: #fff; border: none;
  border-radius: 100px; padding: 14px 28px; cursor: pointer;
}

/* FOOTER */
.site-footer {
  text-align: center; padding: 40px 24px 32px;
  border-top: 1px solid #d2d2d7;
  max-width: 1080px; margin: 60px auto 0;
}
.site-footer__links {
  display: flex; justify-content: center; gap: 32px;
  margin-bottom: 18px; list-style: none;
}
.site-footer__links a { font-size: 18px; color: #86868b; }
.site-footer__links a:hover { color: #1d1d1f; }
.site-footer__copy { font-size: 18px; color: #aeaeb2; }

/* WA FLOATING */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* 404 */
.page-404 { text-align: center; padding: 80px 24px; }
.page-404 h1 { font-size: 96px; font-weight: 900; color: #d2d2d7; }
.page-404 p { font-size: 20px; color: #86868b; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .site-nav {
    padding: 0 20px;
    height: auto !important; min-height: auto !important;
  }
  .site-nav__logo { padding: 18px 0; }
  .site-nav__hamburger { display: flex; margin-left: auto; }
  .site-nav__menu {
    display: none !important; flex: none;
    width: 100%; order: 3;
    flex-direction: column; align-items: stretch;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 8px 0 12px;
  }
  .site-nav__menu.open { display: flex !important; }
  .site-nav__menu li a {
    padding: 14px 20px; display: block;
  }
  .site-main { padding: 100px 20px 40px; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
}
