/* ============================================================
   masli.css — Masli Yahaya Profile Page
   Extracted from index.php on 2026-06-27 02:28
   ============================================================ */

/* ---------- CSS Variables & Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light Mode */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --accent-cyan: #00f5ff;
  --accent-blue: #0066ff;
  --accent-purple: #8b5cf6;
  --accent-pink: #ff6b9d;
  --glow-cyan: 0 0 40px rgba(0, 245, 255, 0.3);
  --glow-blue: 0 0 40px rgba(0, 102, 255, 0.3);
  --border-glass: rgba(255, 255, 255, 0.08);
  --gradient-1: linear-gradient(135deg, #00f5ff 0%, #0066ff 100%);
  --gradient-2: linear-gradient(135deg, #8b5cf6 0%, #ff6b9d 100%);
}

[data-theme="day"],
[data-theme="light"] {
  --bg-primary: #FAFAF8;
  --bg-secondary: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.82);
  --text-primary: #1A1A1E;
  --text-secondary: #5C5C66;
  --accent-cyan: #5EC4B6;
  --accent-blue: #6B9FD4;
  --accent-purple: #C4B5E8;
  --border-glass: rgba(0, 0, 0, 0.06);
  --gradient-1: linear-gradient(135deg, #C4B5E8 0%, #5EC4B6 100%);
  --gradient-2: linear-gradient(135deg, #E8A87C 0%, #9BB5CE 100%);
  --glow-cyan: 0 8px 32px rgba(155, 181, 206, 0.18);
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  min-height: 100vh;
}

[data-retro="true"] {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --accent-cyan: #58a6ff;
  --accent-blue: #1f6feb;
  --accent-purple: #a371f7;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
}

[data-theme="night"],
[data-theme="dark"] {
  --bg-primary: #12141A;
  --bg-secondary: #1A1D26;
  --bg-card: rgba(26, 28, 36, 0.82);
  --text-primary: #E8E8ED;
  --text-secondary: #A8A8B3;
  --accent-cyan: #7EC8BE;
  --accent-blue: #7A9FD4;
  --accent-purple: #9B8EC4;
  --accent-pink: #C9A07A;
  --glow-cyan: 0 0 36px rgba(126, 200, 190, 0.22);
  --border-glass: rgba(255, 255, 255, 0.08);
  --gradient-1: linear-gradient(135deg, #9B8EC4 0%, #7EC8BE 100%);
  --gradient-2: linear-gradient(135deg, #C9A07A 0%, #7A9FD4 100%);
}

[data-theme="night"] .article-card,
[data-theme="night"] .stat-card,
[data-theme="night"] .edu-card,
[data-theme="night"] .skill-tag,
[data-theme="night"] .tech-icon {
  background: var(--bg-card);
  border-color: var(--border-glass);
  color: var(--text-primary);
}

/* ---------- Container & Navigation ---------- */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.back {
  display: inline-block;
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 20px;
  transition: opacity 0.3s ease;
}
.back:hover {
  opacity: 0.8;
}

.edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
}
.edit-btn:hover {
  background: var(--gradient-1);
  color: #fff;
  border-color: transparent;
}

/* ---------- Article Page ---------- */
.article-header {
  margin-bottom: 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.article-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 0;
}

.article-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--border-glass);
}

.article-byline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.article-byline a {
  color: var(--accent-cyan);
  text-decoration: none;
}
.article-byline a:hover {
  text-decoration: underline;
}

.article-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 40px;
}
.article-content p {
  margin-bottom: 1.2em;
}
.article-content strong {
  color: var(--accent-cyan);
}
.article-content a {
  color: var(--accent-blue);
  text-decoration: underline;
}
.article-content a:hover {
  color: var(--accent-cyan);
}

/* ---------- Masli Summary Box ---------- */
.masli-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}
.masli-summary-box h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.masli-summary-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.masli-summary-photo {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}
.masli-summary-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.masli-summary-text {
  flex: 1;
  min-width: 0;
}
.masli-summary-text p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.masli-summary-text a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.masli-summary-text a:hover {
  text-decoration: underline;
}

/* ---------- Share Section ---------- */
.share-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}
.share-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  transition: all 0.3s ease;
  text-decoration: none;
}
.share-btn svg {
  width: 18px;
  height: 18px;
}
.share-btn:hover {
  transform: translateY(-2px);
  border-color: transparent;
}
.share-fb:hover {
  background: #1877f2;
  color: #fff;
}
.share-x:hover {
  background: #000;
  color: #fff;
}
.share-linkedin:hover {
  background: #0a66c2;
  color: #fff;
}
.share-wa:hover {
  background: #25d366;
  color: #fff;
}
.share-copy:hover {
  background: var(--accent-cyan);
  color: #0a0a0f;
}
.share-copy.copied {
  background: #22c55e;
  color: #fff;
  border-color: transparent;
}

/* ---------- Image Modal ---------- */
.img-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2147483646;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}
.img-modal.active {
  display: flex;
}
.img-modal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

