/*
Theme Name: ToolPotHub - وعاء الأدوات
Description: قالب مخصص لموقع وعاء الأدوات - أدوات مجانية متنوعة بمكان واحد
Author: Tarek
Version: 1.0
Text Domain: toolpothub
*/

:root{
  --tph-teal: #1D9E75;
  --tph-teal-dark: #5DCAA5;
  --tph-orange: #EF9F27;
  --tph-orange-light: #FAC775;
  --tph-bg: #0E0E0D;
  --tph-card-bg: #1A1A18;
  --tph-text: #F1EFE8;
  --tph-text-muted: #B4B2A9;
  --tph-border: #333331;
  --radius: 14px;
}

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

html{scroll-behavior:smooth}

body{
  font-family: 'Cairo', 'Tajawal', Tahoma, sans-serif;
  background: var(--tph-bg);
  color: var(--tph-text);
  line-height: 1.7;
  direction: rtl;
}

a{color:inherit;text-decoration:none}
ul{list-style:none}
img{max-width:100%;display:block}

.container{
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
.site-header{
  background: var(--tph-card-bg);
  border-bottom: 1px solid var(--tph-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 20px;
}
.site-branding{
  display:flex;
  align-items:center;
  gap:12px;
}
.site-branding img{
  height:42px;
  width:auto;
}
.site-branding .brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.3;
}
.site-branding .brand-ar{
  font-weight:700;
  font-size:18px;
  color: var(--tph-teal-dark);
}
.site-branding .brand-en{
  font-size:12px;
  color: var(--tph-text-muted);
  letter-spacing: .5px;
}
.main-nav ul{
  display:flex;
  gap: 28px;
}
.main-nav a{
  font-weight:600;
  font-size:15px;
  color: var(--tph-text);
  transition: color .2s;
}
.main-nav a:hover{color:var(--tph-teal)}

.menu-toggle{
  display:none;
  background:none;
  border:none;
  font-size:26px;
  cursor:pointer;
  color: var(--tph-teal-dark);
}

/* ---------- Hero ---------- */
.hero{
  background: linear-gradient(180deg, #16241F 0%, var(--tph-bg) 100%);
  padding: 64px 0 48px;
  text-align:center;
}
.hero h1{
  font-size: 34px;
  font-weight:700;
  color: var(--tph-teal-dark);
  margin-bottom: 14px;
}
.hero p{
  font-size:16px;
  color: var(--tph-text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
}
.search-box{
  max-width: 480px;
  margin: 0 auto;
  display:flex;
  background:var(--tph-card-bg);
  border:1px solid var(--tph-border);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.search-box input{
  flex:1;
  border:none;
  outline:none;
  font-size:15px;
  padding: 10px 6px;
  background:transparent;
  font-family:inherit;
}
.search-box button{
  background: var(--tph-teal);
  color:#fff;
  border:none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight:600;
  cursor:pointer;
  font-family:inherit;
}

/* ---------- Tool categories filter ---------- */
.categories-bar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  padding: 28px 0 8px;
}
.categories-bar a{
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--tph-border);
  font-size:14px;
  font-weight:600;
  color: var(--tph-text-muted);
  background:var(--tph-card-bg);
}
.categories-bar a.active,
.categories-bar a:hover{
  background: var(--tph-teal);
  border-color: var(--tph-teal);
  color:#fff;
}

/* ---------- Tools grid ---------- */
.tools-section{padding: 32px 0 64px}
.tools-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.tool-card{
  background: var(--tph-card-bg);
  border: 1px solid var(--tph-border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .15s, box-shadow .15s;
}
.tool-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  border-color: var(--tph-teal);
}
.tool-icon{
  width:48px;height:48px;
  border-radius:12px;
  background: #16241F;
  color: var(--tph-teal-dark);
  display:flex;align-items:center;justify-content:center;
  font-size:22px;
  margin-bottom:14px;
}
.tool-card h3{
  font-size:17px;
  margin-bottom:6px;
}
.tool-card p{
  font-size:14px;
  color: var(--tph-text-muted);
  margin-bottom:16px;
}
.tool-card .btn{
  display:inline-block;
  background: var(--tph-orange);
  color:#fff;
  padding:9px 18px;
  border-radius:8px;
  font-size:14px;
  font-weight:600;
}
.tool-card .btn:hover{opacity:.9}

/* ---------- Request tool banner ---------- */
.request-banner{
  background: #0F6E56;
  color:#fff;
  border-radius: var(--radius);
  padding: 36px 30px;
  text-align:center;
  margin-top: 48px;
}
.request-banner h2{font-size:22px;margin-bottom:10px}
.request-banner p{color:#cfe9e1;margin-bottom:20px}
.request-banner .btn-light{
  display:inline-block;
  background:#fff;
  color: #085041;
  padding:11px 26px;
  border-radius:8px;
  font-weight:700;
}

/* ---------- Footer ---------- */
.site-footer{
  background:var(--tph-card-bg);
  border-top:1px solid var(--tph-border);
  padding: 36px 0;
  margin-top: 40px;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
}
.footer-inner p{font-size:13px;color:var(--tph-text-muted)}
.footer-links{display:flex;gap:18px}
.footer-links a{font-size:13px;color:var(--tph-text-muted)}
.footer-links a:hover{color:var(--tph-teal)}

/* ---------- Responsive ---------- */
@media (max-width: 820px){
  .main-nav{
    position:fixed;
    inset: 62px 0 auto 0;
    background:var(--tph-card-bg);
    border-bottom:1px solid var(--tph-border);
    transform: translateY(-120%);
    transition: transform .25s;
  }
  .main-nav.open{transform: translateY(0)}
  .main-nav ul{flex-direction:column;padding:16px 20px;gap:16px}
  .menu-toggle{display:block}
  .hero h1{font-size:26px}
}
