/*
Theme Name: 3DPicks Dark
Theme URI: https://3dpicks.com
Author: Andy Bihlmaier
Author URI: https://3dpicks.com
Description: Custom dark, techy theme built for 3DPicks.com — an Amazon affiliate review site. Includes built-in "Buy on Amazon" buttons, pros/cons review boxes, and a clean product-card layout.
Version: 1.6
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: threedpicks-dark
*/

/* ========== Variables ========== */
:root {
  --bg: #0b0f14;
  --bg-elevated: #11161d;
  --card: #141a21;
  --card-border: #232b35;
  --text: #e6edf3;
  --text-muted: #8b96a3;
  --accent: #00e5c7;
  --accent-2: #7c5cff;
  --amazon: #ff9900;
  --amazon-hover: #ffb84d;
  --radius: 10px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  margin: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 .5em;
}

.site-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Header ========== */
.site-header {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg));
  border-bottom: 1px solid var(--card-border);
  padding: 22px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-title {
  font-size: 1.6rem;
  margin: 0;
  letter-spacing: .5px;
}

.site-title a {
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-description {
  color: var(--text-muted);
  font-size: .85rem;
  margin-top: 2px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
  transition: color .15s ease;
}

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

/* ========== Layout ========== */
.content-area {
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.content-area.full-width { grid-template-columns: 1fr; }

@media (max-width: 800px) {
  .content-area { grid-template-columns: 1fr; }
}

/* ========== Post cards (index / archive) ========== */
.post-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 260px 1fr;
  transition: border-color .2s ease, transform .2s ease;
}

.post-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.post-card .thumb img { border-radius: 0; height: 100%; object-fit: cover; }

.post-card .body { padding: 22px 24px; }

.post-card h2 { font-size: 1.25rem; margin-bottom: 6px; }
.post-card h2 a { color: #fff; }
.post-card h2 a:hover { color: var(--accent); }

.post-meta {
  color: var(--text-muted);
  font-size: .8rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.post-excerpt { color: var(--text-muted); font-size: .95rem; }

.read-more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

@media (max-width: 600px) {
  .post-card { grid-template-columns: 1fr; }
  .post-card .thumb img { max-height: 220px; width: 100%; }
}

/* ========== Single post ========== */
.single-post .entry-header { margin-bottom: 24px; }
.single-post .entry-title { font-size: 2rem; }
.single-post .featured-image { margin-bottom: 24px; }
.single-post .entry-content { font-size: 1.05rem; }
.single-post .entry-content p { margin: 0 0 1.2em; }
.single-post .entry-content h2 {
  margin-top: 1.6em;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

/* ========== Amazon CTA button shortcode ========== */
.amz-button-wrap { margin: 24px 0; text-align: center; }

.amz-button {
  display: inline-block;
  background: linear-gradient(90deg, var(--amazon), #ffb84d);
  color: #1a1200 !important;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 34px;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(255,153,0,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}

.amz-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,153,0,.4);
  color: #1a1200 !important;
}

.amz-disclosure {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ========== Pros / Cons box shortcode ========== */
.proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0;
}

@media (max-width: 600px) { .proscons { grid-template-columns: 1fr; } }

.proscons .col {
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.proscons .col.pros { border-left: 4px solid var(--accent); }
.proscons .col.cons { border-left: 4px solid #ff5c5c; }

.proscons h4 { margin-bottom: 10px; font-size: .95rem; text-transform: uppercase; letter-spacing: .5px; }
.proscons ul { margin: 0; padding-left: 18px; }
.proscons li { margin-bottom: 6px; color: var(--text-muted); }

/* ========== Rating badge shortcode ========== */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 18px;
}

/* ========== Sidebar ========== */
.widget {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.widget h2, .widget h3 {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--accent);
  margin-bottom: 14px;
}

.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 10px; font-size: .9rem; }
.widget a { color: var(--text); }
.widget a:hover { color: var(--accent); }

.widget input[type="search"], .widget input[type="text"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
}

/* ========== Contact form ========== */
.contact-form input, .contact-form textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--text);
  margin-bottom: 14px;
  font-family: inherit;
}

.contact-form button {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #06110f;
  font-weight: 800;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
}

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid var(--card-border);
  margin-top: 60px;
  padding: 30px 0;
  color: var(--text-muted);
  font-size: .85rem;
  text-align: center;
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }

/* ========== Pagination ========== */
.pagination { margin-top: 20px; display: flex; gap: 10px; }
.pagination a, .pagination span {
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 8px 14px;
  color: var(--text);
}
.pagination .current { background: var(--accent); color: #06110f; font-weight: 700; border-color: var(--accent); }
