/*
Theme Name: GlobeTechie
Theme URI: https://globetechie.com
Author: GlobeTechie
Author URI: https://globetechie.com
Description: A professional news and blog theme for GlobeTechie - Global Tech & AI News
Version: 1.0
License: GNU General Public License v2 or later
Tags: news, blog, technology, magazine, two-columns, right-sidebar
*/

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

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

:root {
  --navy: #0d1b2a;
  --navy-mid: #1a2f45;
  --navy-light: #243b55;
  --teal: #00c9b1;
  --teal-dark: #00a896;
  --teal-glow: rgba(0,201,177,0.15);
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --red: #ef4444;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.14);
  --transition: all 0.22s ease;
}

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* TOP BAR */
.top-bar {
  background: var(--navy);
  padding: 7px 0;
  border-bottom: 1px solid var(--navy-light);
}
.top-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-date { font-size: 11px; color: var(--gray-400); letter-spacing: 0.5px; }
.top-bar-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  margin: 0 24px;
  overflow: hidden;
}
.ticker-label {
  background: var(--red);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 1.5px;
  white-space: nowrap;
}
.ticker-text {
  font-size: 11px;
  color: var(--gray-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-bar-social { display: flex; gap: 14px; }
.top-bar-social a { font-size: 11px; color: var(--gray-400); transition: var(--transition); }
.top-bar-social a:hover { color: var(--teal); }

/* HEADER */
.site-header {
  background: var(--navy);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--white) !important;
  letter-spacing: -0.5px;
}
.site-title a { color: var(--white) !important; }
.site-title span { color: var(--teal); }
.site-description { font-size: 10px; color: var(--gray-400); letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }

/* NAVIGATION */
.main-navigation { display: flex; align-items: center; }
.main-navigation ul { display: flex; list-style: none; gap: 4px; margin: 0; padding: 0; }
.main-navigation ul li a {
  color: var(--gray-400);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 6px;
  transition: var(--transition);
  display: block;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
  color: var(--white);
  background: var(--navy-light);
}
.main-navigation ul li.current-menu-item a { color: var(--teal); }

/* CATEGORY NAV */
.cat-nav {
  background: var(--white);
  border-bottom: 2px solid var(--gray-200);
}
.cat-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  padding: 14px 18px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: var(--transition);
  display: block;
}
.cat-link:hover { color: var(--navy); }
.cat-link.active { color: var(--teal-dark); border-bottom-color: var(--teal); }

/* MAIN LAYOUT */
#primary {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

/* POSTS LOOP */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

/* POST CARD */
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.post-card .post-thumbnail {
  height: 200px;
  overflow: hidden;
  background: var(--navy);
}
.post-card .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.post-card:hover .post-thumbnail img { transform: scale(1.04); }
.post-card .post-thumbnail-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-category-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 8px;
}
.post-card .entry-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
}
.post-card .entry-title a { color: var(--navy); }
.post-card .entry-title a:hover { color: var(--teal-dark); }
.post-card .entry-meta {
  font-size: 12px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

/* SINGLE POST */
.single-post-wrap {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.single-post-thumbnail {
  width: 100%;
  max-height: 460px;
  overflow: hidden;
}
.single-post-thumbnail img { width: 100%; object-fit: cover; }
.single-post-body { padding: 40px 48px; }
.single-post-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 14px;
  display: block;
}
.single-post-body .entry-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 18px;
}
.single-post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--gray-400);
  padding-bottom: 24px;
  border-bottom: 2px solid var(--gray-100);
  margin-bottom: 28px;
}
.entry-content p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--gray-600);
  margin-bottom: 22px;
}
.entry-content h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--teal);
}
.entry-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 12px;
}
.entry-content ul, .entry-content ol {
  margin: 0 0 22px 24px;
  color: var(--gray-600);
}
.entry-content ul li, .entry-content ol li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 8px;
}
.entry-content strong { color: var(--navy); font-weight: 600; }
.entry-content a { color: var(--teal-dark); text-decoration: underline; }
.entry-content img { border-radius: var(--radius); margin: 24px 0; }
.entry-content blockquote {
  border-left: 4px solid var(--teal);
  margin: 28px 0;
  padding: 16px 24px;
  background: var(--gray-100);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 17px;
  color: var(--navy);
  font-style: italic;
}

/* SECTION HEADER */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--teal);
  border-radius: 2px;
  display: block;
}

/* SIDEBAR */
.widget-area { display: flex; flex-direction: column; gap: 20px; }
.widget {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.widget-title {
  padding: 16px 20px 14px;
  border-bottom: 2px solid var(--gray-100);
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy) !important;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
}
.widget-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--teal);
  border-radius: 2px;
}
.widget > *:not(.widget-title) { padding: 16px 20px; }
.widget ul { list-style: none; margin: 0; padding: 16px 20px; }
.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
  color: var(--gray-600);
}
.widget ul li:last-child { border: none; }
.widget ul li a { color: var(--gray-600); }
.widget ul li a:hover { color: var(--teal-dark); }

/* NEWSLETTER WIDGET */
.newsletter-widget {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.nl-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.nl-sub { font-size: 12px; color: var(--gray-400); margin-bottom: 18px; line-height: 1.5; }
.nl-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  color: var(--white);
  font-size: 13px;
  margin-bottom: 10px;
  outline: none;
  font-family: var(--font-body);
}
.nl-input::placeholder { color: var(--gray-400); }
.nl-btn {
  width: 100%;
  padding: 11px;
  background: var(--teal);
  color: var(--navy);
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition);
}
.nl-btn:hover { background: var(--teal-dark); color: white; }

/* TAGS */
.tagcloud { display: flex; flex-wrap: wrap; gap: 7px; padding: 16px 20px; }
.tagcloud a {
  font-size: 12px !important;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 5px 12px;
  border-radius: 20px;
  transition: var(--transition);
}
.tagcloud a:hover { background: var(--teal); color: var(--navy); }

/* FOOTER */
.site-footer {
  background: var(--navy);
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
}
.footer-brand-name span { color: var(--teal); }
.footer-desc { font-size: 13px; color: var(--gray-400); line-height: 1.7; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 14px;
  color: var(--gray-400);
}
.social-btn:hover { background: var(--teal); color: var(--navy); }
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: var(--gray-400); transition: var(--transition); }
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid var(--navy-light);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy { font-size: 12px; color: var(--gray-400); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; color: var(--gray-400); }
.footer-bottom-links a:hover { color: var(--teal); }

/* PAGINATION */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 32px 0; }
.pagination a, .pagination span {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  background: var(--white);
  color: var(--gray-600);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.pagination a:hover, .pagination .current {
  background: var(--teal);
  color: var(--navy);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  #primary { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .posts-grid { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
  .main-navigation { display: none; }
  .single-post-body { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
