/*
Theme Name: GP Flow Child
Template: generatepress
Version: 1.0.0
Author: ChatGPT
Description: Sequential button flow across multiple random posts with protected final page showing a random code from CSV.
*/
/* ---------- Header ---------- */
.custom-header {
    background-color: #1f2937;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-header a.logo { color:#fff; font-weight:bold; font-size:20px; text-decoration:none; }

.custom-header nav { display:flex; gap:15px; }
.custom-header nav a { color:#fff; text-decoration:none; font-weight:500; }
.custom-header nav a:hover { color:#38bdf8; }

.menu-toggle { display:none; flex-direction:column; cursor:pointer; }
.menu-toggle span { height:3px; width:25px; background:#fff; margin-bottom:5px; border-radius:2px; }

/* ---------- Footer ---------- */
.custom-footer {
    background-color: #111827;
    color: #d1d5db;
    padding: 20px 15px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.custom-footer .footer-links {
    display:flex; flex-wrap:wrap; justify-content:center; gap:15px; margin-bottom:10px;
}

.custom-footer .footer-links a { color:#d1d5db; text-decoration:none; transition:color 0.3s; }
.custom-footer .footer-links a:hover { color:#38bdf8; }

/* Mobile responsiveness */
@media(max-width:768px){
    .custom-header nav { display:none; flex-direction:column; position:absolute; top:60px; right:0; width:200px; padding:10px; background:#1f2937; }
    .custom-header nav.active { display:flex; }
    .menu-toggle { display:flex; }
}

@media(max-width:600px){
    .custom-footer .footer-links { flex-direction:column; gap:8px; }
}

/* ===== Progress Buttons ===== */
.progress-btn {
  display: inline-block;
  padding: 10px 16px;
  margin: 12px 8px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
}
.progress-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
.progress-btn:disabled {
  background: #9aa5b1;
  cursor: not-allowed;
  opacity: .85;
  box-shadow:none;
  transform:none;
}
.progress-btn.done {
  background: #22a06b;
}

/* ===== Final Page Styling ===== */
.blog-page-container {
  background: #0e1525;
  color: #f5f7fa;
  padding: 40px 20px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.random-box {
  background: linear-gradient(135deg, #5b8cff, #3b6dd8);
  color: #fff;
  padding: 15px 25px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.copy-btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
}
.copy-btn:active { transform: scale(0.98); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* ===== Blog Cards ===== */
.blog-card {
  background: #1a2333;
  padding: 20px;
  border-radius: 14px;
  transition: all 0.3s ease;
  border: 1px solid #2a3344;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}
.blog-card h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #fff;
}
.blog-card a {
  text-decoration: none;
  color: #5b8cff;
}
.blog-card p {
  font-size: 15px;
  color: #cfd6e3;
}

/* ===== Comments ===== */
.comments-area, #comments {
  display: block !important;
  visibility: visible !important;
  margin-top: 30px;
}
.comment-respond {
  display: block !important;
}

/* ===== GP Light Modern UI Pack ===== */
:root{
  --gp-bg: #f5f7fa;         
  --gp-surface: #ffffff;    
  --gp-card: #ffffff;       
  --gp-muted: #6b7280;      
  --gp-text: #1f2937;       
  --gp-brand: #2563eb;      
  --gp-hover: #1e40af;      
  --gp-shadow: rgba(0,0,0,0.05);
}

/* Body & Typography */
body {
  background-color: var(--gp-bg);
  color: var(--gp-text);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  transition: all 0.3s ease;
}
h1,h2,h3,h4,h5,h6 {
  color: var(--gp-text);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
p {
  color: var(--gp-muted);
  margin-bottom: 1rem;
}
a {
  color: var(--gp-brand);
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover { color: var(--gp-hover); }

/* Blog Cards / Posts */
.card, .entry-content, .post {
  background-color: var(--gp-card);
  border: none;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 10px var(--gp-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover, .post:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px var(--gp-shadow);
}

/* Post Titles */
.entry-title {
  color: var(--gp-text);
  font-size: 1.3rem;
  margin-bottom: 8px;
  line-height: 1.25;
}
.entry-title a { color: inherit; }
.entry-title a:hover { color: var(--gp-hover); }

/* Post Meta */
.post-meta {
  font-size: 0.9rem;
  color: var(--gp-muted);
  margin-bottom: 18px;
}

/* Content Paragraphs */
.entry-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Images */
.entry-content img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.entry-content img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px var(--gp-shadow);
}

/* Buttons */
button, .button, input[type="submit"] {
  background-color: var(--gp-brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}
button:hover, .button:hover, input[type="submit"]:hover {
  background-color: var(--gp-hover);
}

/* Header & Footer */
.site-header, .site-footer {
  background-color: var(--gp-surface);
  color: var(--gp-text);
  padding: 25px 0;
  box-shadow: 0 2px 6px var(--gp-shadow);
}
.site-footer a { color: var(--gp-muted); }
.site-footer a:hover { color: var(--gp-brand); }

/* Sidebar Widgets */
.widget {
  background-color: var(--gp-card);
  border: none;
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px var(--gp-shadow);
}
.widget-title {
  color: var(--gp-text);
  font-weight: 700;
  margin-bottom: 10px;
}

/* Responsive Adjustments */
@media(max-width:768px){
  .entry-title { font-size: 1.2rem; }
  .card, .post { padding: 18px; }
  button, .button, input[type="submit"] { width: 100%; text-align: center; }
}
