/*
Theme Name: Oritiq
Theme URI: https://oritiq.com
Author: Oritiq Team
Author URI: https://oritiq.com
Description: Custom WordPress theme matching the Next.js design system - Modern dark theme with vibrant teal accents
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oritiq
Tags: dark, modern, saas, teal, custom
*/

/* Import Google Fonts - Same as Next.js */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

/* CSS Variables - Matching Next.js Design System */
:root {
  /* Dark theme colors */
  --background: hsl(200, 20%, 6%);
  --foreground: hsl(180, 10%, 95%);

  --card: hsl(200, 20%, 9%);
  --card-foreground: hsl(180, 10%, 95%);

  /* Vibrant Teal - Primary brand color */
  --primary: hsl(175, 70%, 45%);
  --primary-foreground: hsl(200, 20%, 6%);

  --secondary: hsl(200, 15%, 15%);
  --secondary-foreground: hsl(180, 10%, 90%);

  --muted: hsl(200, 15%, 12%);
  --muted-foreground: hsl(200, 10%, 55%);

  --accent: hsl(175, 70%, 45%);
  --accent-foreground: hsl(200, 20%, 6%);

  --border: hsl(200, 15%, 18%);
  --input: hsl(200, 15%, 18%);
  --ring: hsl(175, 70%, 45%);

  /* Teal Glow */
  --teal-glow: hsl(175, 70%, 45%);
  --teal-gradient-start: hsl(175, 60%, 35%);
  --teal-gradient-end: hsl(185, 50%, 25%);
}

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

html {
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography - Matching Next.js */
h1, h2, .h1, .h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

h1, .h1 {
  font-size: 2.5rem;
}

h2, .h2 {
  font-size: 2rem;
}

h3, .h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

h4, .h4 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

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

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

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header / Navigation */
.site-header {
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background-color: rgba(10, 15, 18, 0.8);
}

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

.site-logo {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
}

.site-navigation {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.site-navigation a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s;
}

.site-navigation a:hover,
.site-navigation .current-menu-item a {
  color: var(--primary);
}

/* Main Content */
.site-main {
  min-height: calc(100vh - 200px);
}

/* Section Spacing */
.section-spacing {
  padding: 7rem 0;
}

/* Glass Card Effect */
.glass-card {
  background-color: rgba(20, 28, 32, 0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 215, 220, 0.1);
  border-radius: 0.75rem;
  padding: 2rem;
}

/* Glow Effects */
.glow {
  box-shadow: 0 0 60px -15px rgba(34, 211, 238, 0.4);
}

.glow-sm {
  box-shadow: 0 0 30px -10px rgba(34, 211, 238, 0.3);
}

/* Ambient Glow Background */
.ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  pointer-events: none;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
}

/* Dot Pattern */
.dot-pattern {
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px -10px rgba(34, 211, 238, 0.5);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--border);
}

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

/* Blog / Archive Styles */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.post-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px -15px rgba(34, 211, 238, 0.3);
}

.post-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card-content {
  padding: 1.5rem;
}

.post-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.post-card-title a {
  color: var(--foreground);
}

.post-card-title a:hover {
  color: var(--primary);
}

.post-card-excerpt {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.post-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Single Post Styles */
.single-post-header {
  text-align: center;
  padding: 4rem 0 2rem;
}

.single-post-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.single-post-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.single-post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.single-post-content pre {
  background-color: var(--muted);
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.single-post-content code {
  background-color: var(--muted);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
}

/* Footer */
.site-footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--muted-foreground);
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 2rem;
  }

  h2, .h2 {
    font-size: 1.5rem;
  }

  .site-navigation {
    flex-direction: column;
    gap: 1rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .single-post-title {
    font-size: 2rem;
  }

  .section-spacing {
    padding: 4rem 0;
  }
}

/* WordPress Core Styles */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}
