* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #1a1a2e;
    color: white;
    padding: 40px 0;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

header p {
    color: #aaa;
}

main {
    padding: 40px 0;
}

main h2 {
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.profession-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.profession-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}

.profession-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profession-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.profession-card p {
    font-size: 0.85rem;
    color: #666;
}

/* ===== BACK LINK ===== */
.back-link {
    display: inline-block;
    color: #aaa;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.back-link:hover {
    color: white;
}

/* ===== CATEGORY FILTERS ===== */
.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 30px 0 20px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1a1a2e;
    color: white;
    border-color: #1a1a2e;
}

/* ===== PROMPT COUNT ===== */
.prompt-count {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ===== PROMPTS GRID ===== */
.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}

/* ===== PROMPT CARD ===== */
.prompt-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prompt-card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prompt-card-header h3 {
    font-size: 1rem;
    color: #1a1a2e;
}

.prompt-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ===== BADGES ===== */
.badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.badge-tool {
    background: #e8f0fe;
    color: #1a56db;
}

.badge-difficulty {
    background: #f0fdf4;
    color: #15803d;
}

.badge-premium {
    background: #fef9c3;
    color: #854d0e;
}

/* ===== PROMPT CATEGORY ===== */
.prompt-category {
    font-size: 0.8rem;
    color: #888;
}

/* ===== PROMPT CONTENT ===== */
.prompt-content {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 14px;
    flex: 1;
}

.prompt-content pre {
    font-family: inherit;
    font-size: 0.85rem;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

/* ===== PROMPT ACTIONS ===== */
.prompt-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-btn {
    padding: 8px 16px;
    background: #1a1a2e;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #2d2d4e;
}

.copy-btn.copied {
    background: #15803d;
}

.view-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.view-btn:hover {
    background: #f5f5f5;
}

.copy-count {
    font-size: 0.8rem;
    color: #aaa;
    margin-left: auto;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

/* ===== SINGLE PROMPT PAGE ===== */
.single-prompt-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.single-prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.single-prompt-header h2 {
    font-size: 1.1rem;
    color: #1a1a2e;
}

.single-prompt-content {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    font-family: inherit;
    font-size: 0.9rem;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.7;
    margin-bottom: 12px;
}

.prompt-stats {
    font-size: 0.8rem;
    color: #aaa;
}

/* ===== HOW TO USE ===== */
.how-to-use {
    background: #f0f7ff;
    border: 1px solid #c8e0ff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.how-to-use h2 {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 14px;
}

.how-to-use ol {
    padding-left: 20px;
}

.how-to-use ol li {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* ===== RELATED PROMPTS ===== */
.related-prompts {
    margin-bottom: 40px;
}

.related-prompts h2 {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.related-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-card h3 {
    font-size: 0.9rem;
    color: #1a1a2e;
}

/* ===== SEARCH ===== */
.search-form {
    margin-bottom: 30px;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #1a1a2e;
}

.search-btn {
    padding: 12px 24px;
    background: #1a1a2e;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #2d2d4e;
}

.search-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.filter-apply-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-apply-btn:hover {
    background: #e0e0e0;
}

.search-link {
    display: inline-block;
    margin-top: 14px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #444;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s;
}

.search-link:hover {
    color: white;
    border-color: white;
}

/* ===== ADMIN ===== */
.admin-login-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.admin-login-box h1 {
    font-size: 1.5rem;
    margin-bottom: 6px;
    color: #1a1a2e;
}

.admin-login-box p {
    color: #888;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.admin-stat {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.stat-num {
    font-size: 2rem;
    font-weight: 500;
    color: #1a1a2e;
}

.stat-lbl {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}

.admin-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-table-wrap {
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e0e0e0;
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: #f9f9f9;
}

.action-btn {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.edit-btn {
    background: #e8f0fe;
    color: #1a56db;
    margin-right: 6px;
}

.delete-btn {
    background: #fee2e2;
    color: #dc2626;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: #1a1a2e;
}

.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    min-height: 200px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
    outline: none;
}

.form-textarea:focus {
    border-color: #1a1a2e;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
}

.submit-btn {
    padding: 12px 24px;
    background: #1a1a2e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #2d2d4e;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal !important;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.admin-form {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    max-width: 800px;
}

/* ===== GENERATOR ===== */
.generator-wrap {
    max-width: 800px;
    margin: 0 auto 50px;
}

.generator-form {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.generator-form h2 {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.generator-output {
    background: white;
    border: 2px solid #1a1a2e;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.output-header h2 {
    font-size: 1.1rem;
    color: #1a1a2e;
}

.generator-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.generator-tip {
    background: #f0f7ff;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #444;
    margin-top: 16px;
    line-height: 1.5;
}

/* ===== LOADING DOTS ===== */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: #1a1a2e;
    border-radius: 50%;
    animation: bounce 1.2s infinite ease-in-out;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    max-width: 800px;
    margin: 0 auto;
}

.how-it-works h2 {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 20px;
    text-align: center;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.how-step-item {
    text-align: center;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px 16px;
}

.step-circle {
    width: 40px;
    height: 40px;
    background: #1a1a2e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin: 0 auto 12px;
}

.how-step-item h3 {
    font-size: 0.95rem;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.how-step-item p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* ===== FOOTER ===== */
footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 30px 0;
    margin-top: 60px;
    text-align: center;
}

footer p {
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* ===== ABOUT PAGE ===== */
.about-content h2 {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin: 30px 0 12px;
}

.about-content p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 12px;
}

.about-content ul,
.about-content ol {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.8;
}

/* ===== AUTHOR BOX ===== */
.author-box {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.author-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
}

.author-info h3 {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.author-title {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 12px !important;
}

.author-links {
    margin-top: 12px;
    display: flex;
    gap: 16px;
}

.author-links a {
    color: #1a1a2e;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid #1a1a2e;
    padding-bottom: 2px;
}

.author-links a:hover {
    color: #555;
    border-color: #555;
}

/* ===== PROFESSION INTRO ===== */
.profession-intro {
    padding: 30px 0 0;
}

.profession-intro-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    width: 100%;
    max-width: 100%;
    background: #f8f9fa;
    border-left: 4px solid #1a1a2e;
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin: 0 0 24px 0;
    text-align: justify;
    box-sizing: border-box;
}
/* ===== PRO TIP BOX ===== */
.pro-tip-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 30px;
}

.pro-tip-box h2 {
    font-size: 1rem;
    color: #856404;
    margin-bottom: 10px;
}

.pro-tip-box p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 8px;
}

.pro-tip-box p:last-child {
    margin-bottom: 0;
}

/* ===== PROFESSION FAQ ===== */
.profession-faq {
    margin: 50px auto;
    max-width: 860px;
}

.profession-faq h2 {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px 24px;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-item h3 {
    font-size: 0.95rem;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.4;
}

.faq-item p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}