﻿/* ============================================================
   CLASSIC RED THEME - MALiK Platform
   Version: 1.0
   ============================================================ */

/* === CSS VARIABLES (customizable via admin) === */
:root {
  --primary: #E31E24;
  --primary-dark: #B71C1C;
  --primary-light: #FFEBEE;
  --primary-xlight: #FFF5F5;
  --secondary: #4A4A4A;
  --text: #333333;
  --text-muted: #757575;
  --bg: #F8F9FA;
  --bg-white: #FFFFFF;
  --bg-dark: #1a1a2e;
  --border: #E0E0E0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --font: 'Inter', -apple-system, system-ui, sans-serif;
  --transition: all 0.2s ease;
  --header-h: 64px;
  --sidebar-w: 260px;
}

/* BASE */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); margin: 0; padding: 0; font-size: 16px; line-height: 1.6; }
.container-fluid { width: 100%; padding: 0 24px; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-white);
  border-bottom: 3px solid var(--primary);
  height: var(--header-h);
  box-shadow: var(--shadow-sm);
}
.header-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; gap: 24px; }
.header-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.header-logo-icon { width: 38px; height: 38px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 16px; }
.header-logo-text { font-weight: 800; font-size: 18px; color: var(--secondary); letter-spacing: 1px; }
.header-logo-sub { font-size: 10px; color: var(--text-muted); display: block; line-height: 1; }
.header-nav { flex: 1; }
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { display: flex; align-items: center; gap: 5px; padding: 8px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--secondary); text-decoration: none; transition: var(--transition); }
.nav-menu > li > a:hover, .nav-menu > li.active > a { color: var(--primary); background: var(--primary-light); }
.dropdown-menu-custom { position: absolute; top: calc(100% + 4px); left: 0; min-width: 220px; background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: var(--transition); z-index: 100; }
.nav-menu > li:hover .dropdown-menu-custom { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu-custom a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--text); text-decoration: none; }
.dropdown-menu-custom a:hover { background: var(--primary-light); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-login { padding: 8px 18px; border: 2px solid var(--primary); color: var(--primary); border-radius: 8px; font-weight: 600; font-size: 14px; text-decoration: none; background: transparent; transition: var(--transition); display: inline-flex; align-items: center; }
.btn-login:hover { background: var(--primary); color: #fff; }
.btn-register { padding: 8px 18px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; transition: var(--transition); text-decoration: none; display: inline-flex; align-items: center; }
.btn-register:hover { background: var(--primary-dark); color: #fff; }

/* HERO */
.hero-section { width: 100%; background: linear-gradient(135deg, #0d1117 0%, #1a1a2e 50%, #0f3460 100%); padding: 80px 24px 72px; position: relative; overflow: hidden; }
.hero-section::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(227,30,36,0.15) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-section::after { content: ''; position: absolute; bottom: -80px; left: -60px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(227,30,36,0.08) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-inner { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(227,30,36,0.15); border: 1px solid rgba(227,30,36,0.3); color: #ff8a80; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 20px; letter-spacing: 0.5px; }
.hero-title { font-size: clamp(28px, 4vw, 52px); font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 20px; }
.hero-title span { color: var(--primary); }
.hero-desc { font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 32px; max-width: 520px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary { padding: 14px 28px; background: var(--primary); color: #fff; border: none; border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer; transition: var(--transition); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-hero-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(227,30,36,0.4); color: #fff; }
.btn-hero-outline { padding: 14px 28px; background: transparent; color: rgba(255,255,255,0.9); border: 2px solid rgba(255,255,255,0.25); border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer; transition: var(--transition); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-hero-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 28px; font-weight: 800; color: #fff; }
.hero-stat-num em { color: var(--primary); font-style: normal; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.hero-visual { position: relative; }
.hero-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 20px; backdrop-filter: blur(10px); }

/* STATS BAR */
.stats-bar { background: var(--bg-white); border-bottom: 1px solid var(--border); }
.stats-bar-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-bar-item { padding: 18px 24px; text-align: center; border-right: 1px solid var(--border); }
.stats-bar-item:last-child { border-right: none; }
.stats-bar-num { font-size: 22px; font-weight: 800; color: var(--primary); }
.stats-bar-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* SECTION */
.section { padding: 64px 24px; }
.section-inner { max-width: 1400px; margin: 0 auto; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; }
.section-title { font-size: 26px; font-weight: 800; color: var(--secondary); }
.section-title::after { content: ''; display: block; width: 48px; height: 4px; background: var(--primary); border-radius: 2px; margin-top: 8px; }
.section-subtitle { font-size: 15px; color: var(--text-muted); margin-top: 8px; }
.see-all-link { font-size: 14px; color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 4px; }
.see-all-link:hover { color: var(--primary-dark); }
.section-alt { background: var(--bg-white); }

/* FEATURE CARDS */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feature-card { background: var(--bg-white); border-radius: var(--radius-lg); padding: 28px 24px; border: 1px solid var(--border); transition: var(--transition); }
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon { width: 52px; height: 52px; background: var(--primary-light); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--primary); margin-bottom: 16px; }
.feature-title { font-size: 16px; font-weight: 700; color: var(--secondary); margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* CARDS */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.content-card { background: var(--bg-white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: var(--transition); }
.content-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-img { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-badge { position: absolute; top: 12px; left: 12px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; letter-spacing: 0.5px; }
.card-body { padding: 20px; }
.card-title { font-size: 16px; font-weight: 700; color: var(--secondary); line-height: 1.4; margin-bottom: 8px; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--primary); }
.card-meta { font-size: 13px; color: var(--text-muted); display: flex; gap: 12px; align-items: center; }
.card-meta i { font-size: 15px; }

/* JOB CARDS */
.job-card { background: var(--bg-white); border-radius: var(--radius); padding: 16px 20px; border: 1px solid var(--border); display: flex; align-items: center; gap: 16px; transition: var(--transition); margin-bottom: 12px; }
.job-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.job-company-logo { width: 44px; height: 44px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: var(--primary); flex-shrink: 0; overflow: hidden; }
.job-info { flex: 1; min-width: 0; }
.job-title { font-size: 15px; font-weight: 700; color: var(--secondary); margin-bottom: 4px; }
.job-company { font-size: 13px; color: var(--text-muted); }
.job-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.job-tag { font-size: 11px; padding: 3px 8px; border-radius: 5px; background: var(--bg); color: var(--text-muted); font-weight: 500; border: 1px solid var(--border); }
.job-tag.remote { background: #E8F5E9; color: #2E7D32; border-color: #C8E6C9; }
.job-tag.urgent { background: #FFF3E0; color: #E65100; border-color: #FFE0B2; }
.job-salary { font-size: 14px; font-weight: 700; color: var(--primary); white-space: nowrap; }

/* BUTTONS */
.btn-primary { background: var(--primary); color: #fff; border: none; padding: 10px 22px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); padding: 10px 22px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); padding: 9px 18px; border-radius: 8px; font-size: 14px; cursor: pointer; transition: var(--transition); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }

/* BADGES */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.3px; }
.badge-red { background: #FFEBEE; color: #C62828; }
.badge-blue { background: #E3F2FD; color: #1565C0; }
.badge-green { background: #E8F5E9; color: #2E7D32; }
.badge-yellow { background: #FFF8E1; color: #F57F17; }
.badge-purple { background: #F3E5F5; color: #6A1B9A; }
.badge-gray { background: #F5F5F5; color: #616161; }

/* FORM ELEMENTS */
.form-control { width: 100%; padding: 10px 14px; border: 2px solid var(--border); border-radius: 8px; font-size: 15px; font-family: var(--font); color: var(--text); background: var(--bg-white); transition: var(--transition); outline: none; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(227,30,36,0.1); }
.form-label { font-size: 14px; font-weight: 600; color: var(--secondary); margin-bottom: 6px; display: block; }
.form-group { margin-bottom: 20px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--primary); margin-top: 4px; }

/* FOOTER */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 60px 24px 32px; }
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 16px; }
.footer-logo-icon { width: 36px; height: 36px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 14px; }
.footer-logo-text { color: #fff; font-weight: 800; font-size: 17px; letter-spacing: 1px; }
.footer-desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; }
.footer-social-btn { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); font-size: 16px; transition: var(--transition); text-decoration: none; }
.footer-social-btn:hover { background: var(--primary); color: #fff; }
.footer-col-title { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.5px; text-transform: uppercase; }
.footer-link { display: block; color: rgba(255,255,255,0.5); font-size: 14px; text-decoration: none; margin-bottom: 8px; transition: var(--transition); }
.footer-link:hover { color: var(--primary); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-link { font-size: 13px; color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-bottom-link:hover { color: var(--primary); }

/* AI BANNER */
.ai-banner { background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%); border-radius: var(--radius-lg); padding: 48px; position: relative; overflow: hidden; }
.ai-banner::before { content: ''; position: absolute; top: -60px; right: -60px; width: 250px; height: 250px; background: radial-gradient(circle, rgba(227,30,36,0.2) 0%, transparent 70%); border-radius: 50%; }
.ai-banner-label { color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.ai-banner-title { color: #fff; font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.ai-banner-desc { color: rgba(255,255,255,0.6); font-size: 15px; line-height: 1.7; margin-bottom: 24px; max-width: 500px; }
.ai-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.ai-chip { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); font-size: 13px; padding: 5px 12px; border-radius: 20px; }

/* PAGINATION */
.pagination { display: flex; gap: 4px; align-items: center; justify-content: center; padding: 24px 0; }
.page-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-white); color: var(--text); font-size: 14px; cursor: pointer; transition: var(--transition); text-decoration: none; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; }

/* ALERT/TOAST */
.alert { padding: 14px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; }
.alert-success { background: #E8F5E9; border: 1px solid #A5D6A7; color: #1B5E20; }
.alert-danger { background: #FFEBEE; border: 1px solid #EF9A9A; color: #B71C1C; }
.alert-warning { background: #FFF8E1; border: 1px solid #FFE082; color: #E65100; }
.alert-info { background: #E3F2FD; border: 1px solid #90CAF9; color: #0D47A1; }
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--bg-white); border-radius: 10px; padding: 14px 18px; box-shadow: var(--shadow-lg); border-left: 4px solid var(--primary); min-width: 280px; display: flex; align-items: center; gap: 10px; animation: slideIn 0.3s ease; font-size: 14px; }
.toast.success { border-color: #4CAF50; }
.toast.error { border-color: var(--primary); }
@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* BREADCRUMB */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); padding: 12px 0; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--secondary); font-weight: 500; }

/* PROFILE/AVATAR */
.avatar { border-radius: 50%; object-fit: cover; }
.avatar-placeholder { border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; background: var(--primary-light); color: var(--primary); flex-shrink: 0; }

/* DARK MODE */
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --bg: #0d1117;
    --bg-white: #161b22;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --border: #30363d;
    --secondary: #c9d1d9;
  }
}
html[data-theme="dark"] {
  --bg: #0d1117;
  --bg-white: #161b22;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --border: #30363d;
  --secondary: #c9d1d9;
  --bg-dark: #010409;
}

/* MOBILE MENU */
.mobile-menu-btn { display: none; background: none; border: none; color: var(--secondary); font-size: 24px; cursor: pointer; padding: 4px; }
.mobile-nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--bg-white); z-index: 999; overflow-y: auto; padding: 16px; transform: translateX(-100%); transition: transform 0.3s ease; }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-item { display: block; padding: 14px 16px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-nav-item:hover { background: var(--primary-light); color: var(--primary); }

/* RTL SUPPORT */
[dir="rtl"] .hero-title, [dir="rtl"] .section-title { text-align: right; }
[dir="rtl"] .section-title::after { margin-left: auto; margin-right: 0; }
[dir="rtl"] .footer-link:hover { padding-left: 0; padding-right: 4px; }

/* RESPONSIVE */
@media (max-width: 1200px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .header-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-nav { display: block; }
}
@media (max-width: 768px) {
  .hero-section { padding: 48px 20px; }
  .section { padding: 40px 20px; }
  .hero-title { font-size: 28px; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .container, .container-fluid { padding: 0 16px; }
}