/*
Theme Name: Way2Fresher Career Pulse
Theme URI: https://way2fresher.com
Author: Way2Fresher
Author URI: https://way2fresher.com
Description: AdSense-focused career portal theme for freshers — Career Pulse readiness check, AI resume builder, jobs, employers and college/alumni portals. Includes the full React app source and a WordPress integration layer.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: way2fresher
Tags: career, jobs, adsense, dark-mode, custom-logo, custom-menu
*/

/* ---------------------------------------------------------------------------
 * Base styles — used when the theme runs standalone (WP-rendered pages).
 * The React app ships its own Tailwind build; these rules keep the WP-rendered
 * shell consistent with it.
 * ------------------------------------------------------------------------- */

:root {
  --w2f-brand: #0b5394;
  --w2f-flame: #ff6b2c;
  --w2f-ink: #0f172a;
  --w2f-body: #374151;
  --w2f-surface: #e9f2fb;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--w2f-body);
  background: #ffffff;
}

a { color: var(--w2f-brand); text-decoration: none; }
a:hover { color: var(--w2f-flame); }

.w2f-header {
  background: var(--w2f-surface);
  border-bottom: 1px solid rgba(11, 83, 148, 0.12);
  padding: 0 24px;
}

.w2f-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
}

.w2f-header__logo img { height: 76px; width: auto; display: block; }
.w2f-header__logo { display: flex; align-items: center; }

.w2f-nav ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.w2f-nav a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  border-radius: 8px;
}
.w2f-nav a:hover { background: rgba(11, 83, 148, 0.08); color: var(--w2f-brand); }

.w2f-flash {
  overflow: hidden;
  background: #38bdf8;
  color: #06263d;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 0;
  white-space: nowrap;
}
.w2f-flash span { display: inline-block; padding-left: 100%; animation: w2f-scroll 28s linear infinite; }
@keyframes w2f-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

.w2f-main { max-width: 1280px; margin: 0 auto; padding: 32px 24px; }

.w2f-footer {
  background: var(--w2f-surface);
  color: var(--w2f-body);
  border-top: 1px solid rgba(11, 83, 148, 0.12);
  padding: 40px 24px 24px;
}
.w2f-footer h3 {
  color: var(--w2f-brand);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}
.w2f-footer p { color: #111827; }
.w2f-footer a { color: #111827; font-weight: 700; font-size: 16px; }
.w2f-footer a:hover { color: var(--w2f-flame); }

.w2f-coming-soon {
  border: 2px dashed rgba(11, 83, 148, 0.35);
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  color: var(--w2f-brand);
  font-weight: 700;
  background: rgba(233, 242, 251, 0.6);
}

.w2f-adsense-slot { margin: 24px auto; text-align: center; }

/* Header actions (dark-mode toggle + sign in) */
.w2f-actions { display: flex; align-items: center; gap: 10px; }
.w2f-mode-toggle {
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid rgba(11, 83, 148, 0.25); background: #ffffff;
  display: grid; place-items: center; cursor: pointer; color: var(--w2f-brand);
}
.w2f-mode-toggle svg { width: 18px; height: 18px; }
.w2f-mode-toggle .w2f-icon-moon { display: none; }
body.w2f-dark .w2f-mode-toggle .w2f-icon-moon { display: block; }
body.w2f-dark .w2f-mode-toggle .w2f-icon-sun { display: none; }
.w2f-signin {
  display: inline-block; padding: 9px 20px; border-radius: 999px;
  border: 2px solid var(--w2f-brand); color: var(--w2f-brand);
  font-weight: 700; font-size: 15px; background: transparent;
}
.w2f-signin:hover { background: var(--w2f-brand); color: #ffffff; }

/* Dropdown sub-menus (built-in default nav + WP custom menus) */
.w2f-nav li { position: relative; }
.w2f-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 60;
  min-width: 250px; margin: 0; padding: 10px; list-style: none;
  background: #ffffff; border: 1px solid rgba(11, 83, 148, 0.12);
  border-radius: 14px; box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}
.w2f-nav li:hover > .sub-menu { display: block; }
.w2f-nav .sub-menu li { display: block; }
.w2f-nav .sub-menu a {
  display: block; padding: 8px 10px; border-radius: 8px;
  font-size: 15px; font-weight: 600; color: #111827;
}
.w2f-nav .sub-menu a:hover { background: rgba(11, 83, 148, 0.08); color: var(--w2f-brand); }
.w2f-nav .w2f-mega-group span {
  display: block; padding: 10px 10px 4px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--w2f-flame);
}

/* Footer layout */
.w2f-footer-curve svg { display: block; width: 100%; height: 44px; fill: var(--w2f-surface); }
.w2f-footer__grid {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.w2f-footer__brand img { height: 64px; width: auto; display: block; }
.w2f-footer__brand p { font-size: 14px; line-height: 1.6; }
.w2f-footer ul { list-style: none; margin: 0; padding: 0; }
.w2f-footer li { margin: 0 0 10px; }
.w2f-social-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.w2f-social {
  width: 36px; height: 36px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--sc); color: #ffffff !important;
}
.w2f-social svg { width: 18px; height: 18px; fill: currentColor; }
.w2f-social:hover { filter: brightness(1.12); }
.w2f-newsletter { display: flex; gap: 8px; margin-top: 14px; }
.w2f-newsletter input {
  flex: 1; min-width: 0; height: 42px; padding: 0 16px;
  border-radius: 999px; border: 1px solid #d7e4f4; background: #ffffff;
  font: inherit; font-size: 14px;
}
.w2f-newsletter button {
  width: 42px; height: 42px; flex: 0 0 auto; border: none; cursor: pointer;
  border-radius: 999px; background: var(--w2f-brand); color: #ffffff;
  display: grid; place-items: center;
}
.w2f-newsletter button svg { width: 16px; height: 16px; fill: currentColor; }
.w2f-newsletter-note { margin-top: 10px; font-size: 13px; color: #0b5394; font-weight: 700; }
.w2f-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 28px; padding-top: 18px;
  border-top: 1px solid rgba(11, 83, 148, 0.15); font-size: 14px;
}
.w2f-footer__bottom-links { display: flex; align-items: center; gap: 16px; }
.w2f-top-btn {
  width: 34px; height: 34px; border-radius: 999px; border: none; cursor: pointer;
  background: #ffffff; color: #696969; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.w2f-rb-list { margin: 16px auto 0; padding: 0; list-style: none; max-width: 560px; text-align: left; }
.w2f-rb-list li { margin: 6px 0; font-weight: 600; }
.w2f-cta {
  display: inline-block; background: var(--w2f-flame); color: #fff;
  padding: 14px 32px; border-radius: 999px; font-weight: 700;
}

@media (max-width: 900px) {
  .w2f-nav .sub-menu { display: none !important; }
  .w2f-header__inner { flex-wrap: wrap; }
  .w2f-nav a { font-size: 15px; padding: 6px 8px; }
}

/* Dark mode (toggled by the React app or the customizer) */
body.w2f-dark {
  --w2f-ink: #e2e8f0;
  --w2f-body: #cbd5e1;
  --w2f-surface: #0c1c30;
  background: #060d18;
  color: var(--w2f-body);
}
body.w2f-dark .w2f-nav a { color: #f1f5f9; }
body.w2f-dark .w2f-footer p,
body.w2f-dark .w2f-footer a { color: #f1f5f9; }
body.w2f-dark .w2f-nav .sub-menu {
  background: #0c1c30; border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
body.w2f-dark .w2f-nav .sub-menu a { color: #e2e8f0; }
body.w2f-dark .w2f-mode-toggle,
body.w2f-dark .w2f-top-btn {
  background: rgba(255, 255, 255, 0.1); color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.2);
}
body.w2f-dark .w2f-signin { color: #f8fafc; border-color: rgba(255, 255, 255, 0.7); }
body.w2f-dark .w2f-newsletter input {
  background: rgba(255, 255, 255, 0.08); color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}
