/*
Theme Name: SEO Agents Directory
Theme URI: https://example.com/
Author: OpenAI
Description: Responsive agent directory theme with searchable agent cards.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: seo-agents-directory
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f7f4ef;
  color: #1a3c34;
  line-height: 1.5;
  padding-bottom: 70px;
  min-height: 100vh;
}

/* Header / Logo */
.header {
  text-align: center;
  padding: 28px 16px 12px;
}

.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #1a3c34;
  font-family: Georgia, "Times New Roman", serif;
  background: linear-gradient(90deg, #1a3c34 0%, #8b7355 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 2px;
}

.logo-sub .line {
  width: 40px;
  height: 1px;
  background: #c4b5a0;
}

.logo-icon {
  font-size: 10px;
  color: #8b7355;
}

.logo-text {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #8b7355;
  text-transform: uppercase;
  font-weight: 500;
}

/* Search */
.search-wrapper {
  padding: 8px 20px 6px;
}

.search-box {
  display: flex;
  align-items: center;
  background: #1a3c34;
  border-radius: 50px;
  padding: 12px 18px;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(26, 60, 52, 0.15);
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  color: white;
  font-size: 15px;
  outline: none;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.search-icon {
  color: white;
  flex-shrink: 0;
}

.search-hint {
  font-size: 12px;
  color: #7a8a82;
  text-align: center;
  margin-top: 8px;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 16px 16px 0;
  margin-bottom: 18px;
}

.tab {
  background: none;
  border: none;
  font-size: 15px;
  color: #7a8a82;
  padding-bottom: 10px;
  cursor: pointer;
  position: relative;
  font-weight: 500;
}

.tab.active {
  color: #1a3c34;
  font-weight: 600;
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #8b6914;
  border-radius: 2px;
}

/* Agent Card */
.agent-list {
  padding: 0 16px;
}

.agent-card {
  background: white;
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.card-top {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.avatar {
  width: 48px;
  height: 48px;
  background: #e8f0ed;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agent-info h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a3c34;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: #e8f0ed;
  color: #1a3c34;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 500;
}

/* Phone Row */
.phone-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0ece4;
}

.phone-number {
  font-size: 18px;
  font-weight: 600;
  color: #1a3c34;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  opacity: 0.75;
  display: flex;
  align-items: center;
}

.copy-btn:hover {
  opacity: 1;
}

.whatsapp-btn {
  margin-left: auto;
  background: #e8f0ed;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.whatsapp-btn:hover {
  background: #d4e6df;
}

/* Card Footer */
.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #1a3c34;
  text-decoration: none;
  opacity: 0.85;
  font-weight: 500;
}

.footer-link:hover {
  opacity: 1;
}

/* Site Footer */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f7f4ef;
  padding: 14px 16px;
  text-align: center;
  font-size: 13px;
  color: #7a8a82;
  border-top: 1px solid #e8e2d9;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.site-footer a {
  color: #1a3c34;
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (min-width: 480px) {
  .agent-list,
  .search-wrapper {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* WordPress theme compatibility and directory behavior */
body { margin: 0; }
.logo { color: inherit; text-decoration: none; display: inline-block; }
.directory-main { width: min(100% - 32px, 760px); margin: 0 auto; }
.agent-card[hidden], #no-results[hidden] { display: none !important; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar { display:flex; align-items:center; justify-content:center; overflow:hidden; }
.no-agents { text-align:center; padding:24px; color:#66736f; }
button { cursor:pointer; }
