/*
Theme Name: Skwared Theme
Description: A minimalistic and modern WordPress theme for blog.skwa.red, designed to present code and tech projects in an easy-to-read fashion.
Author: Kyle
Version: 1.2
*/

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

:root {
  --primary-color: #ff6b35;
  --secondary-color: #1e88e5;
  --accent-color: #00d4aa;
  --text-color: #2c3e50;
  --text-light: #7f8c8d;
  --bg-color: #ffffff;
  --bg-secondary: #f8f9fa;
  --border-color: #e9ecef;
  --code-bg: #f4f4f4;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --radius: 8px;
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --text-color: #ecf0f1;
  --text-light: #bdc3c7;
  --bg-color: #1a1a1a;
  --bg-secondary: #2c2c2c;
  --border-color: #404040;
  --code-bg: #2d2d2d;
  --shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: var(--transition);
}

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

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-family: 'Orbitron', monospace;
  font-size: 2.2rem;
  font-weight: 900;
  text-decoration: none;
  color: white;
  position: relative;
  display: inline-block;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(45deg, #ffffff, #f0f0f0, #ffffff, #e0e0e0);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

.site-title::before {
  content: '⚡';
  position: absolute;
  left: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

.site-title::after {
  content: '🔧';
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  animation: pulse 2s ease-in-out infinite 1s;
}

.site-title:hover {
  transform: scale(1.05) rotateX(5deg);
  transition: all 0.3s ease;
  animation-duration: 1s;
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-50%) scale(1.2);
    opacity: 1;
  }
}

/* Enhanced site branding */
.site-branding {
  position: relative;
  padding: 0 4rem;
}

.site-branding::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateY(-50%);
  z-index: -1;
}

.theme-toggle {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.main-nav a:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.main-nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.main-nav a:hover::before {
  width: 100%;
}

/* Main Content */
.main-content {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

/* Post Cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-card {
  background: var(--bg-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.post-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
}

.post-content {
  padding: 1.5rem;
}

.post-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  letter-spacing: 0.03em;
}

.post-title a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

.post-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.post-excerpt {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Single Post */
.post-header {
  text-align: center;
  margin-bottom: 2rem;
}

.featured-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.entry-title {
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.entry-meta {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.entry-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: 'Orbitron', monospace;
  color: var(--text-color);
  margin: 2rem 0 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.entry-content h1 {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.entry-content h2 {
  font-size: 1.8rem;
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.entry-content h3 {
  font-size: 1.4rem;
  color: var(--secondary-color);
}

.entry-content h4 {
  font-size: 1.2rem;
  color: var(--accent-color);
}

.entry-content h5 {
  font-size: 1.1rem;
  color: var(--primary-color);
}

.entry-content h6 {
  font-size: 1rem;
  color: var(--text-color);
  text-transform: uppercase;
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content a {
  color: var(--secondary-color);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.entry-content a:hover {
  border-bottom-color: var(--secondary-color);
}

/* Code Styling - Removed for Prismatic compatibility */

/* Video Embeds */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 2rem 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.video-container iframe,
.video-container object,
.video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
}

/* Comments Section */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.comments-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.05em;
}

.comments-title::before {
  content: '💬';
  font-size: 1.2em;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list .comment {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.comment-list .comment:hover {
  box-shadow: var(--shadow);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comment-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
}

.comment-author .fn {
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
}

.comment-author .fn:hover {
  color: var(--primary-color);
}

.comment-meta {
  font-size: 0.9rem;
  color: var(--text-light);
}

.comment-meta a {
  color: inherit;
  text-decoration: none;
}

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

.comment-content {
  margin: 1rem 0;
  line-height: 1.6;
}

.comment-content p {
  margin-bottom: 1rem;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.reply {
  text-align: right;
}

.comment-reply-link {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.comment-reply-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.children {
  margin-left: 2rem;
  margin-top: 1.5rem;
}

.bypostauthor > .comment {
  border-left: 4px solid var(--accent-color);
  background: linear-gradient(135deg, var(--bg-secondary), rgba(0, 212, 170, 0.05));
}

.bypostauthor .comment-author .fn::after {
  content: '✍️';
  margin-left: 0.5rem;
  font-size: 0.8em;
}

/* Comment Form */
.comment-respond {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid var(--border-color);
}

.comment-reply-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.05em;
}

.comment-reply-title::before {
  content: '✏️';
  font-size: 1.1em;
}

.comment-form-comment {
  margin-bottom: 1.5rem;
}

.comment-form-comment label {
  display: block;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.comment-form-comment textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-color);
  color: var(--text-color);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  transition: var(--transition);
}

.comment-form-comment textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
  display: inline-block;
  width: calc(33.333% - 1rem);
  margin-right: 1.5rem;
  margin-bottom: 1.5rem;
}

.comment-form-url {
  margin-right: 0;
}

.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
  display: block;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-color);
  color: var(--text-color);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.comment-form-cookies-consent {
  margin-bottom: 1.5rem;
  display: none; /* Hidden per design requirements */
}

.form-submit {
  text-align: left;
}

.submit {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.submit:active {
  transform: translateY(0);
}

.submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.submit:hover::before {
  left: 100%;
}

/* Comment Pagination */
.comment-navigation {
  margin: 2rem 0;
  text-align: center;
}

.comment-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.comment-navigation a {
  background: var(--bg-secondary);
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.comment-navigation a:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .post-grid {
    grid-template-columns: 1fr;
  }
  
  .entry-title {
    font-size: 2rem;
  }
  
  .entry-content {
    font-size: 1rem;
  }
  
  .site-title {
    font-size: 1.8rem;
  }
  
  .site-title::before,
  .site-title::after {
    font-size: 1.2rem;
  }
  
  .site-branding {
    padding: 0 3rem;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 1.5rem;
  }
  
  .site-title::before,
  .site-title::after {
    font-size: 1rem;
    left: -1.5rem;
    right: -1.5rem;
  }
  
  .site-branding {
    padding: 0 2rem;
  }
  
  .entry-title {
    font-size: 1.8rem;
  }
  
  pre {
    padding: 1rem;
    font-size: 0.85rem;
  }
}