/* style.css */
:root {
    --primary: #6366f1; /* Indigo */
    --primary-dark: #4f46e5;
    --accent: #f472b6; /* Pink */
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

/* --- HEADER --- */
header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #312e81 100%);
    color: white;
    padding: 80px 20px 100px;
    text-align: center;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.brand { font-size: 3rem; margin-bottom: 10px; font-weight: 700; }
.subtitle { font-size: 1.1rem; opacity: 0.8; margin-bottom: 40px; }

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex;
    background: white;
    padding: 5px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.search-container input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    outline: none;
    border-radius: 50px 0 0 50px;
}

.search-container button {
    background: linear-gradient(to right, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s;
}

.search-container button:hover { transform: scale(1.05); }

/* --- MAIN LAYOUT --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none; }

#resultsArea {
    margin-top: -50px; /* Overlap header */
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
@media(max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

/* --- CARDS --- */
.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px; border-bottom: 1px solid var(--border); padding-bottom: 10px;
}

.text-area {
    width: 100%;
    padding: 15px;
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: monospace;
    resize: vertical;
    outline: none;
}
.text-area:focus { border-color: var(--primary); }

.chip-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.chip {
    background: #e0e7ff;
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.title-list { list-style: none; }
.title-list li {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.title-list li:last-child { border: none; }

.btn-copy {
    background: var(--primary); color: white; border: none;
    padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 0.8rem;
}

/* --- BLOG --- */
.blog-section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.feature-card { background: white; padding: 30px; border-radius: 15px; border: 1px solid var(--border); }
.feature-card .icon { font-size: 2rem; color: var(--primary); margin-bottom: 15px; }
.seo-text { margin-top: 50px; background: white; padding: 30px; border-radius: 15px; }

footer { text-align: center; padding: 30px; color: var(--text-muted); background: white; border-top: 1px solid var(--border); }

/* Loader */
.loader {
    border: 4px solid #f3f3f3; border-top: 4px solid var(--accent);
    border-radius: 50%; width: 40px; height: 40px;
    animation: spin 1s linear infinite; margin: 20px auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }