:root {
    --bg: #0f172a;
    --card: #1e293b;
    --text: #f1f5f9;
    --accent: #6366f1; /* Indigo Color */
    --green: #22c55e;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Inter', sans-serif; /* Ye hai wo magic font */
}

body {
    background-color: var(--bg);
    color: var(--text);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header { text-align: center; margin-bottom: 25px; }
h1 { 
    font-size: 2.2rem; 
    font-weight: 800; 
    background: linear-gradient(90deg, #fff, #6366f1); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}
.subtitle { color: #94a3b8; margin-top: 8px; font-size: 0.95rem; }

.input-container {
    width: 100%;
    max-width: 600px;
    position: sticky;
    top: 15px;
    z-index: 10;
}

textarea {
    width: 100%;
    height: 60px;
    background: var(--card);
    border: 2px solid #334155;
    color: #fff;
    padding: 12px;
    font-size: 1.1rem;
    border-radius: 10px;
    outline: none;
    resize: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

textarea:focus { border-color: var(--accent); }

.results-container {
    width: 100%;
    max-width: 600px;
    margin-top: 25px;
    display: grid;
    gap: 12px;
}

.font-card {
    background: var(--card);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.font-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.text-preview {
    font-size: 1.1rem;
    word-break: break-all;
    margin-right: 15px;
    color: #e2e8f0;
}

.copy-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 70px;
}

.copy-btn.copied { background: var(--green); }

@media (max-width: 500px) {
    h1 { font-size: 1.8rem; }
    .font-card { flex-direction: column; text-align: center; gap: 10px; }
    .text-preview { margin-right: 0; }
    .copy-btn { width: 100%; }
}
/* --- CSS File ke sabse neeche add kar --- */
.load-more-container {
    margin-top: 20px;
    text-align: center;
    width: 100%;
    padding-bottom: 40px;
}

#loadMoreBtn {
    background: transparent;
    border: 2px solid #334155; /* Border color */
    color: #94a3b8;            /* Text color */
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.3s;
}

#loadMoreBtn:hover {
    border-color: #6366f1;     /* Hover color (Purple/Blue) */
    color: #fff;
    background: rgba(99, 102, 241, 0.1);
}

.hidden { display: none; }
/* --- NEW PREMIUM SEO CONTENT STYLE --- */
/* --- NEW SEO SECTION STYLE (Phone Friendly) --- */
.seo-section {
    width: 100%;
    background: #0f172a; 
    padding: 60px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
}

.content-wrapper {
    max-width: 900px;
    width: 100%;
}

.intro-text { text-align: center; margin-bottom: 50px; }

.intro-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

/* Ye Text ko Chamkayega */
.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-text p {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* --- PERFECT GRID SYSTEM (PC, Tablet, Phone) --- */

/* Default (Phone View - 1 Box per line) */
.features-grid {
    display: grid;
    /* Phone pe sirf 1 column rahega */
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 50px;
}

.feature-box {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 16px;
    transition: 0.3s;
    /* Ensure boxes don't get too stretched on big screens before breaking */
    max-width: 100%; 
}

.feature-box:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.8);
    border-color: #6366f1;
}

.feature-box h3 { color: #f8fafc; font-size: 1.2rem; margin-bottom: 10px; font-weight: 600; }
.feature-box p { color: #94a3b8; font-size: 0.95rem; line-height: 1.5; }


/* --- BREAKPOINTS (Jadu Yahan Hai) --- */

/* TABLET VIEW (Jab screen 600px se badi ho) */
/* Isme 2 Upar, 2 Neeche dikhenge */
@media (min-width: 600px) {
    .features-grid {
        /* Tablet pe 2 columns */
        grid-template-columns: repeat(2, 1fr);
    }
}

/* LAPTOP/PC VIEW (Jab screen 1024px se badi ho) */
/* Isme charo 4 ek line mein dikhenge */
@media (min-width: 1024px) {
    .features-grid {
        /* PC pe 4 columns */
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-box h3 { color: #f8fafc; font-size: 1.2rem; margin-bottom: 10px; font-weight: 600; }
.feature-box p { color: #94a3b8; font-size: 0.95rem; line-height: 1.5; }

/* How to Use Section */
.how-to-use { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.how-to-use h3 { color: #e2e8f0; margin-bottom: 20px; }

.steps-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.step {
    background: #1e293b;
    padding: 8px 16px;
    border-radius: 20px;
    color: #cbd5e1;
    font-size: 0.9rem;
    border: 1px solid #334155;
    font-weight: 500;
}

.arrow { color: #6366f1; font-weight: bold; }

/* Mobile Tweaks (Phone ke liye Khaas Setting) */
@media (max-width: 600px) {
    .intro-text h2 { font-size: 1.8rem; }
    .features-grid { grid-template-columns: 1fr; } /* Phone pe ek line me ek box */
    .steps-row { flex-direction: column; gap: 10px; }
    .arrow { transform: rotate(90deg); }
}
/* --- FOOTER STYLE --- */
footer {
    margin-top: 50px;
    padding: 30px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #0f172a;
}

.footer-links {
    color: #64748b;
    font-size: 0.9rem;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #6366f1;
}

.separator {
    margin: 0 10px;
    color: #334155;
}
/* --- Mobile Footer Fix --- */
@media (max-width: 600px) {
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-bottom: 20px;
    }
    .footer-links .separator {
        display: none;
    }
    footer {
        padding: 30px 20px;
    }
}
