/*
 Theme Name:   Charity Help Lite Child
 Theme URI:    https://fundacjanoproblem.pl
 Description:  Profesjonalny motyw dla Fundacji No Problem
 Author:       Fundacja No Problem
 Author URI:   https://fundacjanoproblem.pl
 Template:     charity-help-lite
 Version:      3.0.0
 License:      GNU General Public License v2 or later
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@500;600;700;800;900&display=swap');

:root {
  /* PROFESSIONAL COLOR PALETTE - SIEPOMAGA/ZRZUTKA STYLE */
  --fnp-primary: #E53935;         /* Vibrant Action Red */
  --fnp-primary-hover: #C62828;   /* Darker Red */
  --fnp-secondary: #F3F4F6;       /* Soft Gray Backgrounds */
  --fnp-dark: #111827;            /* Deep Navy Black */
  --fnp-text: #374151;            /* Main Readable Text */
  --fnp-gray: #6B7280;            /* Subtle Text */
  --fnp-bg: #F9FAFB;              /* Base App Background */
  --fnp-surface: #FFFFFF;         /* White Cards & Panels */
  --fnp-animals: #F59E0B;         /* Amber for Animals */
  --fnp-children: #06B6D4;        /* Cyan for Children */
  
  /* SHAPES & SHADOWS */
  --fnp-radius: 12px;
  --fnp-radius-sm: 8px;
  --fnp-radius-pill: 9999px;
  --fnp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --fnp-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* TYPOGRAPHY */
  --fnp-font-heading: 'Poppins', sans-serif;
  --fnp-font-body: 'Inter', sans-serif;
  --fnp-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- GLOBAL STYLES --- */
*, *::before, *::after { 
  box-sizing: border-box; 
}

body { 
  font-family: var(--fnp-font-body); 
  background-color: var(--fnp-bg); 
  color: var(--fnp-text); 
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fnp-font-heading);
  color: var(--fnp-dark);
  font-weight: 700;
  margin-top: 0;
}

.fnp-container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 24px; 
}

/* --- BUTTONS --- */
.fnp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fnp-font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--fnp-radius-pill);
  padding: 14px 32px;
  text-decoration: none;
  transition: var(--fnp-transition);
  border: none;
  cursor: pointer;
}

.fnp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.fnp-btn-donate,
.btn-primary {
  background-color: var(--fnp-primary);
  color: white !important;
  box-shadow: 0 4px 14px 0 rgba(229, 57, 53, 0.39);
}

.fnp-btn-donate:hover,
.btn-primary:hover {
  background-color: var(--fnp-primary-hover);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.5);
}

.fnp-btn-animals {
  background-color: var(--fnp-animals);
  color: white !important;
  box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.39);
}
.fnp-btn-animals:hover { filter: brightness(0.9); }

.fnp-btn-children {
  background-color: var(--fnp-children);
  color: white !important;
  box-shadow: 0 4px 14px 0 rgba(6, 182, 212, 0.39);
}
.fnp-btn-children:hover { filter: brightness(0.9); }

/* --- HERO SECTION --- */
.fnp-hero {
  background-color: var(--fnp-surface);
  padding: 80px 24px;
  border-bottom: 1px solid #E5E7EB;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.fnp-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--fnp-animals) 0%, var(--fnp-primary) 50%, var(--fnp-children) 100%);
}

.fnp-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.fnp-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--fnp-dark);
  letter-spacing: -0.02em;
}

.fnp-hero-sub {
  font-size: 1.25rem;
  color: var(--fnp-gray);
  margin-bottom: 40px;
  font-weight: 400;
}

.fnp-hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* --- SPLIT SECTION (ANIMALS / CHILDREN) --- */
.fnp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 24px;
}

.fnp-split-animals, 
.fnp-split-children {
  border-radius: var(--fnp-radius);
  padding: 48px 32px;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--fnp-shadow);
  transition: var(--fnp-transition);
}

.fnp-split-animals:hover, 
.fnp-split-children:hover {
  transform: translateY(-4px);
  box-shadow: var(--fnp-shadow-hover);
}

.fnp-split-animals { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); }
.fnp-split-children { background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%); }

