/*
Theme Name: AI Modern Theme
Theme URI: http://aihub.snpy.jp/
Author: Admin
Author URI: http://aihub.snpy.jp/
Description: A clean, highly readable, and functional theme tailored for AI intelligence and pricing comparisons in Japan.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aihub-theme
*/

/* Core Design System & Tokens (Functional & Clean) */
:root {
  --bg-primary: #f8f9fa;
  /* Light gray background */
  --bg-card: #ffffff;
  /* White cards */
  --text-primary: #212529;
  /* Dark gray, high contrast for reading */
  --text-secondary: #6c757d;
  /* Medium gray for metadata */
  --accent-primary: #0056b3;
  /* Professional Blue */
  --accent-secondary: #004494;
  /* Darker Blue for hover */
  --accent-tertiary: #198754;
  /* Green for Open Source */
  --border-color: #dee2e6;

  --font-main: "Helvetica Neue", "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;

  --transition-fast: 0.2s ease-in-out;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography Classes */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: #212529;
}

.section-title {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-primary);
  display: inline-block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: rgba(15, 23, 42, 0.85);
  /* Deep modern slate with transparency */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  font-size: 1.4rem;
  font-weight: bold;
}

.site-title a {
  text-decoration: none;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Navigation Menu */
.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-navigation a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Flat Cards for Content */
.glass-card,
.flat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow var(--transition-fast);
}

.glass-card:hover,
.flat-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--accent-secondary);
}

/* Main Content Area */
.site-main {
  flex: 1;
  padding: 3rem 0;
}

/* AI Model Grid */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Tags & Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  background: #e9ecef;
  color: #495057;
  border: 1px solid var(--border-color);
}

.badge.proprietary {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

.badge.opensource {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

/* Entry Elements */
.entry-title {
  font-size: 1.25rem;
  margin: 0.75rem 0;
}

h1.entry-title {
  font-size: 1.8rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.entry-title a {
  text-decoration: none;
  color: var(--accent-primary);
}

.entry-title a:hover {
  text-decoration: underline;
}

.entry-summary {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* Tables for Specs (Replacing simple list) */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.spec-table th,
.spec-table td {
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  text-align: left;
}

.spec-table th {
  background-color: #f8f9fa;
  font-weight: bold;
  width: 35%;
  color: var(--text-primary);
}

/* Single Post Specific Styles */
.post-navigation {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.post-navigation a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: bold;
}

.post-navigation a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Basic utility fading */
.animate-fade-in {
  animation: fadeIn 0.4s ease-in forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}