/* Textgenify — style.css
   Pastel gradient, glassmorphism, floating icons, responsive */

:root{
  --bg1:#dfe9ff;
  --bg2:#e0f7fa;
  --accent:#7c4dff;
  --card:#ffffffcc;
  --muted:#6b7280;
  --glass: rgba(255,255,255,0.55);
  --glass-strong: rgba(255,255,255,0.7);
  --shadow: 0 10px 30px rgba(16,24,40,0.06);
}

*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:'Poppins',system-ui,Segoe UI,Roboto,'Helvetica Neue',Arial;}
body{background:linear-gradient(135deg,var(--bg1),var(--bg2));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#0f172a;}

/* animated soft background */
.page{min-height:100vh;display:flex;flex-direction:column;align-items:center;}

/* hero */
.hero{width:100%;padding:44px 16px 16px;display:flex;justify-content:center;align-items:center;position:relative}
.hero-inner{max-width:980px;text-align:center;margin-top:6px;animation:fadeUp .9s ease both}
.brand{font-size:40px;margin:0;color:var(--accent);letter-spacing:-0.5px;font-weight:700;font-family:'Space Grotesk', sans-serif}
.tagline{margin:6px 0 0;color:var(--muted);font-weight:500}

/* main card */
.card{max-width:980px;width:92%;margin:18px auto;padding:20px;border-radius:14px;background:linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.6));box-shadow:var(--shadow);backdrop-filter:blur(8px);}
.card-main{padding:28px;border-radius:16px;animation:fadeUp .9s ease 0.15s both}

/* form */
.label{display:block;font-size:13px;color:var(--muted);margin-bottom:8px}
.input,.select{width:100%;padding:12px 14px;border-radius:10px;border:1px solid rgba(15,23,42,0.06);background:white;font-size:15px;outline:none}
.input:focus,.select:focus{box-shadow:0 6px 18px rgba(124,77,255,0.12);border-color:rgba(124,77,255,0.3)}

.row{display:flex;gap:12px;margin-top:10px;align-items:end}
.col{flex:1}
.col.small{flex:0 0 120px}

/* button */
.btn{margin-top:14px;padding:12px 18px;border-radius:12px;border:none;background:linear-gradient(90deg,#8b5cf6,#06b6d4);color:white;font-weight:600;cursor:pointer;position:relative;overflow:hidden}
.btn:focus{outline:none;box-shadow:0 8px 30px rgba(99,102,241,0.18)}
.btn::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));mix-blend-mode:overlay;opacity:0;transition:200ms}
.btn:hover::after{opacity:1}

/* results */
.results{margin-top:20px;display:flex;flex-direction:column;gap:12px}
.result-card{padding:14px;border-radius:12px;background:var(--card);display:flex;justify-content:space-between;align-items:center;border:1px solid rgba(15,23,42,0.03)}
.result-card p{margin:0;font-size:15px;color:#0f172a;line-height:1.4}
.copy-btn{border:none;background:transparent;font-size:16px;cursor:pointer;padding:8px;border-radius:8px}
.copy-btn:hover{background:rgba(15,23,42,0.04)}

/* footer */
.footer{text-align:center;padding:22px 12px;color:var(--muted);font-size:14px}

/* floating background icons */
.bg-icons{position:fixed;inset:0;pointer-events:none;overflow:hidden}
.bg-icons .icon{position:absolute;width:160px;height:160px;opacity:0.08;color:#ffffff;stroke:#ffffff;filter:blur(2px);transform:translate3d(0,0,0)}
.bg-icons .ig{left:4%;top:12%;transform:rotate(-12deg) scale(1.3);}
.bg-icons .li{right:6%;top:8%;transform:rotate(8deg) scale(1.1);}
.bg-icons .x{left:60%;bottom:10%;transform:rotate(-18deg) scale(1.6)}

/* loader */
.loader{width:36px;height:36px;border-radius:50%;margin:8px auto;border:4px solid rgba(124,77,255,0.18);border-top-color:var(--accent);animation:spin 1s linear infinite}

/* animations */
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes fadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}

/* responsive */
@media (max-width:640px){
  .brand{font-size:28px}
  .row{flex-direction:row;gap:8px}
  .bg-icons .icon{width:100px;height:100px}
  .col.small{flex:0 0 92px}
}
