
:root{
  --bg:#07111f;
  --bg2:#0b1628;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.04);
  --line:rgba(255,255,255,.08);
  --text:#f8fafc;
  --muted:#94a3b8;
  --gold1:#FFD700;
  --gold2:#E6B800;
  --white:#ffffff;
  --dark:#111827;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:radial-gradient(circle at top,var(--bg2) 0%,var(--bg) 72%);
  color:var(--text);
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(2,6,23,.72);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line);
}

.nav{
  max-width:1180px;
  margin:0 auto;
  padding:16px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.logo-text{
  font-size:30px;
  font-weight:800;
  letter-spacing:-.5px;
  background:linear-gradient(90deg,#fff4b0,#ffd700,#f5b301,#ffd700,#fff4b0);
  background-size:300%;
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:goldshine 7s linear infinite;
  text-decoration:none;
  white-space:nowrap;
}

@keyframes goldshine{
  0%{background-position:0%}
  100%{background-position:300%}
}

.nav-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.nav-links a{
  padding:10px 16px;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  color:#e5e7eb;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  transition:all .2s ease;
}

.nav-links a:hover{
  background:rgba(255,255,255,.12);
  transform:translateY(-1px);
}

.hero-clean{
  max-width:980px;
  margin:0 auto;
  padding:88px 24px 34px 24px;
  text-align:center;
}

.hero-clean h1{
  margin:0 0 14px 0;
  font-size:48px;
  line-height:1.02;
  letter-spacing:-1.8px;
  color:var(--text);
}

.hero-clean p{
  max-width:760px;
  margin:0 auto;
  font-size:17px;
  line-height:1.7;
  color:var(--muted);
}

.hero-actions{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px;
}

.hero-button{
  display:inline-block;
  text-decoration:none;
  padding:13px 18px;
  border-radius:14px;
  font-weight:700;
  transition:all .2s ease;
}

.hero-button.primary{
  background:linear-gradient(45deg,var(--gold1),var(--gold2));
  color:var(--dark);
  box-shadow:0 10px 26px rgba(255,215,0,.18);
}

.hero-button.primary:hover{
  transform:translateY(-2px);
  background:linear-gradient(45deg,#FFE066,var(--gold1));
}

.hero-button.secondary{
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  color:var(--text);
}

.hero-button.secondary:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.1);
}

.search-wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 24px 18px 24px;
}

.search-input{
  width:100%;
  max-width:560px;
  display:block;
  margin:0 auto;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  color:var(--white);
  outline:none;
  box-shadow:0 8px 22px rgba(0,0,0,.18);
}

.search-input::placeholder{ color:var(--muted); }

.page-section{
  max-width:1180px;
  margin:0 auto 34px auto;
  padding:0 24px;
}

.page-section h2{
  margin:0 0 8px 0;
  font-size:28px;
  letter-spacing:-.8px;
  color:var(--text);
}

.page-section p.section-copy{
  margin:0 0 18px 0;
  color:var(--muted);
  font-size:15px;
}

.category-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}

.category-card{
  display:block;
  text-decoration:none;
  background:linear-gradient(180deg,var(--panel),var(--panel2));
  border:1px solid var(--line);
  border-radius:22px;
  padding:24px;
  color:var(--white);
  transition:all .22s ease;
  box-shadow:0 18px 40px rgba(0,0,0,.15);
}

.category-card:hover{
  transform:translateY(-4px);
  border-color:rgba(255,215,0,.26);
  box-shadow:0 22px 50px rgba(0,0,0,.22),0 0 18px rgba(255,215,0,.12);
}

.category-card h3{
  margin:0 0 8px 0;
  font-size:20px;
  color:var(--white);
}

.category-card p{
  margin:0 0 14px 0;
  color:#cbd5e1;
  font-size:14px;
  line-height:1.6;
}

.category-meta{
  color:#f5d76e;
  font-size:13px;
  font-weight:700;
}

.cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.card{
  display:block;
  background:#fff;
  border-radius:16px;
  padding:24px;
  color:#111827;
  text-decoration:none;
  box-shadow:0 8px 28px rgba(0,0,0,.24);
  transition:all .22s ease;
  border:1px solid rgba(255,255,255,.5);
}

.card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(0,0,0,.3),0 0 18px rgba(255,215,0,.18);
  border-color:rgba(255,215,0,.35);
}

.card:active{
  transform:scale(.985);
  box-shadow:0 10px 28px rgba(255,215,0,.32);
}