.fnp-split-icon { 
  font-size: 64px; 
  margin-bottom: 24px; 
  background: white;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.fnp-split h2 { 
  color: white; 
  margin-bottom: 16px; 
  font-size: 2rem; 
}

.fnp-split p { 
  margin-bottom: 32px; 
  opacity: 0.95; 
  font-size: 1.1rem; 
}

.fnp-split .fnp-btn { 
  background: white !important; 
  color: var(--fnp-dark) !important; 
  box-shadow: none; 
}

.fnp-split .fnp-btn:hover { 
  background: var(--fnp-bg) !important; 
}

/* --- CARDS LISTING (FUNDRAISERS) --- */
.fnp-latest {
  padding: 60px 0;
}

.fnp-section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 48px;
  color: var(--fnp-dark);
}

.fnp-zbiorki-grid, 
.zbiórki-grid,
.podopieczni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.fnp-card, 
.zbiorka-card,
.podopieczny-card {
  background: var(--fnp-surface);
  border-radius: var(--fnp-radius);
  box-shadow: var(--fnp-shadow);
  overflow: hidden;
  transition: var(--fnp-transition);
  display: flex;
  flex-direction: column;
  border: 1px solid #E5E7EB;
}

.fnp-card:hover, 
.zbiorka-card:hover,
.podopieczny-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fnp-shadow-hover);
  border-color: #D1D5DB;
}

.fnp-card img, 
.zbiorka-thumbnail img,
.podopieczny-thumbnail img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 1px solid #F3F4F6;
}

.fnp-card-body, 
.zbiorka-info,
.podopieczny-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.fnp-card-title, 
.zbiorka-info h3,
.podopieczny-info h3 {
  font-size: 1.25rem;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.fnp-card-excerpt, 
.zbiorka-info p,
.podopieczny-info p {
  color: var(--fnp-gray);
  font-size: 0.95rem;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* PROGRESS BAR */
.fnp-progress, 
.zbiorka-progress .progress-bar {
  background: #E5E7EB;
  height: 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}

.fnp-progress-fill, 
.zbiorka-progress .progress-fill {
  height: 100%;
  background: var(--fnp-primary);
  border-radius: 4px;
}

/* Dynamic colors based on class */
.animals .fnp-progress-fill, 
.animals .progress-fill { background: var(--fnp-animals); }
.children .fnp-progress-fill, 
.children .progress-fill { background: var(--fnp-children); }

.fnp-amounts, 
.zbiorka-progress .progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fnp-dark);
  margin-bottom: 24px;
}

.fnp-amounts span:last-child,
.zbiorka-progress .progress-text span:last-child { 
  color: var(--fnp-gray); 
  font-weight: 400; 
}

/* Make primary buttons inside cards block level */
.zbiorka-info .btn,
.podopieczny-info .btn {
  display: block;
  text-align: center;
  background: var(--fnp-primary);
  color: white;
  padding: 12px;
  border-radius: var(--fnp-radius-sm);
  font-weight: 600;
  font-family: var(--fnp-font-heading);
  text-decoration: none;
  transition: 0.3s;
  border: none;
}
.zbiorka-info .btn:hover,
.podopieczny-info .btn:hover { 
  background: var(--fnp-primary-hover); 
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
}

