/*
Theme Name: DateHub
Theme URI: https://example.com/datehub
Author: Custom Build
Description: Dark themed Dating/Matchmaking WordPress theme with multiple profiles per user, admin-controlled fields, WooCommerce premium ranking, admin verification and image gallery management.
Version: 1.0
Requires PHP: 7.4
Text Domain: datehub
WC requires at least: 5.0
WC tested up to: 8.0
*/

:root{
  --bg:#0e0f13;
  --bg-card:#181a21;
  --bg-card-hover:#1f2230;
  --border:#2a2d3a;
  --text:#eceef2;
  --text-muted:#9aa0ad;
  --accent:#ff4d6d;
  --accent-dark:#c9314a;
  --premium:#ffc857;
  --verified:#3ddc97;
  --new-tag:#4d9fff;
  --radius:14px;
}

*{box-sizing:border-box;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Segoe UI',system-ui,-apple-system,sans-serif;
  margin:0;
}
a{color:var(--accent);text-decoration:none;}
a:hover{color:var(--accent-dark);}

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

/* ---------- Header ---------- */
.dh-header{
  background:var(--bg-card);
  border-bottom:1px solid var(--border);
  padding:16px 0;
  position:sticky;top:0;z-index:50;
}
.dh-header .container{display:flex;justify-content:space-between;align-items:center;}
.dh-logo{font-size:22px;font-weight:700;color:var(--accent);}
.dh-nav a{margin-left:18px;color:var(--text-muted);font-weight:500;}
.dh-nav a:hover{color:var(--text);}
.dh-btn{
  background:var(--accent);
  color:#fff;
  padding:10px 20px;
  border:none;
  border-radius:30px;
  cursor:pointer;
  font-weight:600;
  transition:.2s;
}
.dh-btn:hover{background:var(--accent-dark);color:#fff;}
.dh-btn.outline{background:transparent;border:1px solid var(--accent);color:var(--accent);}

/* ---------- Search / Filter ---------- */
.dh-search-bar{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  margin:24px 0;
  display:flex;gap:10px;flex-wrap:wrap;align-items:center;
}
.dh-search-bar input[type=text]{
  flex:1;min-width:200px;
  background:var(--bg);
  border:1px solid var(--border);
  color:var(--text);
  padding:10px 14px;
  border-radius:30px;
}
#dh-filter-panel{
  display:none;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px;
  margin-bottom:20px;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:16px;
}
#dh-filter-panel.open{display:grid;}
#dh-filter-panel label{display:block;font-size:13px;color:var(--text-muted);margin-bottom:6px;}
#dh-filter-panel select,#dh-filter-panel input{
  width:100%;background:var(--bg);border:1px solid var(--border);color:var(--text);
  padding:8px 10px;border-radius:8px;
}
#dh-filter-panel .dh-filter-actions{grid-column:1/-1;display:flex;gap:10px;justify-content:flex-end;}

/* ---------- Profile Grid ---------- */
.dh-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:20px;
  margin:24px 0 60px;
}
.dh-card{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  position:relative;
  transition:.2s;
}
.dh-card:hover{background:var(--bg-card-hover);transform:translateY(-3px);}
.dh-card img{width:100%;height:260px;object-fit:cover;display:block;}
.dh-card-body{padding:14px;}
.dh-card-body h3{margin:0 0 4px;font-size:17px;}
.dh-card-body .meta{color:var(--text-muted);font-size:13px;}
.dh-tags{position:absolute;top:10px;left:10px;display:flex;gap:6px;}
.dh-tag{padding:3px 10px;border-radius:20px;font-size:11px;font-weight:700;color:#111;}
.dh-tag.premium{background:var(--premium);}
.dh-tag.new{background:var(--new-tag);color:#fff;}
.dh-tag.verified{background:var(--verified);color:#052;}

/* ---------- Single Profile ---------- */
.dh-profile-header{display:flex;gap:24px;flex-wrap:wrap;margin:30px 0;}
.dh-profile-gallery img{width:100%;max-width:380px;border-radius:var(--radius);border:1px solid var(--border);}
.dh-profile-info h1{margin:0 0 6px;}
.dh-profile-info .meta{color:var(--text-muted);margin-bottom:14px;}
.dh-contact-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;}
.dh-contact-buttons a{
  padding:9px 16px;border-radius:30px;border:1px solid var(--border);
  color:var(--text);font-size:14px;font-weight:600;
}
.dh-contact-buttons a.whatsapp{border-color:#25D366;color:#25D366;}
.dh-contact-buttons a.insta{border-color:#e1306c;color:#e1306c;}
.dh-contact-buttons a.telegram{border-color:#229ED9;color:#229ED9;}
.dh-contact-buttons a.phone{border-color:var(--accent);color:var(--accent);}

/* ---------- Add/Edit Profile Form ---------- */
.dh-form{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:24px;max-width:760px;margin:30px auto;}
.dh-form label{display:block;margin:14px 0 6px;font-size:14px;color:var(--text-muted);}
.dh-form input[type=text],.dh-form input[type=number],.dh-form input[type=file],
.dh-form select,.dh-form textarea{
  width:100%;background:var(--bg);border:1px solid var(--border);color:var(--text);
  padding:10px 12px;border-radius:8px;
}
.dh-form textarea{min-height:110px;}

/* Image upload preview grid */
.dh-image-grid{display:flex;flex-wrap:wrap;gap:12px;margin:10px 0;}
.dh-image-item{position:relative;width:100px;height:100px;border-radius:10px;overflow:hidden;border:1px solid var(--border);}
.dh-image-item img{width:100%;height:100%;object-fit:cover;}
.dh-image-item .dh-remove-img{
  position:absolute;top:2px;right:2px;background:#000000aa;color:#fff;
  width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  cursor:pointer;font-size:13px;border:none;
}
.dh-add-more-photos{margin-top:8px;}

.dh-verify-note{background:#1c2333;border:1px solid var(--border);border-radius:10px;padding:12px;font-size:13px;color:var(--text-muted);margin-top:10px;}

/* Premium banner on dashboard */
.dh-premium-box{
  background:linear-gradient(135deg,#2a2237,#1c1622);
  border:1px solid var(--premium);
  border-radius:var(--radius);
  padding:18px;margin:20px 0;
}
.dh-premium-box h3{color:var(--premium);margin:0 0 6px;}
