:root {
    --primary: #E1306C; /* Instagram Pink */
    --primary-hover: #C13584;
    --bg-body: #F9FAFB; /* Very light gray */
    --bg-card: #FFFFFF; /* White */
    --text-main: #111827; /* Near Black */
    --text-muted: #6B7280; /* Gray */
    --border: #E5E7EB; /* Light border */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --font-main: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* --- Navbar --- */
.navbar { background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 15px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.brand-logo { font-weight: 800; font-size: 1.4rem; background: linear-gradient(45deg, #FF3B5C, #833ab4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover { color: var(--primary); }
.nav-btn { background: var(--text-main); color: white !important; padding: 8px 16px; border-radius: 6px; }

/* --- Tool Section --- */
.tool-section { padding: 60px 20px; }
.tool-header { text-align: center; margin-bottom: 40px; }
.badge { background: #fee2e2; color: #ef4444; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
h1 { font-size: 2.5rem; margin: 15px 0; color: var(--text-main); }
.tool-header p { color: var(--text-muted); font-size: 1.1rem; }

/* Card */
.tool-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 40px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }
.input-group { display: flex; flex-direction: column; gap: 8px; }
.full-width { grid-column: span 2; }
label { font-weight: 600; font-size: 0.9rem; color: var(--text-main); }
input, select, textarea {
    background: #F9FAFB; border: 1px solid var(--border); color: var(--text-main);
    padding: 12px 16px; border-radius: 8px; font-size: 1rem; width: 100%; box-sizing: border-box; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); background: white; }

/* Button */
.btn-generate {
    width: 100%; background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border: none; color: white; padding: 16px; border-radius: 8px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: transform 0.2s;
}
.btn-generate:hover { transform: translateY(-2px); opacity: 0.95; }

/* Loading & Results */
.loading-container { text-align: center; padding: 40px; }
.spinner {
    width: 40px; height: 40px; border: 4px solid var(--border); border-top: 4px solid var(--primary);
    border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 15px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.results-container { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.result-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.result-header {
    background: #F9FAFB; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border);
}
.result-title { font-weight: 600; color: var(--text-main); }
.copy-btn { background: white; border: 1px solid var(--border); color: var(--text-muted); padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; }
.copy-btn:hover { border-color: var(--primary); color: var(--primary); }
.result-content { padding: 25px; color: #374151; white-space: pre-wrap; line-height: 1.7; font-size: 1rem; }

/* --- Info & FAQ Sections --- */
.info-section { background: white; padding: 80px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.info-section h2, .faq-section h2 { text-align: center; margin-bottom: 40px; font-size: 2rem; color: var(--text-main); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.feature-item h3 { color: var(--text-main); margin-bottom: 10px; }
.feature-item p { color: var(--text-muted); }

.faq-section { padding: 80px 0; background: var(--bg-body); }
.faq-item { background: white; padding: 25px; border-radius: 12px; margin-bottom: 15px; border: 1px solid var(--border); }
.faq-item h3 { margin: 0 0 10px 0; font-size: 1.1rem; }
.faq-item p { margin: 0; color: var(--text-muted); }

/* --- Footer --- */
.site-footer { background: white; border-top: 1px solid var(--border); padding: 60px 0 20px; }
.footer-content { display: flex; justify-content: space-between; margin-bottom: 40px; }
.footer-brand h3 { margin: 0 0 10px; color: var(--text-main); }
.footer-links { display: flex; gap: 30px; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; } .full-width { grid-column: span 1; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 30px; text-align: center; }
    .footer-links { flex-direction: column; gap: 10px; align-items: center; }
    .nav-links { display: none; } /* Simple hide for mobile, can add burger menu later */
}