/*
Theme Name: Softstar AI Research
Theme URI: https://ai.SoftstarResearch.com
Author: SoftstarAdmin
Author URI: https://SoftstarResearch.com
Description: Custom theme for Softstar AI Research featuring scrolling news banner, responsive navigation, and a modern AI-focused design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: softstar-ai
Tags: custom-menu, featured-images, responsive-layout, blog, one-column
*/

/* ============================================================
   CSS RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #0d47a1;
  --primary-dk: #002171;
  --accent:     #00b0ff;
  --accent-lt:  #e3f2fd;
  --text:       #212121;
  --text-lt:    #616161;
  --bg:         #f5f7fa;
  --white:      #ffffff;
  --border:     #dce1e7;
  --ticker-bg:  #0d47a1;
  --ticker-fg:  #ffffff;
  --nav-height: 68px;
  --ticker-h:   40px;
  --radius:     8px;
  --shadow:     0 2px 12px rgba(0,0,0,0.10);
  --shadow-lg:  0 6px 30px rgba(0,0,0,0.14);
  --font-main:  'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

/* ============================================================
   SITE LAYOUT WRAPPER
   ============================================================ */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-content  { flex: 1; }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
#site-header {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 100%);
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 1000;
}

.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: var(--nav-height);
}

/* Logo / Site Title */
.site-branding { display: flex; align-items: center; gap: 14px; }
.site-branding .logo-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #0288d1 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: white; font-weight: 900; flex-shrink: 0;
}
.site-branding a { color: white; }
.site-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.3px; color: white; line-height: 1.2; }
.site-tagline { font-size: 0.72rem; color: rgba(255,255,255,0.70); text-transform: uppercase; letter-spacing: 0.8px; }

/* Navigation */
.main-nav { display: flex; align-items: center; }
.main-nav ul { list-style: none; display: flex; gap: 4px; }
.main-nav ul li a {
  display: block; padding: 8px 16px; border-radius: var(--radius);
  color: rgba(255,255,255,0.88); font-size: 0.9rem; font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
  background: rgba(255,255,255,0.18); color: white;
}

/* Hamburger */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: white; }
.menu-toggle svg { width: 26px; height: 26px; stroke: white; fill: none; stroke-width: 2; }

/* ============================================================
   SCROLLING NEWS TICKER
   ============================================================ */
#news-ticker {
  background: var(--ticker-bg);
  border-top: 1px solid rgba(255,255,255,0.15);
  height: var(--ticker-h); overflow: hidden;
  display: flex; align-items: center;
}

.ticker-label {
  background: var(--accent); color: var(--primary-dk);
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; padding: 0 14px; height: 100%;
  display: flex; align-items: center; white-space: nowrap; flex-shrink: 0;
}

.ticker-wrapper { flex: 1; overflow: hidden; position: relative; }

.ticker-track {
  display: flex; align-items: center;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  color: var(--ticker-fg); font-size: 0.85rem;
  padding: 0 36px; white-space: nowrap;
}
.ticker-item::before {
  content: '●'; color: var(--accent); margin-right: 12px; font-size: 0.6rem;
}
.ticker-item a { color: var(--ticker-fg); text-decoration: underline; text-underline-offset: 2px; }
.ticker-item a:hover { color: var(--accent); }

