@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Reset and Global styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  line-height: 1.6;
}

/* Header / Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border-bottom: 1px solid #eaeef5;
}

.logo {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #0f172a;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #0f172a;
}

/* Layout container */
.page-container {
  display: flex;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
  gap: 32px;
}

.main-content {
  flex: 1;
  min-width: 0; /* Prevents overflow in flex items */
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 40px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.sidebar {
  width: 360px;
  flex-shrink: 0;
}

/* Sidebar Widget */
.sidebar-widget {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: 40px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.widget-header {
  margin-bottom: 20px;
}

.widget-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #f59e0b;
  background: #fffbeb;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.widget-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.widget-header p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* Word App Window Mockup */
.word-window-mock {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  background: #f1f5f9;
}

.word-titlebar {
  background: #0078d4; /* Microsoft Word Blue */
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

.window-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.window-dot.red { background: #ef4444; }
.window-dot.yellow { background: #f59e0b; }
.window-dot.green { background: #10b981; }

.word-filename {
  font-size: 10px;
  font-weight: 500;
  margin-left: 8px;
  font-family: system-ui, -apple-system, sans-serif;
  opacity: 0.9;
}

.word-body {
  display: flex;
  height: 280px;
  background: #fff;
}

.word-doc-area {
  flex: 1;
  padding: 12px;
  background: #f8fafc;
  border-right: 1px solid #cbd5e1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doc-text-mock {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.line-mock {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  width: 100%;
}
.line-mock.short { width: 60%; }
.line-mock.medium { width: 85%; }
.line-mock.highlighted-yellow {
  background: #fef08a; /* Yellow highlighter */
  animation: pulse-highlight 2s infinite;
}

@keyframes pulse-highlight {
  0%, 100% { background: #fef08a; }
  50% { background: #fde047; }
}

.word-taskpane-area {
  width: 140px;
  height: 100%;
  background: #fff;
}

.taskpane-iframe {
  width: 100%;
  height: 100%;
  border: none;
  transform: scale(0.9);
  transform-origin: top left;
  width: 111%; /* Adjust for scale */
  height: 111%;
}

.widget-actions .btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s;
}

.widget-actions .btn:hover {
  background: #1e293b;
}

.widget-note {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  text-align: center;
  margin-top: 12px;
}

/* Footer styling */
.footer {
  max-width: 1200px;
  margin: 60px auto 40px;
  padding: 32px 24px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  background: #fff;
  border-radius: 16px;
}

.footer p {
  font-size: 11px;
  color: #94a3b8;
}

/* Article Styling inside .main-content */
.main-content h1 {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 12px;
}

.main-content .meta {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.main-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 32px 0 16px;
}

.main-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 24px 0 12px;
}

.main-content p {
  font-size: 15px;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 20px;
}

.main-content ul, .main-content ol {
  margin: 16px 0 24px 24px;
}

.main-content li {
  font-size: 15px;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 8px;
}

.main-content blockquote {
  border-left: 4px solid #f59e0b;
  padding: 16px 20px;
  margin: 24px 0;
  background: #fffbeb;
  font-size: 14px;
  color: #92400e;
  border-radius: 0 8px 8px 0;
}

/* Responsive breakpoint */
@media (max-width: 1024px) {
  .page-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
  }
  
  .sidebar-widget {
    position: static;
  }
  
  .word-window-mock {
    max-width: 480px;
    margin: 0 auto 20px;
  }
}
