/*
Theme Name: Ribolow — Любительська Риболовля
Theme URI: https://ribolow.com.ua
Author: Ribolow.com.ua
Description: Веселий блог для аматорів — перший карась, смішні звіти, поради для тих, хто ще вчиться.
Version: 1.0.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: ribolow
Tags: fishing, beginner, fun, amateur, gutenberg
*/
/* КОНЦЕПЦІЯ: "Сонячний ранок на ставку" —
   жовто-помаранчева гама + темно-синій.
   Дружній, трохи наївний, але щирий.
   СИГНАТУРА: великі декоративні іконки-емодзі
   у заголовках секцій та "балончик" лічильника. */
:root {
  --color-sun:      #FFD93D; --color-dawn:    #FFA500;
  --color-deep:     #1B2A4A; --color-mid:     #2C3E70;
  --color-shore:    #E8F4FD; --color-wave:    #4A90D9;
  --color-grass:    #2ECC71; --color-body:    #1A2535;
  --color-pebble:   #6B7A8D; --color-white:   #FFFFFF;
  --font-display:   'Nunito', 'Helvetica Neue', sans-serif;
  --font-body:      'Nunito', 'Helvetica Neue', sans-serif;
  --font-accent:    'Pacifico', cursive;
  --text-xs:0.75rem;--text-sm:0.875rem;--text-base:1rem;
  --text-lg:1.125rem;--text-xl:1.375rem;--text-2xl:2rem;--text-3xl:2.75rem;
  --space-1:0.25rem;--space-2:0.5rem;--space-3:0.75rem;--space-4:1rem;
  --space-6:1.5rem;--space-8:2rem;--space-12:3rem;--space-16:4rem;--space-24:6rem;
  --radius-sm:6px;--radius-md:12px;--radius-lg:24px;--radius-xl:50px;
  --shadow-fun:0 4px 20px rgba(27,42,74,0.12);
  --transition:0.2s ease;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{background:var(--color-shore);color:var(--color-body);font-family:var(--font-body);font-size:var(--text-base);line-height:1.7;-webkit-font-smoothing:antialiased;}
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400&family=Pacifico&display=swap');
h1,h2,h3{font-family:var(--font-display);font-weight:800;color:var(--color-deep);line-height:1.15;}
h4,h5,h6{font-family:var(--font-display);font-weight:700;}
h1{font-size:clamp(1.8rem,5vw,var(--text-3xl));}
h2{font-size:clamp(1.5rem,3.5vw,var(--text-2xl));}
h3{font-size:clamp(1.1rem,2.5vw,var(--text-xl));}
p{margin-bottom:var(--space-4);}a{color:var(--color-wave);text-decoration:none;transition:color var(--transition);}a:hover{color:var(--color-deep);}
strong{font-weight:800;}

/* HEADER */
.site-header{position:sticky;top:0;z-index:100;background:var(--color-deep);box-shadow:0 2px 16px rgba(27,42,74,0.2);}
.header-inner{max-width:1200px;margin:0 auto;padding:0 1.5rem;display:flex;align-items:center;justify-content:space-between;height:64px;}
.site-logo{display:flex;align-items:center;gap:0.75rem;text-decoration:none;}
.site-logo__bubble{width:40px;height:40px;background:var(--color-sun);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.2rem;box-shadow:0 2px 8px rgba(255,217,61,0.4);}
.site-logo__name{font-family:var(--font-accent);font-size:1.6rem;color:var(--color-sun);letter-spacing:0.02em;line-height:1;}
.main-nav ul{list-style:none;display:flex;}
.main-nav a{display:flex;align-items:center;height:64px;padding:0 1rem;font-family:var(--font-body);font-size:0.875rem;font-weight:700;color:rgba(232,244,253,0.6);text-decoration:none;border-radius:var(--radius-sm);transition:all var(--transition);}
.main-nav a:hover{color:var(--color-sun);}

/* HERO */
.hero{background:linear-gradient(160deg,var(--color-deep) 0%,var(--color-mid) 60%,#1E3A6B 100%);padding:var(--space-24) 0 var(--space-16);position:relative;overflow:hidden;}
.hero::before{content:'';position:absolute;bottom:0;left:0;right:0;height:80px;background:var(--color-shore);clip-path:ellipse(60% 80px at 50% 80px);}
.hero-content{max-width:1200px;margin:0 auto;padding:0 1.5rem;position:relative;z-index:1;text-align:center;}
.hero-emoji{font-size:4rem;margin-bottom:1rem;display:block;animation:bob 3s ease-in-out infinite;}
@keyframes bob{0%,100%{transform:translateY(0);}50%{transform:translateY(-8px);}}
.hero-tag{display:inline-flex;align-items:center;gap:0.5rem;background:var(--color-sun);color:var(--color-deep);font-weight:800;font-size:0.8rem;text-transform:uppercase;letter-spacing:0.1em;padding:0.25rem 1rem;border-radius:var(--radius-xl);margin-bottom:1.5rem;}
.hero-title{font-size:clamp(2rem,6vw,3.5rem);color:white;max-width:700px;margin:0 auto 1.5rem;}
.hero-title .yellow{color:var(--color-sun);}
.hero-sub{font-size:1.125rem;color:rgba(232,244,253,0.7);max-width:500px;margin:0 auto 2.5rem;font-weight:400;}

/* КНОПКИ */
.btn{display:inline-flex;align-items:center;gap:0.5rem;padding:0.875rem 1.75rem;font-family:var(--font-body);font-size:0.9375rem;font-weight:800;border:none;cursor:pointer;text-decoration:none;transition:all var(--transition);border-radius:var(--radius-xl);}
.btn-primary{background:var(--color-sun);color:var(--color-deep);box-shadow:0 4px 16px rgba(255,217,61,0.35);}
.btn-primary:hover{background:var(--color-dawn);transform:translateY(-2px);box-shadow:0 6px 20px rgba(255,165,0,0.4);}
.btn-outline{background:transparent;color:white;border:2px solid rgba(255,255,255,0.3);}
.btn-outline:hover{border-color:var(--color-sun);color:var(--color-sun);}

/* КАРТКИ */
.posts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.5rem;max-width:1200px;margin:0 auto;padding:0 1.5rem;}
.post-card{background:white;border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-fun);display:flex;flex-direction:column;transition:transform var(--transition),box-shadow var(--transition);}
.post-card:hover{transform:translateY(-6px);box-shadow:0 10px 32px rgba(27,42,74,0.16);}
.post-card__thumbnail{aspect-ratio:16/9;overflow:hidden;position:relative;}
.post-card__thumbnail img{width:100%;height:100%;object-fit:cover;transition:transform 0.4s ease;}
.post-card:hover .post-card__thumbnail img{transform:scale(1.05);}
.post-card__badge{position:absolute;top:0.75rem;left:0.75rem;background:var(--color-sun);color:var(--color-deep);font-weight:800;font-size:0.7rem;text-transform:uppercase;letter-spacing:0.08em;padding:3px 10px;border-radius:var(--radius-xl);}
.post-card__body{padding:1.5rem;flex:1;display:flex;flex-direction:column;}
.post-card__meta{font-size:0.75rem;color:var(--color-pebble);margin-bottom:0.5rem;display:flex;align-items:center;gap:0.75rem;}
.post-card__title{font-size:1.15rem;font-weight:800;line-height:1.25;margin-bottom:0.75rem;flex:1;}
.post-card__title a{color:var(--color-deep);}
.post-card__title a:hover{color:var(--color-wave);}
.post-card__excerpt{font-size:0.875rem;color:var(--color-pebble);line-height:1.6;}

/* ДЕКОРАТИВНІ СЕКЦІЇ — СИГНАТУРА */
.section-icon{font-size:2.5rem;display:block;margin-bottom:0.5rem;}
.section{padding:4rem 0;}
.section--blue{background:var(--color-deep);}
.section--blue h2{color:white;}.section--blue p{color:rgba(232,244,253,0.6);}
.section-header{max-width:1200px;margin:0 auto 2rem;padding:0 1.5rem;display:flex;justify-content:space-between;align-items:flex-end;}
.section-label{font-size:0.75rem;font-weight:700;text-transform:uppercase;letter-spacing:0.15em;color:var(--color-wave);margin-bottom:0.25rem;display:block;}

/* GUTENBERG */
.entry-content .wp-block-quote{border-left:4px solid var(--color-sun);background:rgba(255,217,61,0.08);padding:1rem 1.5rem;margin:1.5rem 0;border-radius:0 var(--radius-md) var(--radius-md) 0;font-style:italic;}
.entry-content .wp-block-separator{border:none;border-top:2px dashed rgba(27,42,74,0.15);margin:2rem 0;}
.entry-content .wp-block-table{width:100%;border-collapse:collapse;margin:1.5rem 0;}
.entry-content .wp-block-table th{background:var(--color-deep);color:white;font-size:0.75rem;text-transform:uppercase;letter-spacing:0.08em;padding:0.75rem 1rem;text-align:left;}
.entry-content .wp-block-table td{padding:0.75rem 1rem;border-bottom:1px solid rgba(27,42,74,0.08);font-size:0.9375rem;}
.entry-content .wp-block-table tr:nth-child(even) td{background:var(--color-shore);}

/* FOOTER */
.site-footer{background:var(--color-deep);padding:4rem 0 2rem;}
.footer-grid{max-width:1200px;margin:0 auto;padding:0 1.5rem;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:3rem;margin-bottom:3rem;}
.footer-col__title{font-family:var(--font-display);font-size:0.875rem;font-weight:800;color:var(--color-sun);margin-bottom:1rem;}
.footer-col ul{list-style:none;}.footer-col li{margin-bottom:0.5rem;}
.footer-col a{font-size:0.875rem;color:rgba(232,244,253,0.4);}.footer-col a:hover{color:var(--color-sun);}
.footer-bottom{max-width:1200px;margin:0 auto;padding:1.5rem 1.5rem 0;border-top:1px solid rgba(255,255,255,0.08);display:flex;justify-content:space-between;font-size:0.75rem;color:rgba(232,244,253,0.25);}

@media(max-width:1024px){.footer-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:768px){.header-inner{height:auto;padding:0.75rem 1.5rem;flex-wrap:wrap;gap:0.5rem;}.main-nav ul{flex-wrap:wrap;}.posts-grid{grid-template-columns:1fr;}.footer-grid{grid-template-columns:1fr;}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;}}
