/* ============================================
   Massageplein Modern Template CSS
   Fris, responsive, professioneel
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #3b82a0;
  --primary-dark: #2d6a82;
  --accent: #5a9ab8;
  --accent-light: #e8f1f5;
  --bg-body: #d8d8d8;
  --bg-content: #ffffff;
  --bg-header: linear-gradient(135deg, #3b82a0 0%, #2d6a82 100%);
  --bg-menu: #3b82a0;
  --bg-menu-hover: #2d6a82;
  --bg-block: #f5f5f5;
  --bg-block-header: #3b82a0;
  --bg-block-light: #e8f1f5;
  --text-main: #333333;
  --text-light: #666666;
  --text-white: #ffffff;
  --border: #d0ddd7;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-sm: 4px;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main) !important;
  background-color: var(--bg-body) !important;
  background-image: none !important;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

p { color: var(--text-main) !important; }

a {
  color: var(--primary) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--primary-dark) !important;
  text-decoration: underline;
}
a:visited {
  color: var(--primary) !important;
}

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

/* --- Site Wrapper --- */
.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-content) !important;
  box-shadow: var(--shadow);
  min-height: 100vh;
}

/* --- Site Header --- */
.site-header {
  background: var(--bg-header) !important;
  background-image: none !important;
  min-height: 100px;
  padding: 20px 30px;
  color: var(--text-white) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0;
}

/* --- Site Nav --- */
.site-nav {
  background: var(--bg-menu) !important;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--text-white) !important;
  padding: 12px 18px;
  display: inline-block;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover {
  background: var(--bg-menu-hover) !important;
  text-decoration: none !important;
}

/* --- Site Main --- */
.site-main {
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 16px;
  background: var(--bg-content) !important;
}

/* --- Sidebars --- */
.sidebar-left {
  width: 180px;
  flex-shrink: 0;
}
.sidebar-right {
  width: 180px;
  flex-shrink: 0;
}

/* --- Content Area --- */
.content-area {
  flex: 1;
  min-width: 0;
}

/* --- Site Footer --- */
.site-footer {
  background: var(--bg-header) !important;
  min-height: 60px;
  padding: 20px;
  color: var(--text-white) !important;
  text-align: center;
  font-size: 13px;
}

/* Categorie iconen groter en consistent */
.tableblock img,
.tableblock2 img,
.mod\3\ category\20 \blocks img {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover;
  border-radius: var(--radius);
}

.headertitle {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}
.headertitle a {
  color: var(--text-white) !important;
  text-decoration: none;
}
.headertitle a:hover {
  text-decoration: none;
  opacity: 0.9;
}

.headerslogan {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 4px;
}

.titleslogan {
  float: none !important;
  margin: 0 !important;
}

.banner_header {
  float: none !important;
  margin: 0 !important;
}
.banner_header img {
  border-radius: var(--radius-sm);
}

/* --- Navigation / Menu --- */
#menu,
body > div:first-of-type > table tr:first-child td,
td[colspan="3"] {
  background: var(--bg-menu) !important;
  background-image: none !important;
  padding: 0 !important;
}

#menu a,
td[colspan="3"] a,
body > div:first-of-type > table tr:first-child td a {
  color: var(--text-white) !important;
  padding: 12px 16px;
  display: inline-block;
  font-weight: 500;
  transition: background 0.2s ease;
}
#menu a:hover,
td[colspan="3"] a:hover {
  background: var(--bg-menu-hover) !important;
  text-decoration: none !important;
}

/* --- Content Area --- */
table[width] {
  max-width: 100%;
}

/* Modern block styling (categories, etc.) */
.tableblock,
.tableblock2 {
  background-color: var(--bg-block) !important;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100% !important;
  max-width: 300px;
  margin-bottom: 15px;
}

/* --- Column spacing --- */
td[width] { padding: 12px !important; }

.tableblock td,
.tableblock2 td {
  border: none !important;
  color: var(--text-main) !important;
}

/* Categorie block - nette 2-koloms layout */
.tableblock td > div[style*="float:left"],
.tableblock td > div[style*="float: left"] {
  width: 48% !important;
  margin: 1% !important;
  height: auto !important;
  min-height: 80px;
}

