/* LoopMe Malaysia - Main Stylesheet */
/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; background: #1a1a1a; color: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: #e91e63; text-decoration: none; transition: color 0.2s; }
a:hover { color: #ff5252; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Header */
.site-header { background: linear-gradient(135deg, #e91e63, #ff1744, #d50000); padding: 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.header-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; max-width: 1200px; margin: 0 auto; }
.logo { display: flex; align-items: center; }
.logo a { color: #fff; font-family: 'Georgia', serif; font-size: 2rem; font-weight: bold; font-style: italic; letter-spacing: -1px; }
.logo a span { font-weight: 300; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: #fff; font-size: 0.9rem; font-weight: 500; padding: 6px 12px; border-radius: 4px; transition: background 0.2s; }
.nav-links a:hover { background: rgba(255,255,255,0.15); color: #fff; }
.nav-links .btn-join { background: #fff; color: #e91e63; font-weight: 700; padding: 6px 18px; border-radius: 20px; }
.nav-links .btn-join:hover { background: #f5f5f5; }
.search-box { display: flex; align-items: center; background: rgba(255,255,255,0.2); border-radius: 20px; padding: 4px 12px; }
.search-box input { background: transparent; border: none; color: #fff; font-size: 0.85rem; padding: 4px 8px; outline: none; width: 150px; }
.search-box input::placeholder { color: rgba(255,255,255,0.7); }
.search-box button { background: none; border: none; color: #fff; cursor: pointer; font-size: 1rem; }

/* Mobile Nav Toggle */
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Hero / Banner */
.hero-banner { background: linear-gradient(135deg, #e91e63, #ff1744); padding: 40px 20px; text-align: center; }
.hero-banner h1 { font-size: 1.8rem; color: #fff; margin-bottom: 10px; }
.hero-banner p { color: rgba(255,255,255,0.9); font-size: 1rem; max-width: 700px; margin: 0 auto; }
.hero-tagline { background: #222; padding: 15px 20px; text-align: center; border-bottom: 3px solid #e91e63; }
.hero-tagline p { color: #fff; font-size: 0.95rem; }
.hero-tagline span { color: #e91e63; font-weight: 700; }

/* Section Titles */
.section-title { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #e91e63; display: inline-block; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.view-all { color: #e91e63; font-size: 0.9rem; font-weight: 600; padding: 6px 16px; border: 1px solid #e91e63; border-radius: 20px; transition: all 0.2s; }
.view-all:hover { background: #e91e63; color: #fff; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 40px 0; }

/* Card Grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: #2a2a2a; border-radius: 8px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.card-image { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 15px; }
.card-brand { color: #e91e63; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; margin-bottom: 5px; }
.card-title { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 8px; line-height: 1.4; }
.card-meta { font-size: 0.8rem; color: #888; }
.card-tag { display: inline-block; background: #e91e63; color: #fff; font-size: 0.7rem; padding: 2px 8px; border-radius: 3px; margin-right: 5px; margin-bottom: 5px; }

/* Featured Slider */
.featured-section { background: #111; padding: 30px 0; }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.featured-item { position: relative; border-radius: 8px; overflow: hidden; height: 300px; }
.featured-item img { width: 100%; height: 100%; object-fit: cover; }
.featured-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); padding: 20px 15px 15px; }
.featured-overlay .brand { color: #e91e63; font-size: 0.8rem; font-weight: 600; }
.featured-overlay .title { color: #fff; font-size: 0.95rem; font-weight: 600; margin-top: 4px; }
.featured-overlay .date { color: #aaa; font-size: 0.75rem; margin-top: 4px; }

/* LIVE Feed */
.live-feed { background: #1e1e1e; border-radius: 8px; padding: 20px; }
.live-feed-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.live-badge { background: #e91e63; color: #fff; font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 3px; text-transform: uppercase; }
.live-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #333; }
.live-item:last-child { border-bottom: none; }
.live-time { color: #888; font-size: 0.75rem; white-space: nowrap; min-width: 60px; }
.live-content { flex: 1; }
.live-content .brand { color: #e91e63; font-weight: 600; font-size: 0.85rem; }
.live-content .text { color: #ccc; font-size: 0.85rem; margin-top: 2px; }

/* Post Detail Page */
.post-page { background: #1a1a1a; }
.post-container { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }
.post-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.post-content { padding-right: 20px; }
.post-brand-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.brand-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: #333; }
.brand-name { color: #fff; font-weight: 600; font-size: 1rem; }
.btn-follow { background: #e91e63; color: #fff; border: none; padding: 4px 14px; border-radius: 15px; font-size: 0.8rem; cursor: pointer; }
.post-date { color: #e91e63; font-size: 0.85rem; margin-bottom: 10px; }
.post-status { color: #ff9800; font-size: 0.85rem; font-weight: 600; }
.post-archived-notice { background: rgba(233,30,99,0.1); border-left: 3px solid #e91e63; padding: 10px 15px; margin-bottom: 15px; color: #e91e63; font-size: 0.9rem; }
.post-title { font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 15px; line-height: 1.3; }
.post-tags { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.post-body { color: #ccc; font-size: 0.95rem; line-height: 1.8; }
.post-body p { margin-bottom: 15px; }
.post-body ul, .post-body ol { margin: 10px 0 15px 20px; }
.post-body li { margin-bottom: 8px; list-style: disc; }
.post-body strong { color: #fff; }
.post-image-main { border-radius: 8px; overflow: hidden; }
.post-image-main img { width: 100%; height: auto; }
.post-meta-info { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; padding-top: 15px; border-top: 1px solid #333; }
.meta-label { color: #888; font-size: 0.8rem; margin-bottom: 4px; }
.meta-value { color: #fff; font-size: 0.9rem; }
.meta-value a { color: #e91e63; }
.post-disclaimer { color: #666; font-size: 0.75rem; margin-top: 20px; font-style: italic; padding: 10px; background: #222; border-radius: 4px; }

/* LoopTalk Article */
.looptalk-page .post-layout { grid-template-columns: 1fr; max-width: 800px; margin: 0 auto; }
.looptalk-header { margin-bottom: 20px; }
.looptalk-label { display: inline-block; background: #e91e63; color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 3px; margin-right: 8px; }
.looptalk-category { display: inline-block; background: #333; color: #fff; font-size: 0.75rem; padding: 3px 10px; border-radius: 3px; }
.looptalk-meta { color: #888; font-size: 0.85rem; margin: 10px 0 20px; }
.looptalk-meta .author { color: #fff; font-weight: 600; }
.looptalk-hero { width: 100%; border-radius: 8px; margin-bottom: 25px; }
.looptalk-body { color: #ccc; font-size: 0.95rem; line-height: 1.8; }
.looptalk-body p { margin-bottom: 15px; }
.looptalk-body img { border-radius: 8px; margin: 15px 0; }
.looptalk-body ul, .looptalk-body ol { margin: 10px 0 15px 20px; }
.looptalk-body li { margin-bottom: 8px; list-style: disc; color: #ccc; }
.looptalk-body strong { color: #fff; }
.looptalk-body em { color: #bbb; }
.looptalk-brand-info { background: #222; padding: 20px; border-radius: 8px; margin-top: 30px; }
.looptalk-brand-info h3 { color: #e91e63; margin-bottom: 10px; }
.looptalk-brand-info ul { margin-left: 0; }
.looptalk-brand-info li { list-style: none; color: #ccc; margin-bottom: 5px; }

/* Live Post Page */
.live-post-page .post-layout { grid-template-columns: 1fr; max-width: 700px; margin: 0 auto; }
.live-post-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.live-post-content { background: #222; padding: 20px; border-radius: 8px; }
.live-post-content p { color: #ccc; margin-bottom: 10px; }
.live-post-image { border-radius: 8px; margin: 15px 0; }
.live-post-time { color: #888; font-size: 0.8rem; }

/* Related Posts */
.related-section { margin-top: 50px; padding-top: 30px; border-top: 1px solid #333; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; }
.related-card { background: #222; border-radius: 8px; overflow: hidden; transition: transform 0.2s; }
.related-card:hover { transform: translateY(-3px); }
.related-card img { width: 100%; height: 160px; object-fit: cover; }
.related-card-body { padding: 12px; }
.related-card-body .type { color: #e91e63; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.related-card-body .cat { color: #888; font-size: 0.7rem; text-transform: uppercase; }
.related-card-body h4 { color: #fff; font-size: 0.9rem; margin: 5px 0; line-height: 1.3; }
.related-card-body .author { color: #888; font-size: 0.75rem; }

/* Footer */
.site-footer { background: #111; padding: 40px 20px 20px; margin-top: 40px; border-top: 3px solid #e91e63; }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
.footer-section h3 { color: #e91e63; font-size: 1rem; margin-bottom: 15px; }
.footer-section a { display: block; color: #888; font-size: 0.85rem; margin-bottom: 8px; transition: color 0.2s; }
.footer-section a:hover { color: #e91e63; }
.footer-logo { font-family: 'Georgia', serif; font-size: 1.5rem; font-style: italic; color: #fff; margin-bottom: 10px; }
.footer-copyright { color: #555; font-size: 0.8rem; margin-top: 5px; }
.footer-bottom { max-width: 1200px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid #333; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #888; font-size: 0.8rem; margin-right: 15px; }
.footer-bottom a:hover { color: #e91e63; }

/* Breadcrumbs */
.breadcrumbs { padding: 10px 0; font-size: 0.8rem; color: #888; }
.breadcrumbs a { color: #e91e63; }
.breadcrumbs span { margin: 0 5px; }

/* Category Page */
.category-hero { background: linear-gradient(135deg, #e91e63, #ff1744); padding: 40px 20px; text-align: center; }
.category-hero h1 { color: #fff; font-size: 2rem; margin-bottom: 10px; }
.category-hero p { color: rgba(255,255,255,0.9); font-size: 1rem; }

/* About Page */
.about-content { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.about-content h1 { font-size: 2rem; color: #fff; margin-bottom: 20px; }
.about-content p { color: #ccc; margin-bottom: 15px; line-height: 1.8; }

/* Contact Page */
.contact-content { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.contact-content h1 { font-size: 2rem; color: #fff; margin-bottom: 20px; }
.contact-content p { color: #ccc; margin-bottom: 15px; }
.contact-form { margin-top: 20px; }
.contact-form label { display: block; color: #ccc; margin-bottom: 5px; font-size: 0.9rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px; background: #222; border: 1px solid #444; border-radius: 4px; color: #fff; margin-bottom: 15px; font-size: 0.9rem; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button { background: #e91e63; color: #fff; border: none; padding: 10px 30px; border-radius: 4px; font-size: 1rem; cursor: pointer; transition: background 0.2s; }
.contact-form button:hover { background: #c2185b; }

/* Responsive */
@media (max-width: 768px) {
  .header-top { flex-wrap: wrap; gap: 10px; }
  .nav-links { display: none; flex-direction: column; width: 100%; background: #c2185b; padding: 15px; border-radius: 8px; }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
  .search-box { width: 100%; order: 3; }
  .search-box input { width: 100%; }
  .post-layout { grid-template-columns: 1fr; }
  .post-image-main { order: -1; }
  .footer-content { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .hero-banner h1 { font-size: 1.4rem; }
  .post-title { font-size: 1.4rem; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .featured-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .post-meta-info { grid-template-columns: 1fr; }
}
