/*
Theme Name: Tenix Magazine Review
Theme URI: https://tenix.online
Author: Antigravity AI
Description: A powerful and stylish Tech Review Blog theme with full Gutenberg block support, designed for gadget reviews and tech magazines.
Version: 1.0.0
Text Domain: tenix-review
Tags: block-styles, blog, custom-colors, editor-style, grid-layout, light, responsive-layout
*/

:root {
  /* Tech Magazine Aesthetic Variables */
  --color-primary: #0056b3;
  --color-secondary: #ff3366;
  --color-background: #ffffff;
  --color-surface: #f8f9fa;
  --color-text: #212529;
  --color-text-muted: #6c757d;
  --color-border: #e9ecef;
  
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Roboto', sans-serif;
  
  --container-max-width: 1200px;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
}

/* Base Rest */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--color-surface);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #111;
  margin-top: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Layout and Modules */
.top-bar {
  background-color: var(--color-text);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.trending-ticker .trending-label {
  font-weight: 700;
  color: var(--color-secondary);
  margin-right: 0.5rem;
}
.site-header {
  background: var(--color-background);
  border-bottom: 2px solid var(--color-border);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
}
.site-title {
  font-size: 2.8rem;
  margin: 0;
  font-weight: 900;
}
.highlight-red {
  color: var(--color-secondary);
}
.sticky-nav {
  position: sticky;
  top: 0;
  background: var(--color-primary);
  z-index: 100;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.main-navigation ul {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem;
}
.main-navigation a {
  color: #fff;
  font-weight: 500;
  padding: 1rem 0;
  display: block;
}
.main-navigation a:hover {
  color: var(--color-secondary);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.search-form { display: flex; }
.search-field { border: none; padding: 0.5rem; border-radius: 4px 0 0 4px; outline: none; }
.search-submit { background: var(--color-secondary); color: #fff; border: none; padding: 0.5rem 1rem; cursor: pointer; border-radius: 0 4px 4px 0; font-weight: bold; }

/* Grid */
.main-content-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
}
.featured-hero-section {
  margin: var(--spacing-sm) 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-sm);
  min-height: 400px;
}
.glass-panel {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  padding: var(--spacing-md);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.article-thumb img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px;
}
.cat-label {
  background: var(--color-secondary); color: #fff; padding: 0.2rem 0.5rem; font-size: 0.8rem; font-weight: bold; text-transform: uppercase; border-radius: 3px;
}
.list-article { margin-bottom: var(--spacing-md); display: grid; grid-template-columns: 1fr 2fr; gap: var(--spacing-md); padding-bottom: var(--spacing-md); border-bottom: 1px solid var(--color-border); }
.article-title { margin: 0.5rem 0; font-size: 1.5rem; }
.article-meta { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.widget { margin-bottom: var(--spacing-md); background: var(--color-background); padding: var(--spacing-sm); border: 1px solid var(--color-border); border-radius: 8px; }
.widget-title { border-bottom: 2px solid var(--color-primary); padding-bottom: 0.5rem; margin-bottom: 1rem; }

/* Single */
.single-content-area {
  background: var(--color-background);
  padding: var(--spacing-md);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}
.entry-title { font-size: 2.5rem; line-height: 1.2; margin-bottom: 1rem; margin-top: 1rem; }
.author-meta { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--color-border); padding-bottom: 1rem; margin-bottom: 2rem; }
.author-avatar img { border-radius: 50%; }

/* Block overrides */
.wp-block-button__link { background-color: var(--color-primary); border-radius: 4px; font-weight: bold; }
.wp-block-button__link:hover { background-color: var(--color-secondary); }

/* Footer Styling */
.site-footer {
  background-color: #111e25;
  color: #e9ecef;
  padding-top: 4rem;
  margin-top: 4rem;
  border-top: 4px solid var(--color-primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-title {
  color: #fff;
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  font-size: 1.4rem;
}
.footer-col p {
  color: #adb5bd;
  line-height: 1.8;
}
.footer-col a {
  color: #adb5bd;
  display: block;
  padding: 0.3rem 0;
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--color-secondary);
  padding-left: 5px;
}
.footer-social-icons a {
  display: inline-block;
  margin-right: 1rem;
}
.site-info {
  background-color: #0a1114;
  padding: 1.5rem 0;
  text-align: center;
  color: #6c757d;
  font-size: 0.95rem;
}

/* Enhanced Responsive Rules */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .main-content-wrapper, .hero-grid, .list-article { grid-template-columns: 1fr; }
  .top-bar-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .header-container { flex-direction: column; text-align: center; gap: 1.5rem; }
  .header-ad-space { display: none; } /* Hide large ads on mobile */
  .site-title { font-size: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .footer-title { display: inline-block; }
  .footer-col a:hover { padding-left: 0; color: var(--color-secondary); }
  .nav-inner { flex-direction: column; gap: 1rem; padding: 1rem 0; }
  .main-navigation ul { flex-direction: column; width: 100%; text-align: center; gap: 0; }
  .main-navigation a { padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .search-form { width: 100%; justify-content: center; margin-top: 1rem; }
  .search-field { width: 100%; }
}
