/*
Theme Name: NieuwsPersfotografie
Theme URI: https://nieuwspersfotografie.nl
Author: NieuwsPersfotografie
Author URI: https://nieuwspersfotografie.nl
Description: Professioneel WordPress thema voor NieuwsPersfotografie - moderne nieuwswebsite met persfotografie
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nieuwspersfotografie
Tags: news, photography, blog, two-columns, custom-colors, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready
*/

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0099CC;
  --primary-hover: #0088BB;
  --text-dark: #1a1a1a;
  --text-gray: #666;
  --border-color: #e5e5e5;
  --bg-gray: #f9fafb;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-color);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Top Bar */
.top-bar {
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-links {
  display: flex;
  gap: 1.5rem;
}

.top-bar-links a:hover {
  color: var(--primary-color);
}

.btn-subscribe {
  background: var(--primary-color);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-subscribe:hover {
  background: var(--primary-hover);
  color: #fff;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
}

.header-inner {
  padding: 1rem 0;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.site-logo span:first-child {
  color: var(--text-dark);
}

.site-logo span:last-child {
  color: var(--primary-color);
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.875rem;
}

.header-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.header-icons svg {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.secondary-nav {
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  display: flex;
  gap: 1.5rem;
}

.secondary-nav a {
  font-size: 0.875rem;
}

/* Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s;
}

.hero-card:hover {
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.hero-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
}

.hero-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

.hero-title {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.3;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0 1.5rem;
}

.section-header::before,
.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.section-title {
  font-size: 0.875rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* News Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.news-card {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1rem;
  transition: box-shadow 0.3s;
  cursor: pointer;
  border-top: 4px solid var(--primary-color);
}

.news-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-meta {
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.125rem;
  font-weight: bold;
  line-height: 1.4;
}

/* Article Cards */
.article-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.article-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.article-card {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.3s;
  cursor: pointer;
  background: #fff;
}

.article-card:hover {
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.article-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: orange;
  color: #fff;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 0.25rem;
}

.author-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--primary-color);
  color: #fff;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.article-content {
  padding: 1rem;
}

.article-category {
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.article-title {
  font-size: 0.875rem;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.article-meta {
  color: var(--text-gray);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

/* Podcasts */
.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.podcast-card {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.3s;
  cursor: pointer;
  background: #fff;
}

.podcast-card:hover {
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.podcast-cover {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 1.125rem;
  text-align: center;
  padding: 1.5rem;
}

.podcast-cover.green { background: #16a34a; }
.podcast-cover.blue { background: #3b82f6; }
.podcast-cover.pink { background: #ec4899; }
.podcast-cover.red { background: #ef4444; }

/* Button More */
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-more:hover {
  background: var(--primary-color);
  color: #fff;
}

.section-footer {
  text-align: center;
  margin: 2rem 0;
}

/* Footer */
.site-footer {
  background: var(--bg-gray);
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
}

.footer-inner {
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h3 {
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  font-size: 0.875rem;
  color: var(--text-dark);
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icons a {
  color: var(--text-dark);
}

.social-icons svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.75rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-content {
  background: #fff;
  border-radius: 0.5rem;
  padding: 2rem;
  max-width: 32rem;
}

.cookie-content h2 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.cookie-content p {
  font-size: 0.875rem;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cookie-links {
  font-size: 0.75rem;
  color: var(--text-gray);
}

.cookie-links a {
  text-decoration: underline;
  margin-right: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .secondary-nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .article-grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}


/* === NPF Hero 4-up grid fix === */
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero-title { font-size: 1.25rem; }
}


/* === NPF Hero overlay readability fix === */
.hero-card { position: relative; }
.hero-card .hero-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.15), transparent);
}
.hero-card .hero-category {
  color: #fff;
  opacity: 0.9;
}
.hero-card .hero-title,
.hero-card .hero-title a {
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.hero-card .hero-title a:hover { text-decoration: underline; }

/* === NPF Header icons + mobile menu fix === */
.header-icons .mobile-menu { display: none; }
@media (max-width: 768px) {
  .main-nav { display: none; position:absolute; top:100%; left:0; right:0; background:#fff; border-top:1px solid var(--border-color); padding:0.75rem 1rem; flex-direction:column; gap:0.75rem; z-index:50; }
  .main-nav.active { display:flex; }
  .header-icons .mobile-menu { display: inline-block; }
}
@media (min-width: 769px) {
  .main-nav { display:flex; }
  .header-icons .mobile-menu { display:none; }
}