.card h3{
  margin:0 0 8px 0;
  font-size:20px;
  color:#111827;
}

.card p{
  margin:0;
  font-size:14px;
  line-height:1.5;
  color:#6b7280;
}

.page-wrap{
  min-height:calc(100vh - 73px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 24px;
}

.tool-card{
  width:min(760px,100%);
  background:#fff;
  color:#111827;
  border-radius:18px;
  padding:38px;
  box-shadow:0 20px 60px rgba(0,0,0,.38);
  text-align:center;
}

.tool-card h2{
  margin:0 0 16px 0;
  font-size:36px;
  letter-spacing:-1px;
}

.tool-card p{
  color:#6b7280;
  margin:0 0 18px 0;
}

.tool-card input[type="file"],
.tool-card textarea,
.tool-card input[type="text"],
.tool-card input[type="number"]{
  width:100%;
  margin:16px 0;
}

.tool-card textarea{
  min-height:140px;
  resize:vertical;
  border:1px solid #d1d5db;
  border-radius:10px;
  padding:12px;
  font:inherit;
}

.tool-card input[type="text"],
.tool-card input[type="number"]{
  border:1px solid #d1d5db;
  border-radius:10px;
  padding:12px;
  font:inherit;
}

.tool-actions{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:12px;
}

.gold-btn{
  display:inline-block;
  background:linear-gradient(45deg,var(--gold1),var(--gold2));
  border:none;
  padding:13px 24px;
  color:#111;
  border-radius:10px;
  font-weight:700;
  cursor:pointer;
  transition:all .22s ease;
  box-shadow:0 8px 20px rgba(255,215,0,.22);
}

.gold-btn:hover{
  background:linear-gradient(45deg,#FFE066,var(--gold1));
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(255,215,0,.38);
}

.secondary-btn{
  display:inline-block;
  background:#111827;
  border:none;
  padding:13px 24px;
  color:#fff;
  border-radius:10px;
  font-weight:700;
  cursor:pointer;
  transition:all .22s ease;
}

.secondary-btn:hover{
  transform:translateY(-2px);
  background:#1f2937;
}

.badge{
  display:inline-block;
  margin-bottom:14px;
  background:#111827;
  color:#f8fafc;
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  font-weight:700;
}

.result-box{
  margin-top:18px;
  text-align:left;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:16px;
  color:#111827;
  white-space:pre-wrap;
}

.dropzone{
  border:2px dashed #d1d5db;
  border-radius:14px;
  padding:28px;
  margin:18px 0;
  background:#f8fafc;
  color:#374151;
  transition:all .2s ease;
}

.dropzone.dragover{
  border-color:#e6b800;
  background:#fffbeb;
  box-shadow:0 0 0 4px rgba(255,215,0,.12);
}

.file-list{
  margin-top:14px;
  text-align:left;
  font-size:14px;
  color:#4b5563;
}

.small{
  font-size:13px;
  color:#9ca3af;
}

.hidden-card{
  display:none!important;
}

.footer-lite{
  max-width:1180px;
  margin:8px auto 40px auto;
  padding:0 24px;
  color:#64748b;
  font-size:13px;
  text-align:center;
}

@media (max-width: 980px){
  .category-grid,.cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-clean h1{font-size:40px}
}

@media (max-width: 640px){
  .category-grid,.cards{grid-template-columns:1fr}
  .hero-clean h1{font-size:32px}
  .nav{align-items:flex-start;flex-direction:column}
}


/* ===== PromptForge mini icon system ===== */
.pf-mini{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  min-width:28px;
  border-radius:10px;
  background:linear-gradient(135deg,#fff4b0,#ffd700,#e6b800,#fff4b0);
  color:#111827;
  font-size:12px;
  font-weight:900;
  letter-spacing:-0.5px;
  box-shadow:0 6px 18px rgba(255,215,0,.20);
  animation:pfGlow 3.8s ease-in-out infinite;
}

.pf-mini.small{
  width:22px;
  height:22px;
  min-width:22px;
  border-radius:8px;
  font-size:10px;
}

@keyframes pfGlow{
  0%{ box-shadow:0 6px 18px rgba(255,215,0,.18); transform:translateY(0px); }
  50%{ box-shadow:0 10px 24px rgba(255,215,0,.30); transform:translateY(-1px); }
  100%{ box-shadow:0 6px 18px rgba(255,215,0,.18); transform:translateY(0px); }
}

.card-top{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.card-top h3{
  margin:0 !important;
}

.tool-title-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-bottom:8px;
}

.tool-title-row h2{
  margin:0 !important;
}

.gold-btn{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.secondary-btn{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.clean-feature-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.clean-panel{
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  padding:22px;
  color:#fff;
  box-shadow:0 18px 40px rgba(0,0,0,.15);
}

.clean-panel h3{
  margin:0 0 10px 0;
  color:#fff;
  font-size:22px;
}

.clean-panel p{
  margin:0;
  color:#cbd5e1;
  line-height:1.6;
}

.clean-links{
  display:grid;
  gap:12px;
}

.clean-links a{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  background:#fff;
  color:#111827;
  border-radius:14px;
  padding:15px 16px;
  font-weight:700;
  transition:all .2s ease;
}

.clean-links a:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(255,215,0,.16);
}

.tool-card input[type="file"]{
  background:#fff;
  border:1px solid #d1d5db;
  border-radius:10px;
  padding:12px;
}

.pdf-suite-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:20px;
}

@media (max-width:980px){
  .clean-feature-grid,
  .pdf-suite-grid{
    grid-template-columns:1fr;
  }
}

/* ===== PromptForge premium homepage styling ===== */

/* Title cleaner */
.hero h1{
font-size:42px !important;
line-height:1.08 !important;
letter-spacing:-1px !important;
max-width:880px;
margin-left:auto !important;
margin-right:auto !important;
text-shadow:0 6px 30px rgba(255,215,0,0.15);
}

/* Category cards gold edge */
.category-grid .category-card{
position:relative;
border:1px solid rgba(255,215,0,0.18) !important;
box-shadow:
0 18px 40px rgba(0,0,0,.16),
inset 0 1px 0 rgba(255,255,255,.04);
transition:all .25s ease;
}

/* Hover effect */
.category-grid .category-card:hover{
transform:translateY(-4px);
border-color:rgba(255,215,0,.42) !important;
box-shadow:
0 22px 50px rgba(0,0,0,.22),
0 0 22px rgba(255,215,0,.18);
}

/* PF badge ONLY for homepage cards */
.home-category-top{
display:flex;
align-items:center;
gap:10px;
margin-bottom:10px;
}

.home-pf{
display:inline-flex;
align-items:center;
justify-content:center;
width:26px;
height:26px;
min-width:26px;
border-radius:9px;
font-size:12px;
font-weight:700;
background:linear-gradient(135deg,#FFD84D,#F3B400);
color:#000;
box-shadow:0 4px 12px rgba(255,215,0,.35);
}

/* Remove blue PF texts */
.tools-list a,
.tool-list a{
color:inherit !important;
}

/* Clean tool links */
.tools-list a:hover{
text-decoration:underline;
}


/* ===== PromptForge homepage final override ===== */

/* Hero title cleaner */
.hero-clean h1,
.hero h1{
  font-size:42px !important;
  line-height:1.08 !important;
  letter-spacing:-1px !important;
  text-shadow:0 8px 28px rgba(255,215,0,0.10) !important;
}

/* Main category cards: PF allowed + premium gold edge */
.category-grid .category-card{
  border:1px solid rgba(255,215,0,0.22) !important;
  box-shadow:
    0 18px 40px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.04) !important;
}

.category-grid .category-card:hover{
  transform:translateY(-4px) !important;
  border-color:rgba(255,215,0,.44) !important;
  box-shadow:
    0 22px 50px rgba(0,0,0,.22),
    0 0 22px rgba(255,215,0,.18) !important;
}

/* PF only visible in main category cards */
.category-grid .category-card .pf-mini,
.category-grid .category-card .home-pf{
  display:inline-flex !important;
}

/* Hide PF in Most used tools and other normal tool cards */
.cards .card .pf-mini,
.cards .card .home-pf,
.clean-links .pf-mini,
.clean-links .home-pf{
  display:none !important;
}

/* Keep normal tool card title layout clean */
.cards .card .card-top,
.cards .card .clean-tool-top,
.cards .card .tool-title-row{
  display:block !important;
  margin-bottom:8px !important;
}

.cards .card .card-top h3,
.cards .card .clean-tool-top h3,
.cards .card .tool-title-row h3,
.cards .card .tool-title-row h2{
  margin:0 !important;
}

/* Remove blue-looking text in link groups */
.clean-links a,
.clean-links a:visited,
.clean-links a:hover,
.clean-links a:active,
.cards .card,
.cards .card:visited,
.cards .card:hover,
.cards .card:active{
  color:inherit !important;
  text-decoration:none !important;
}