/* --- BADGES --- */
.fnp-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--fnp-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fnp-badge.animals { background-color: #FEF3C7; color: #92400E; }
.fnp-badge.children { background-color: #DBEAFE; color: #1E40AF; }
.fnp-badge.urgent { background-color: #FEE2E2; color: #991B1B; }


/* --- BRAND OVERRIDES (HEADER & NAV) --- */
.site-header,
.site-header.siteinner {
  background: var(--fnp-surface) !important;
  border-bottom: 1px solid #E5E7EB !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
  padding: 10px 0 !important;
}

.logo img {
  max-height: 55px !important; /* Perfect size for black logo */
  width: auto !important;
  margin-top: 5px;
}

.logo h1 a, .logo p { 
  display: none !important; /* Hide default text if custom logo exists, keeps it clean */
}

/* NAV ADJUSTMENTS FOR LIGHT HEADER */
.mainmenu, .header-menu, .header-menu ul, .main-navigation, nav, #site-navigation, .site-header nav {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.header-menu ul {
  display: flex !important;
  align-items: center !important;
  list-style: none !important;
  gap: 4px !important;
}

.header-menu ul li a {
  color: var(--fnp-dark) !important;
  font-family: var(--fnp-font-heading) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding: 10px 16px !important;
  border-radius: var(--fnp-radius-sm);
  transition: all 0.2s !important;
}

.header-menu ul li a:hover {
  color: var(--fnp-primary) !important;
  background: #F3F4F6 !important;
}

/* "WESPRZYJ NAS" BUTTON IN NAV */
.header-menu ul li.menu-item-wesprzyj a,
.header-menu ul li:last-child a {
  background: var(--fnp-primary) !important;
  color: white !important;
  border-radius: var(--fnp-radius-pill) !important;
  padding: 10px 24px !important;
  margin-left: 12px !important;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3) !important;
}

.header-menu ul li.menu-item-wesprzyj a:hover,
.header-menu ul li:last-child a:hover {
  background: var(--fnp-primary-hover) !important;
  box-shadow: 0 6px 14px rgba(229, 57, 53, 0.4) !important;
  transform: translateY(-1px) !important;
}

/* Hide original donate button from parent theme */
a.donatenow { display: none !important; }


/* --- AFFILIATE & TRUST SECTIONS --- */
.fnp-trust { 
  background: var(--fnp-surface); 
  padding: 80px 24px; 
  border-top: 1px solid #E5E7EB;
}
.fnp-trust-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 24px; 
  max-width: 1000px; 
  margin: 0 auto; 
}
.fnp-trust-box { 
  border: 1px solid #E5E7EB; 
  border-radius: var(--fnp-radius); 
  padding: 32px 24px; 
  text-align: center; 
  background: var(--fnp-surface);
  transition: var(--fnp-transition);
}
.fnp-trust-box:hover {
  box-shadow: var(--fnp-shadow);
  border-color: #D1D5DB;
}
.fnp-trust-box strong { 
  display: block; 
  color: var(--fnp-gray); 
  font-size: 0.8rem; 
  text-transform: uppercase; 
  letter-spacing: 0.05em; 
  margin-bottom: 8px; 
}
.fnp-trust-box span { 
  font-size: 1.25rem; 
  font-weight: 700; 
  color: var(--fnp-dark); 
}

.fnp-affiliate { 
  background: var(--fnp-bg); 
  padding: 100px 24px; 
  text-align: center; 
  border-top: 1px solid #E5E7EB; 
  border-bottom: 1px solid #E5E7EB;
}
.fnp-affiliate h2 { 
  font-size: clamp(2rem, 4vw, 2.5rem); 
  margin-bottom: 16px; 
}
.fnp-affiliate-sub {
  color: var(--fnp-gray);
  font-size: 1.15rem;
  margin-bottom: 48px;
}
.fnp-steps { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 40px; 
  max-width: 900px;
  margin: 0 auto 48px auto; 
}
.fnp-step { 
  text-align: center; 
  padding: 32px 24px;
  background: var(--fnp-surface);
  border-radius: var(--fnp-radius);
  box-shadow: var(--fnp-shadow);
  border: 1px solid #E5E7EB;
}
.fnp-step span { 
  font-size: 48px; 
  display: block; 
  margin-bottom: 16px; 
}
.fnp-step p {
  font-weight: 500;
  color: var(--fnp-dark);
}


/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
  .fnp-split { 
    grid-template-columns: 1fr; 
    margin: 32px auto; 
  }
  .fnp-trust-grid { 
    grid-template-columns: 1fr 1fr; 
  }
  .fnp-steps { 
    grid-template-columns: 1fr; 
  }
  
  /* Mobile Nav Fixes */
  .header-menu ul { 
    flex-direction: column !important;
    background: var(--fnp-surface) !important; 
    padding: 16px !important;
    box-shadow: var(--fnp-shadow) !important;
    position: absolute;
    top: 100%; left: 0; right: 0;
    z-index: 100;
  }
  .header-menu ul li a {
    width: 100%;
    padding: 12px 16px !important;
  }
  .header-menu ul li.menu-item-wesprzyj a,
  .header-menu ul li:last-child a {
    margin: 8px 0 0 0 !important;
    width: 100% !important;
    text-align: center !important;
  }
  
  /* Mobile Toggle */
  .toggle a.toggleMenu {
    background: var(--fnp-primary) !important;
    color: white !important;
    border-radius: var(--fnp-radius-sm);
  }
}

@media (max-width: 480px) {
  .fnp-trust-grid { 
    grid-template-columns: 1fr; 
  }
}

/* --- FIX SIDEBAR & LAYOUT (FROM PREVIOUS AUDIT) --- */
#sidebar, .sidebar { 
  display: none !important; 
  width: 0 !important; 
  visibility: hidden !important; 
}
.site-maincontentarea { 
  width: 100% !important; 
  float: none !important; 
  margin: 0 auto !important; 
}
header.entry-header { 
  display: none; /* Hide duplicate titles if any */
}
