/* =============================================
   CoworkGuru.com — Main Stylesheet
   ============================================= */

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

:root {
  --primary:     #6B46C1;
  --primary-dark:#553C9A;
  --primary-light:#9F7AEA;
  --accent:      #38B2AC;
  --accent-dark: #2C7A7B;
  --bg:          #F7F8FC;
  --bg-white:    #FFFFFF;
  --text:        #1A202C;
  --text-mid:    #4A5568;
  --text-light:  #718096;
  --border:      #E2E8F0;
  --shadow:      0 4px 20px rgba(107,70,193,0.10);
  --shadow-lg:   0 8px 40px rgba(107,70,193,0.15);
  --radius:      12px;
  --radius-lg:   20px;
  --nav-height:  70px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--text-mid); }

/* --- Utility --- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.text-center { text-align: center; }
.badge {
  display: inline-block; padding: 4px 14px; border-radius: 99px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
.badge-purple { background: #EDE9FE; color: var(--primary); }
.badge-teal   { background: #E6FFFA; color: var(--accent-dark); }
.badge-new    { background: #FEF3C7; color: #92400E; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 9px; font-weight: 600;
  font-size: 0.97rem; cursor: pointer; transition: all 0.22s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary); color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(107,70,193,0.35); }
.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-white {
  background: #fff; color: var(--primary);
}
.btn-white:hover { background: #EDE9FE; transform: translateY(-2px); }

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  display: flex; align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.35rem; font-weight: 800; color: var(--primary);
}
.nav-logo span { color: var(--accent); }
.nav-logo .logo-icon {
  width: 36px; height: 36px; background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; font-weight: 900; flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; color: var(--text-mid);
  font-weight: 500; font-size: 0.95rem; transition: all 0.18s;
}
.nav-links a:hover, .nav-links a.active {
  background: #EDE9FE; color: var(--primary);
}
.nav-cta { margin-left: 10px; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; border: none; background: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all 0.3s;
}
.mobile-menu {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--border); z-index: 999;
  padding: 20px 24px; flex-direction: column; gap: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px; border-radius: 8px; color: var(--text-mid);
  font-weight: 500; font-size: 1rem;
}
.mobile-menu a:hover { background: #EDE9FE; color: var(--primary); }

/* =============================================
   ADSENSE SLOTS
   ============================================= */
.ad-slot {
  background: #F1F5F9;
  border: 2px dashed #CBD5E0;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--text-light);
  font-size: 0.85rem; font-weight: 500;
  position: relative; overflow: hidden;
}
.ad-slot::before {
  content: 'Advertisement';
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: #A0AEC0;
}
.ad-leaderboard  { width: 100%; height: 90px; }
.ad-rectangle    { width: 300px; height: 250px; margin: 0 auto; }
.ad-wide         { width: 100%; height: 120px; }
.ad-sidebar      { width: 100%; min-height: 250px; }

.ad-container { margin: 32px 0; }
.ad-container-center { display: flex; justify-content: center; margin: 32px 0; }

