/* Rediafile Help Center - Shared Styles */
:root {
  --rf-red: #e63946;
  --rf-red-dark: #c1121f;
  --rf-orange: #f4a261;
  --rf-bg: #fafafa;
  --rf-white: #ffffff;
  --rf-text: #1a1a2e;
  --rf-text-secondary: #4a4a5a;
  --rf-text-muted: #8a8a9a;
  --rf-border: #e5e5ea;
  --rf-border-light: #f0f0f5;
  --rf-sidebar-bg: #f8f9fa;
  --rf-sidebar-active: #fff0f1;
  --rf-sidebar-active-border: #e63946;
  --rf-code-bg: #f4f4f8;
  --rf-success: #2a9d8f;
  --rf-warning: #e9c46a;
  --rf-danger: #e63946;
  --rf-info: #457b9d;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --radius: 10px;
  --radius-sm: 6px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--rf-text);
  background: var(--rf-bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rf-red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.rf-header {
  background: var(--rf-white);
  border-bottom: 1px solid var(--rf-border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.rf-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--rf-text);
}

.rf-logo svg { width: 28px; height: 28px; }

.rf-logo span { color: var(--rf-red); }

.rf-header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rf-header-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--rf-text-secondary);
  transition: all 0.15s ease;
}

.rf-header-nav a:hover {
  background: var(--rf-border-light);
  color: var(--rf-text);
  text-decoration: none;
}

.rf-header-nav a.active {
  background: var(--rf-sidebar-active);
  color: var(--rf-red);
}

.rf-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rf-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--rf-border);
  background: var(--rf-white);
  color: var(--rf-text);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.rf-btn:hover { background: var(--rf-border-light); }

.rf-btn-primary {
  background: var(--rf-red);
  color: var(--rf-white);
  border-color: var(--rf-red);
}

.rf-btn-primary:hover { background: var(--rf-red-dark); }

/* Layout */
.rf-layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 64px);
}

/* Sidebar */
.rf-sidebar {
  width: 280px;
  background: var(--rf-sidebar-bg);
  border-right: 1px solid var(--rf-border);
  padding: 24px 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  flex-shrink: 0;
}

.rf-sidebar-search {
  padding: 0 16px 16px;
}

.rf-sidebar-search input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--rf-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--rf-white);
  font-family: inherit;
  outline: none;
}

.rf-sidebar-search input:focus { border-color: var(--rf-red); }

.rf-sidebar-search-wrap { position: relative; }

.rf-sidebar-search-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--rf-text-muted);
}

.rf-sidebar-section {
  margin-bottom: 8px;
}

.rf-sidebar-section-title {
  padding: 8px 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--rf-text-muted);
}

.rf-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  font-size: 14px;
  color: var(--rf-text-secondary);
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.rf-sidebar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.rf-sidebar-link:hover {
  background: var(--rf-border-light);
  color: var(--rf-text);
  text-decoration: none;
}

.rf-sidebar-link.active {
  background: var(--rf-sidebar-active);
  color: var(--rf-red);
  border-left-color: var(--rf-sidebar-active-border);
  font-weight: 500;
}

.rf-sidebar-link.active svg { opacity: 1; color: var(--rf-red); }

/* Content */
.rf-content {
  flex: 1;
  padding: 40px 48px;
  max-width: 900px;
}

.rf-breadcrumb {
  font-size: 13px;
  color: var(--rf-text-muted);
  margin-bottom: 20px;
}

.rf-breadcrumb a { color: var(--rf-text-muted); }
.rf-breadcrumb a:hover { color: var(--rf-red); }

.rf-page-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.rf-page-subtitle {
  font-size: 17px;
  color: var(--rf-text-secondary);
  margin-bottom: 32px;
  line-height: 1.5;
}

.rf-section {
  margin-bottom: 40px;
}

.rf-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rf-border);
}

.rf-section h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 12px;
}

