/*
Theme Name: Hello Elementor Child
Description: 基於 Hello Elementor
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/
@import url("../hello-elementor/style.css");

/* ===== :root 顏色系統 ===== */
:root {
    --gd-primary: #1a73e8;
    --gd-secondary: #0d47a1;
    --gd-accent: #34c759;
    --gd-bg: #f8faff;
    --gd-text: #2d3748;
    --gd-white: #ffffff;
    --gd-gray: #94a3b8;
    --gd-border: #e2e8f0;
    --gd-light-bg: #f1f5f9;
    --gd-success-bg: #ecfdf5;
}

:root{
  --we-primary: #0b84ff;
  --we-accent: #0fba82;
  --we-dark: #0b1724;
  --we-muted: #6b7280;
  --we-bg: #ffffff;
  --we-card: #f8fafc;
  --we-radius: 12px;
  --we-max-width: 1200px;
  --we-gap: 18px;
  --we-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%;margin:0;padding:0;background:var(--we-bg);font-family:var(--we-font);color:var(--we-dark);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
a{color:var(--we-primary);text-decoration:none}
a:hover{text-decoration:underline}
.we-container{max-width:var(--we-max-width);margin:0 auto;padding:0 20px}
.we-section-title{font-size:20px;color:var(--we-dark);margin:0 0 14px;font-weight:600}

/* HERO */
.we-hero{display:flex;align-items:center;justify-content:space-between;padding:64px 0;gap:24px}
.we-hero-left{flex:1;padding-right:28px;min-width:0}
.we-title{font-size:40px;line-height:1.05;margin:0 0 12px}
.we-sub{color:var(--we-muted);margin:0 0 18px;font-size:16px}
.we-search{display:flex;gap:10px;align-items:center}
.we-search .we-input[type="search"]{flex:1;padding:10px 12px;border-radius:10px;border:1px solid #e6eef6;font-size:14px}
.we-cta{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;background:var(--we-primary);color:#fff;border-radius:10px;border:0;cursor:pointer}

/* HERO CARD (featured post) */
.we-hero-right{flex:1;display:flex;justify-content:center;min-width:0}
.we-hero-card{background:var(--we-card);padding:16px;border-radius:16px;width:100%;max-width:480px;box-shadow:0 10px 30px rgba(11,23,36,.06);border:1px solid rgba(11,23,36,.03)}
.we-hero-card a{color:inherit}
.we-hero-img{width:100%;height:200px;object-fit:cover;border-radius:10px;margin-bottom:12px}
.we-hero-img-placeholder{height:200px;border-radius:10px;background:linear-gradient(90deg,#eef7ff,#ffffff)}
.we-hero-card-title{font-size:18px;margin:0 0 8px}
.we-hero-card-excerpt{color:var(--we-muted);font-size:14px;margin:0}

/* CATEGORIES & LATEST POSTS */
.we-categories{padding:42px 0}
.we-cat-links{display:flex;gap:8px;flex-wrap:wrap}
.we-cat{display:inline-block;padding:6px 10px;border-radius:999px;background:#f3f7ff;border:1px solid rgba(11,23,36,.03);font-size:13px;color:var(--we-primary)}

/* GRID */
.we-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--we-gap)}
.we-card{background:var(--we-card);padding:16px;border-radius:var(--we-radius);border:1px solid rgba(11,23,36,.04)}
.we-post-card{display:flex;flex-direction:column;gap:10px}
.we-post-thumb{width:100%;height:160px;object-fit:cover;border-radius:10px}
.we-thumb-placeholder{height:160px;border-radius:10px;background:linear-gradient(90deg,#f7fbff,#ffffff)}
.we-post-card h3{margin:0;font-size:16px;color:var(--we-dark)}
.we-meta{color:var(--we-muted);font-size:13px;margin:6px 0}

/* SIDEBAR AREA */
.we-sidebar-section{padding:28px 0}
.we-grid-sidebar{display:grid;grid-template-columns:2fr 1fr;gap:20px}
.we-popular{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.we-popular li a{color:var(--we-dark);font-size:14px}
.we-popular li a:hover{color:var(--we-primary)}

/* TESTIMONIALS (optional) */
.we-testimonials{padding:42px 0;background:linear-gradient(180deg,#fbfdff 0%,#ffffff 100%)}
.we-test{padding:14px;border-radius:12px;background:var(--we-card);border:1px solid rgba(11,23,36,.03)}

/* ARTICLE STYLES (single post list preview) */
.we-post-card p{margin:0;color:var(--we-muted);font-size:14px;line-height:1.5}

/* FOOTER */
.we-footer{padding:28px 0;border-top:1px solid #eef2f6;color:var(--we-muted)}
.we-footer-inner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}

/* FORM INPUTS */
.we-input{padding:10px;border-radius:10px;border:1px solid #e6eef6;font-size:14px;background:#fff}
.we-submit{padding:10px;border-radius:10px;border:0;background:var(--we-accent);color:#fff;cursor:pointer}

/* UTILS */
.we-muted{color:var(--we-muted);font-size:13px}
.we-icon{width:44px;height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#fff}
img{max-width:100%;display:block}

/* RESPONSIVE */
@media (max-width:980px){
  .we-grid{grid-template-columns:repeat(2,1fr)}
  .we-grid-sidebar{grid-template-columns:1fr}
  .we-hero{flex-direction:column;align-items:stretch;padding:40px 0}
  .we-hero-left{padding-right:0}
  .we-hero-img{height:180px}
}

@media (max-width:600px){
  .we-grid{grid-template-columns:1fr}
  .we-hero{padding:24px 0}
  .we-title{font-size:26px}
  .we-hero-card{max-width:100%}
  .we-hero-img{height:140px}
  .we-search{flex-direction:column;align-items:stretch}
  .we-search .we-input[type="search"]{width:100%}
  .we-cta{width:100%;justify-content:center}
  .we-post-thumb{height:140px}
}

/* Accessibility focus */
a:focus, button:focus, input:focus, select:focus, textarea:focus{outline:3px solid rgba(11,132,255,.12);outline-offset:2px}

/* Small tweaks for Elementor Hello theme compatibility */
.elementor-widget .we-container{padding-left:12px;padding-right:12px}