/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(135deg, #3B1F8C 0%, #6B46C1 40%, #2C7A7B 100%);
  padding: 100px 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(56,178,172,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-badge { margin-bottom: 20px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 span { color: #9DECF9; }
.hero p { color: rgba(255,255,255,0.82); font-size: 1.18rem; margin-bottom: 36px; max-width: 580px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.hero-stat { }
.hero-stat strong { display: block; color: #fff; font-size: 1.9rem; font-weight: 800; }
.hero-stat span { color: rgba(255,255,255,0.65); font-size: 0.88rem; }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--bg-white); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  border: 1px solid var(--border); transition: all 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
}
.card-icon.purple { background: #EDE9FE; }
.card-icon.teal   { background: #E6FFFA; }
.card-icon.blue   { background: #EBF8FF; }
.card-icon.orange { background: #FFFAF0; }
.card-icon.green  { background: #F0FFF4; }
.card-icon.pink   { background: #FFF5F7; }
.card h3 { margin-bottom: 10px; }
.card p  { font-size: 0.95rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header { margin-bottom: 52px; }
.section-header .badge { margin-bottom: 12px; }
.section-header p { max-width: 560px; font-size: 1.05rem; margin-top: 12px; }
.section-header.centered p { margin: 12px auto 0; }

/* =============================================
   STEPS / HOW IT WORKS
   ============================================= */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; }
.step { text-align: center; padding: 24px 20px; position: relative; }
.step:not(:last-child)::after {
  content: '→';
  position: absolute; right: -12px; top: 32px;
  font-size: 1.5rem; color: var(--primary-light);
}
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 1.25rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h4 { margin-bottom: 8px; }
.step p   { font-size: 0.9rem; }

/* =============================================
   CALLOUT / HIGHLIGHT BOX
   ============================================= */
.callout {
  background: linear-gradient(135deg, #EDE9FE 0%, #E6FFFA 100%);
  border-left: 4px solid var(--primary); border-radius: var(--radius);
  padding: 24px 28px; margin: 32px 0;
}
.callout.warning { background: #FFFBEB; border-color: #F59E0B; }
.callout.success { background: #F0FFF4; border-color: #38A169; }
.callout h4 { margin-bottom: 8px; font-size: 1rem; }
.callout p  { font-size: 0.95rem; margin: 0; }

/* =============================================
   FAQ
   ============================================= */
.faq-item {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  padding: 20px 24px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 1rem; color: var(--text);
  transition: background 0.18s;
}
.faq-question:hover { background: #F7F8FC; }
.faq-icon { font-size: 1.2rem; color: var(--primary); transition: transform 0.3s; flex-shrink: 0; }
.faq-answer {
  display: none; padding: 0 24px 20px; color: var(--text-mid); font-size: 0.97rem; line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon   { transform: rotate(45deg); }

/* =============================================
   BLOG / TIPS CARDS
   ============================================= */
.post-card {
  background: var(--bg-white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-thumb {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}
.post-body { padding: 22px; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.post-meta span { font-size: 0.82rem; color: var(--text-light); }
.post-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--primary); }
.post-card p  { font-size: 0.92rem; }
.post-card .read-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 0.9rem;
  margin-top: 14px;
}
.post-card .read-more:hover { gap: 10px; }

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
  border-radius: var(--radius-lg); padding: 64px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 250px; height: 250px;
  background: rgba(255,255,255,0.06); border-radius: 50%;
}
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p  { color: rgba(255,255,255,0.8); font-size: 1.08rem; margin-bottom: 30px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* =============================================
   TABLE
   ============================================= */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--bg-white); }
thead th {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; padding: 14px 18px; font-weight: 600; text-align: left; font-size: 0.92rem;
}
tbody td { padding: 13px 18px; border-bottom: 1px solid var(--border); font-size: 0.94rem; color: var(--text-mid); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #F7F8FC; }
.check   { color: #38A169; font-weight: 700; }
.cross   { color: #E53E3E; font-weight: 700; }

/* =============================================
   BREADCRUMBS
   ============================================= */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 0; font-size: 0.88rem; color: var(--text-light);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span.sep { color: var(--border); }

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, #3B1F8C 0%, #6B46C1 100%);
  padding: 60px 0 50px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
  background: var(--bg); clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 560px; }

/* =============================================
   SIDEBAR LAYOUT
   ============================================= */
.layout-sidebar {
  display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start;
}
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.sidebar-widget h4 { margin-bottom: 14px; font-size: 1rem; border-bottom: 2px solid var(--primary); padding-bottom: 8px; display: inline-block; }
.sidebar-widget ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sidebar-widget ul li a {
  color: var(--text-mid); font-size: 0.92rem; display: flex; align-items: center; gap: 6px;
}
.sidebar-widget ul li a:hover { color: var(--primary); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #1A202C; color: #A0AEC0; padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px;
}
.footer-brand .nav-logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h5 {
  color: #fff; font-size: 0.92rem; font-weight: 700;
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: #A0AEC0; font-size: 0.9rem; transition: color 0.18s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #2D3748; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: gap;
  font-size: 0.85rem;
}
.footer-bottom a { color: #A0AEC0; }
.footer-bottom a:hover { color: #fff; }
.footer-disclaimer {
  background: #2D3748; border-radius: 8px; padding: 14px 18px;
  font-size: 0.82rem; line-height: 1.6; margin-bottom: 24px;
}

/* =============================================
   CONTENT STYLES (article body)
   ============================================= */
.content h2 { margin: 36px 0 16px; }
.content h3 { margin: 28px 0 12px; }
.content p  { margin-bottom: 18px; }
.content ul, .content ol {
  margin: 16px 0 20px 24px; display: flex; flex-direction: column; gap: 8px;
}
.content li { color: var(--text-mid); font-size: 0.97rem; }
.content code {
  background: #EDE9FE; color: var(--primary-dark);
  padding: 2px 7px; border-radius: 4px; font-size: 0.88em;
}
.content pre {
  background: #1A202C; color: #E2E8F0; padding: 20px 24px;
  border-radius: var(--radius); overflow-x: auto; margin: 20px 0;
  font-size: 0.88rem; line-height: 1.6;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .layout-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 60px; }
  .hero-stats { gap: 24px; }
  .section { padding: 56px 0; }
  .cta-banner { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { content: '↓'; right: auto; top: auto; bottom: -18px; left: 50%; transform: translateX(-50%); }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .ad-leaderboard { height: 60px; }
}