.tableheader,
.tableheader2 {
  background: var(--primary-dark) !important;
  background-image: none !important;
  padding: 10px 15px !important;
}

.tableheader h1.blocks,
.tableheader h2.blocks,
.tableheader2 h1.blocks,
.tableheader2 h2.blocks {
  color: var(--text-white) !important;
  font-size: 16px;
  margin: 0;
  font-weight: 600;
}

.tablefooter,
.tablefooter2 {
  background: var(--primary-dark) !important;
  background-image: none !important;
  height: 8px !important;
}

/* --- Block Card (div-based blocks) --- */
.block-card {
  background: var(--bg-block);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 15px;
}
.block-header {
  background: var(--primary-dark) !important;
  padding: 12px 16px;
}
.block-header h1.blocks,
.block-header h2.blocks {
  color: var(--text-white) !important;
  font-size: 16px;
  margin: 0;
  font-weight: 600;
}
.block-body {
  padding: 12px 14px;
  color: var(--text-main) !important;
}
.block-row {
  padding: 5px 0;
}
.block-footer {
  background: var(--primary-dark) !important;
  height: 8px;
}

/* --- Categorie items --- */
.cat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  min-height: 76px;
}
.cat-item img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}

/* --- Social media row --- */
.social-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
}
.social-col {
  flex: 1;
  text-align: center;
}

/* --- Admin Grid --- */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.admin-item {
  text-align: center;
  padding: 10px;
  background: var(--bg-content);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.admin-item:hover {
  box-shadow: var(--shadow-hover);
}
.admin-item img {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  object-fit: cover;
}
.admin-icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: var(--text-white);
  line-height: 64px;
  text-align: center;
  border-radius: 4px;
  margin: 0 auto;
  font-weight: 600;
  font-size: 18px;
}

/* --- Form Styling --- */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 400px;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,138,110,0.15);
}

input[type="submit"],
input[type="button"],
button {
  background: var(--primary);
  color: var(--text-white);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* --- Footer --- */
.footer {
  background: var(--bg-header) !important;
  background-image: none !important;
  height: auto !important;
  min-height: 60px;
  padding: 20px;
  color: var(--text-white) !important;
  text-align: center;
  font-size: 13px;
}
.footer a {
  color: #c8e0eb !important;
}
.footer a:hover {
  color: #ffffff !important;
}

/* --- Ad Cards / Listings --- */
.overview-item,
.advertentie {
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}
.overview-item:hover,
.advertentie:hover {
  box-shadow: var(--shadow-hover);
}

/* --- Pagination --- */
.paginatie a,
.pagination a {
  display: inline-block;
  padding: 6px 12px;
  margin: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-content);
}
.paginatie a:hover,
.pagination a:hover {
  background: var(--bg-block-light);
  border-color: var(--primary);
  text-decoration: none;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet: 768px - 991px */
@media (max-width: 991px) {
  .site-wrapper {
    margin: 0 10px;
  }
  .site-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .banner_header {
    margin-top: 10px !important;
  }
}

/* Mobile: < 768px */
@media (max-width: 767px) {
  body {
    font-size: 15px;
  }
  .site-wrapper {
    margin: 0;
    box-shadow: none;
  }
  .site-header {
    padding: 15px;
    min-height: auto;
  }
  .headertitle {
    font-size: 22px;
  }
  .site-nav a {
    padding: 10px 8px;
    font-size: 13px;
  }
  .site-main {
    flex-direction: column;
    padding: 10px;
    gap: 10px;
  }
  .sidebar-left,
  .sidebar-right {
    width: 100%;
  }
  .content-area {
    width: 100%;
  }
  input[type="text"],
  input[type="email"],
  input[type="password"],
  textarea,
  select {
    max-width: 100%;
    font-size: 16px;
  }
  table {
    display: block;
    overflow-x: auto;
  }
}

/* Small mobile: < 480px */
@media (max-width: 479px) {
  .headertitle {
    font-size: 18px;
  }
  .headerslogan {
    font-size: 11px;
  }
  .site-nav a {
    padding: 8px 6px;
    font-size: 12px;
  }
  .site-footer {
    padding: 15px 10px;
    font-size: 12px;
  }
}