/* ---------- Video Wrapper ---------- */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-bottom: 24px;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }
  .article-title {
    font-size: 24px;
  }
  .article-content {
    font-size: 15px;
    line-height: 1.7;
  }
  .masli-summary-inner {
    flex-direction: column;
  }
  .masli-summary-photo {
    width: 100%;
    height: auto;
    max-width: 200px;
  }
  .share-buttons {
    gap: 8px;
  }
  .share-btn {
    width: 36px;
    height: 36px;
  }
  .share-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* ---------- Theme Toggle Button ---------- */
.theme-toggle-masli {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 2147483640;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--glow-cyan);
  transition: all 0.3s ease;
}

[data-theme="night"] .theme-toggle-masli {
  border-color: rgba(184, 134, 11, 0.3);
  box-shadow: 0 0 20px rgba(184, 134, 11, 0.4);
}

[data-theme="night"] .theme-toggle-masli:hover {
  background: linear-gradient(135deg, #b8860b 0%, #d4af37 100%);
  border-color: transparent;
  transform: scale(1.08) rotate(15deg);
  box-shadow: 0 0 30px rgba(184, 134, 11, 0.6);
}

.theme-toggle-masli:hover {
  background: var(--gradient-1);
  border-color: transparent;
  transform: scale(1.08) rotate(15deg);
  color: #fff;
}

/* ---------- Compose Page Styles ---------- */
.compose-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
}
.compose-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 100px;
}
.compose-header {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compose-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.compose-back:hover { color: var(--accent-cyan); }
.compose-header h1 {
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}
.compose-alert {
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
}
.compose-alert--error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.compose-alert--success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}
.compose-alert--success a { color: var(--accent-cyan); font-weight: 600; }
.compose-form { display: flex; flex-direction: column; gap: 24px; }
.compose-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.compose-field input[type="text"],
.compose-field input[type="url"] {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: border 0.3s;
}
.compose-field input:focus { border-color: var(--accent-cyan); }
.compose-field input[type="file"] { width: 100%; padding: 10px; color: var(--text-secondary); }
.compose-hint { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }
.compose-current-img img { border-radius: 8px; margin-top: 8px; max-width: 200px; }
.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px 12px 0 0;
  border-bottom: none;
}
.wysiwyg-toolbar button {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}
.wysiwyg-toolbar button:hover {
  background: var(--border-glass);
  color: var(--text-primary);
}
.wysiwyg-editor {
  width: 100%;
  min-height: 400px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 0 0 12px 12px;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.7;
  outline: none;
  overflow-y: auto;
  font-family: 'Inter', sans-serif;
}
.wysiwyg-editor:focus { border-color: var(--accent-cyan); }
.wysiwyg-editor img { max-width: 100%; border-radius: 12px; margin: 12px 0; }
.compose-actions { display: flex; gap: 12px; align-items: center; }
.compose-cancel {
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.compose-cancel:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.compose-submit {
  padding: 12px 32px;
  background: var(--gradient-1);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--glow-cyan);
}
.compose-submit:hover { transform: scale(1.03); box-shadow: 0 0 40px rgba(0,245,255,0.5); }
.compose-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.compose-delete {
  padding: 12px 24px;
  background: #ef4444;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-left: auto;
}
.compose-delete:hover { background: #dc2626; }
.compose-password-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2147483647;
  align-items: center; justify-content: center;
  backdrop-filter: blur(5px);
}
.compose-password-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 90vw;
}
.compose-password-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.compose-password-box input {
  width: 100%;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  text-align: center;
  outline: none;
}
.compose-password-box input:focus { border-color: var(--accent-cyan); }
.compose-password-box button {
  margin-top: 16px;
  padding: 12px 40px;
  background: var(--gradient-1);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
[data-theme="light"] .compose-submit { color: #fff; }
@media (max-width: 768px) {
  .compose-header h1 { font-size: 24px; }
  .wysiwyg-editor { min-height: 280px; }
  .compose-actions { flex-wrap: wrap; }
  .compose-delete { margin-left: 0; }
}

/* Hero image pan + zoom */
.hero-bg,
.hero-avatar,
.avatar {
  overflow: hidden;
}
.hero-bg img {
  animation: MasliHeroBgPanZoom 24s ease-in-out infinite alternate;
  transform-origin: center;
  will-change: transform;
}
.hero-avatar img,
.avatar img,
.avatar-img {
  animation: MasliHeroPortraitPanZoom 16s ease-in-out infinite alternate;
  transform-origin: center;
  will-change: transform;
}
@keyframes MasliHeroBgPanZoom {
  0% { transform: scale(1) translate3d(0,0,0); }
  50% { transform: scale(1.10) translate3d(-1.5%, 1%, 0); }
  100% { transform: scale(1.16) translate3d(1.5%, -1%, 0); }
}
@keyframes MasliHeroPortraitPanZoom {
  0% { transform: scale(1) translate3d(0,0,0); }
  100% { transform: scale(1.08) translate3d(0,-1.5%,0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg img,
  .hero-avatar img,
  .avatar img,
  .avatar-img { animation: none !important; transform: none !important; }
}

/* ========== HERO ARTICLES SECTION ========== */
.hero-articles {
  padding: 60px 0;
  position: relative;
  z-index: 2;
}

.hero-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Mobile: 1 article only */
@media (max-width: 768px) {
  .hero-articles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .hero-articles {
    padding: 40px 0;
  }
}