.rf-section p {
  color: var(--rf-text-secondary);
  margin-bottom: 12px;
}

.rf-section ul, .rf-section ol {
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--rf-text-secondary);
}

.rf-section li { margin-bottom: 6px; }

.rf-section code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--rf-code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--rf-red-dark);
}

.rf-section pre {
  background: #1a1a2e;
  color: #e4e4e8;
  padding: 16px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0 20px;
}

.rf-section pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Cards */
.rf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.rf-card {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.rf-card:hover {
  border-color: var(--rf-red);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.rf-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  color: var(--rf-red);
}

.rf-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.rf-card p {
  font-size: 14px;
  color: var(--rf-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Steps */
.rf-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.rf-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rf-red);
  color: var(--rf-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.rf-step-body h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
}

.rf-step-body p {
  font-size: 14px;
  color: var(--rf-text-secondary);
  margin: 0;
}

/* Tables */
.rf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0;
  background: var(--rf-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.rf-table th, .rf-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rf-border);
}

.rf-table th {
  font-weight: 600;
  color: var(--rf-text);
  background: var(--rf-border-light);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.rf-table td { color: var(--rf-text-secondary); }

.rf-table tr:last-child td { border-bottom: none; }

/* Tags */
.rf-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 6px;
}

.rf-tag-green { background: #e8f5e9; color: #2a9d8f; }
.rf-tag-blue { background: #e3f2fd; color: #457b9d; }
.rf-tag-orange { background: #fff3e0; color: #e9c46a; }
.rf-tag-red { background: #ffebee; color: #e63946; }

/* Alerts */
.rf-alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: 16px 0;
  font-size: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid transparent;
}

.rf-alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }

.rf-alert-info {
  background: #f0f7ff;
  border-color: #d0e3f7;
  color: var(--rf-info);
}

.rf-alert-warn {
  background: #fffbf0;
  border-color: #f5e6c8;
  color: #b8860b;
}

.rf-alert-danger {
  background: #fff5f5;
  border-color: #f5d0d0;
  color: var(--rf-danger);
}

/* FAQ */
.rf-faq-item {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.rf-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.rf-faq-q:hover { background: var(--rf-border-light); }

.rf-faq-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rf-text-muted);
  transition: transform 0.2s ease;
}

.rf-faq-item.open .rf-faq-toggle { transform: rotate(45deg); }

.rf-faq-a {
  font-size: 14px;
  color: var(--rf-text-secondary);
  line-height: 1.7;
  padding: 0 20px 16px;
  display: none;
}

.rf-faq-item.open .rf-faq-a { display: block; }

/* CTA */
.rf-cta {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Footer */
.rf-footer {
  margin-top: 60px;
  padding: 24px 0;
  border-top: 1px solid var(--rf-border);
  font-size: 13px;
  color: var(--rf-text-muted);
  text-align: center;
}

.rf-footer a { color: var(--rf-text-muted); margin: 0 8px; }
.rf-footer a:hover { color: var(--rf-red); }

/* Mobile */
@media (max-width: 900px) {
  .rf-sidebar { display: none; }
  .rf-content { padding: 24px; max-width: 100%; }
  .rf-header-nav { display: none; }
  .rf-page-title { font-size: 28px; }
}

/* Hero home */
.rf-hero {
  text-align: center;
  padding: 40px 0 32px;
}

.rf-hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.rf-hero p {
  font-size: 18px;
  color: var(--rf-text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
}

.rf-hero-search {
  max-width: 560px;
  margin: 0 auto 40px;
  position: relative;
}

.rf-hero-search input {
  width: 100%;
  padding: 14px 18px 14px 48px;
  border: 2px solid var(--rf-border);
  border-radius: var(--radius);
  font-size: 16px;
  background: var(--rf-white);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.rf-hero-search input:focus { border-color: var(--rf-red); }

.rf-hero-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--rf-text-muted);
}

/* Quick links */
.rf-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
