/*
Theme Name: PlaPet Headless
Theme URI: https://plapet.com
Author: PlaPet Team
Author URI: https://plapet.com
Description: A headless-first theme designed to expose the REST API and match the dark-green branding of the React frontend.
Version: 1.1
*/

:root {
  --brand-dark: #05120a;
  --brand-darker: #020b05;
  --brand-green: #22c55e;
  --brand-glow: #4ade80;
  --text-primary: #f0fdf4;
  --text-secondary: #9ca3af;
  --border-color: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.05);
}

body {
  background-color: var(--brand-dark);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Make the Admin Bar Green to match */
#wpadminbar {
  background-color: var(--brand-darker) !important;
}

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

a:hover {
  color: var(--brand-glow);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

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

/* Header */
.site-header {
    background: var(--brand-darker);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}
.header-container {
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}
.site-title a {
    color: #fff;
}
.site-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

/* Headless Banner */
.headless-banner {
    background: linear-gradient(to right, var(--brand-darker), #0a2617);
    border: 1px solid var(--brand-green);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}
.headless-banner h2 {
    margin-top: 0;
    font-size: 1.25rem;
    color: var(--brand-green);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 197, 94, 0.3);
}

.post-thumbnail {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-title {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
}
.entry-title a {
    color: #fff;
}
.entry-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Single Post */
.single-post-view {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}
.single-header {
    text-align: center;
    margin-bottom: 2rem;
}
.cat-pill {
    background: var(--brand-green);
    color: var(--brand-darker);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
}
.single-header h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
    line-height: 1.2;
}
.full-width {
    aspect-ratio: 21/9;
    margin-bottom: 2rem;
}

.entry-content {
    color: #e5e7eb;
    font-size: 1.1rem;
    line-height: 1.8;
}
.entry-content h2 {
    color: #fff;
    margin-top: 2rem;
}
.entry-content p {
    margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}
.headless-note {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.7;
}