@keyframes ticker-scroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ============================================================
   HERO SECTION (Home Page)
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 50%, #1565c0 100%);
  color: white; text-align: center; padding: 90px 24px 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero-eyebrow { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 16px; font-weight: 600; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.82); max-width: 560px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 50px; font-size: 0.92rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent; transition: all 0.25s;
}
.btn-primary { background: var(--accent); color: var(--primary-dk); }
.btn-primary:hover { background: #29b6f6; color: var(--primary-dk); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,176,255,0.4); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: white; }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: white; color: white; }

/* ============================================================
   FEATURE CARDS (Home Page)
   ============================================================ */
.features-section { padding: 72px 24px; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.section-header p { color: var(--text-lt); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.feature-card {
  background: var(--white); border-radius: var(--radius); padding: 36px 28px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
  text-align: center;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: var(--accent-lt); color: var(--primary);
}
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.feature-card p  { color: var(--text-lt); font-size: 0.92rem; }

/* ============================================================
   LATEST POSTS (Home Page)
   ============================================================ */
.latest-posts-section { background: var(--white); padding: 72px 24px; }
.latest-posts-inner { max-width: 1200px; margin: 0 auto; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 40px; }
.post-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--white); box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-card-thumb { height: 180px; background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.post-card-body { padding: 24px; }
.post-meta { font-size: 0.75rem; color: var(--text-lt); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.post-card-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.post-card-body h3 a { color: var(--text); }
.post-card-body h3 a:hover { color: var(--primary); }
.post-card-body p { color: var(--text-lt); font-size: 0.88rem; margin-bottom: 16px; }
.read-more { font-size: 0.85rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
.read-more:hover { color: var(--accent); }

/* ============================================================
   PAGE CONTENT AREA
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 100%);
  color: white; padding: 56px 24px 48px; text-align: center;
}
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.page-header p { color: rgba(255,255,255,0.8); margin-top: 12px; font-size: 1.05rem; }

.content-area { max-width: 1100px; margin: 0 auto; padding: 60px 24px; }

/* Blog Listing */
.blog-grid { display: grid; gap: 32px; }
.blog-post-item {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
.blog-post-item h2 { font-size: 1.35rem; }
.blog-post-item h2 a { color: var(--primary); }
.blog-post-item h2 a:hover { color: var(--accent); }
.blog-post-item .post-meta { color: var(--text-lt); font-size: 0.82rem; }
.blog-post-item .excerpt { color: var(--text-lt); }

/* ============================================================
   DOWNLOADS PAGE
   ============================================================ */
.downloads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 32px; }
.download-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.download-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.download-icon { font-size: 48px; margin-bottom: 16px; }
.download-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.download-card p { color: var(--text-lt); font-size: 0.88rem; margin-bottom: 18px; }
.download-card .btn-download {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: white; padding: 10px 22px;
  border-radius: 50px; font-size: 0.85rem; font-weight: 600;
  transition: background 0.2s;
}
.download-card .btn-download:hover { background: var(--accent); color: white; }

/* ============================================================
   NEWSLETTER PAGE
   ============================================================ */
.newsletter-section { max-width: 600px; margin: 0 auto; text-align: center; }
.newsletter-form-wrap {
  background: var(--white); border-radius: var(--radius); padding: 48px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border); margin-top: 32px;
}
.newsletter-form-wrap h2 { font-size: 1.6rem; color: var(--primary); margin-bottom: 12px; }
.newsletter-form-wrap p { color: var(--text-lt); margin-bottom: 28px; }
.newsletter-form .form-group { margin-bottom: 18px; text-align: left; }
.newsletter-form label { font-size: 0.85rem; font-weight: 600; display: block; margin-bottom: 6px; color: var(--text); }
.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border);
  border-radius: var(--radius); font-size: 0.95rem; font-family: inherit;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { outline: none; border-color: var(--accent); }
.newsletter-form .btn-submit {
  width: 100%; background: var(--primary); color: white; border: none;
  padding: 14px; border-radius: var(--radius); font-size: 1rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background 0.2s, transform 0.2s;
}
.newsletter-form .btn-submit:hover { background: var(--accent); color: var(--primary-dk); transform: translateY(-2px); }
.newsletter-success { display: none; background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32; border-radius: var(--radius); padding: 18px; margin-top: 16px; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 60px; }
.about-image-placeholder {
  height: 360px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 96px; color: white; box-shadow: var(--shadow-lg);
}
.about-text h2 { font-size: 1.8rem; color: var(--primary); margin-bottom: 18px; }
.about-text p { color: var(--text-lt); margin-bottom: 14px; line-height: 1.8; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin-top: 40px; }
.team-card { background: var(--white); border-radius: var(--radius); padding: 32px 24px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border); }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px; background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); display: flex; align-items: center; justify-content: center; font-size: 32px; color: white; }
.team-card h3 { font-size: 1rem; font-weight: 700; color: var(--primary); }
.team-card .role { font-size: 0.82rem; color: var(--text-lt); margin-top: 4px; }

/* ============================================================
   USER REGISTRATION FORM
   ============================================================ */
.registration-section {
  max-width: 480px; margin: 60px auto; padding: 0 24px;
}
.reg-card {
  background: var(--white); border-radius: var(--radius); padding: 48px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.reg-card h2 { font-size: 1.6rem; color: var(--primary); margin-bottom: 8px; text-align: center; }
.reg-card .sub { color: var(--text-lt); text-align: center; margin-bottom: 32px; font-size: 0.9rem; }
.reg-form .form-group { margin-bottom: 18px; }
.reg-form label { font-size: 0.85rem; font-weight: 600; display: block; margin-bottom: 6px; }
.reg-form input {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border);
  border-radius: var(--radius); font-size: 0.95rem; font-family: inherit;
}
.reg-form input:focus { outline: none; border-color: var(--accent); }
.reg-form .btn-reg {
  width: 100%; background: var(--primary); color: white; border: none;
  padding: 14px; border-radius: var(--radius); font-size: 1rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background 0.2s;
  margin-top: 8px;
}
.reg-form .btn-reg:hover { background: var(--primary-dk); }
.reg-form .login-link { text-align: center; margin-top: 18px; font-size: 0.88rem; color: var(--text-lt); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--primary-dk); color: rgba(255,255,255,0.75);
  padding: 56px 24px 28px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand .site-title { color: white; font-size: 1.15rem; margin-bottom: 10px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 { color: white; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .about-image-placeholder { height: 240px; }
}

@media (max-width: 640px) {
  .main-nav { display: none; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--primary-dk); padding: 16px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: 60px 20px; }
  .newsletter-form-wrap, .reg-card { padding: 32px 24px; }
}
