/*
Theme Name: Craftable Worlds
Theme URI: https://www.craftableworlds.com
Description: Blocksy child theme for Craftable Worlds — dark, screenshot-forward design.
Author: Craftable Worlds
Template: blocksy
Version: 1.2.0
*/

/* ============================================================
   Craftable Worlds — dark, screenshot-forward theme
   ============================================================ */

/* Palette override (Blocksy uses --theme-palette-color-1..8 on :root) */
:root{
  --theme-palette-color-1:#25d3ee !important; /* accent - cyan */
  --theme-palette-color-2:#0e9fbc !important; /* accent hover */
  --theme-palette-color-3:#f1f6fb !important; /* headings */
  --theme-palette-color-4:#b7c4d1 !important; /* body text */
  --theme-palette-color-5:#283644 !important; /* borders */
  --theme-palette-color-6:#141f2b !important; /* subtle surface */
  --theme-palette-color-7:#0f1a25 !important; /* body/base surface */
  --theme-palette-color-8:#0d151e !important; /* page background */
  --cw-card:#16212d;
  --cw-amber:#f5a623;
}

/* Base */
body{background-color:#0d151e !important;color:#b7c4d1 !important;}
h1,h2,h3,h4,h5,h6,.entry-title,.entry-title a{color:#f1f6fb;}
a{color:#25d3ee;}
a:hover{color:#7fe7f6;}

/* Header */
.ct-header,.ct-header [data-row]{background-color:#0d151e !important;}
.ct-header{border-bottom:1px solid #1e2b39;}
.ct-header a,.ct-header .ct-menu-link{color:#dbe4ec !important;}
.ct-header a:hover,.ct-header .current-menu-item>a,.ct-header .current-menu-ancestor>a{color:#25d3ee !important;}
.ct-header .ct-icon{color:#dbe4ec;}

/* Wider content for landscape screenshots */
.ct-container{max-width:1240px !important;}
.entry-content.is-layout-constrained{--wp--style--global--content-size:940px;}
.entry-content img{border-radius:8px;}

/* Breadcrumbs aligned with content */
.cw-breadcrumbs{max-width:940px;margin:0 auto 1.6em;padding:0 20px;font-size:.82rem;color:#7c8b9a;}
.cw-breadcrumbs a{color:#94a3b2;text-decoration:none;}
.cw-breadcrumbs a:hover{color:#25d3ee;}

/* Post cards: dark surface, image-first */
.entry-card{
  display:flex;flex-direction:column;
  background:var(--cw-card) !important;
  border:1px solid #24313f;
  border-radius:12px;
  overflow:hidden;
  transition:transform .15s ease,border-color .15s ease;
}
.entry-card:hover{transform:translateY(-3px);border-color:#356074;}
.entry-card .ct-media-container{order:-1;margin:0 0 1.1em;}
.entry-card .ct-media-container img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;}
.entry-card .entry-title a{color:#eef4fa;}
.entry-card .entry-excerpt{color:#93a3b2;}
.entry-card .entry-meta,.entry-card .ct-meta-element-date,.entry-card .ct-meta-element-author,.entry-card .ct-meta-element-author a{color:#7c8b9a;}
.entry-card [class*="ct-term"] a{color:#25d3ee;text-transform:uppercase;letter-spacing:.04em;font-size:.72rem;}

/* Buttons */
.wp-block-button__link,.ct-button{background-color:var(--cw-amber);color:#10171f;border:none;}
.wp-block-button__link:hover,.ct-button:hover{background-color:#ffb733;}

/* Footer */
.ct-footer,#footer{background-color:#0a1017 !important;color:#8593a2;border-top:1px solid #1a2634;}
.ct-footer a{color:#94a3b2;}
