/* ========================================
   style.css – AI Prompt Box
   Reusable across all pages
   ======================================== */

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --text: #333;
    --text-light: #555;
    --bg: #f4f4f4;
    --white: #fff;
    --light-bg: #f8f9fa;
    --border: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 20px;
    --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

nav a {
    margin-left: 30px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

/* Hero / Page Header */
.page-header,
.hero {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.page-header h1,
.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.page-header p,
.hero p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    background: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: -40px;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

/* Cards */
.category-card,
.prompt-card,
.contact-info,
.contact-form {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s;
}

.category-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.category-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.category-card p {
    font-size: 14px;
    opacity: 0.9;
}

/* Prompt Cards */
.prompt-card {
    border-left: 4px solid var(--primary);
    margin-bottom: 20px;
}

.prompt-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.prompt-title {
    font-size: 20px;
    font-weight: 600;
}

.prompt-tag {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.prompt-text {
    background: white;
    padding: 15px;
    border-radius: var(--radius);
    font-family: monospace;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    border: 1px solid var(--border);
    white-space: pre-wrap;
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

.copy-btn.copied {
    background: #28a745;
}

/* Search Box */
.search-box {
    max-width: 600px;
    margin: 30px auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Stats */
.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Contact Page */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3,
.contact-form h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 22px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
}

.contact-item i {
    font-size: 20px;
    color: var(--primary);
    margin-right: 15px;
    width: 30px;
}

.contact-item a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 15px;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    display: none;
}

/* Sitemap Page */
.sitemap-list {
    list-style: none;
}

.sitemap-list li {
    margin-bottom: 12px;
}

.sitemap-list a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.sitemap-list a:hover {
    color: var(--primary);
}

.xml-note {
    background: #f0f4ff;
    padding: 15px;
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 20px 0;
    font-weight: 500;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content h3 {
    margin-bottom: 10px;
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    color: white;
    margin: 0 15px;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary);
}

footer a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

/* Back to Top */
.back-to-top {
    display: block;
    text-align: center;
    margin: 30px 0;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1,
    .hero h1 {
        font-size: 32px;
    }
    .page-header p,
    .hero p {
        font-size: 16px;
    }
    nav {
        display: none;
    }
    .main-content {
        margin-top: -20px;
        padding: 40px 15px;
    }
    .categories,
    .contact-content {
        grid-template-columns: 1fr;
    }
    .stats {
        flex-direction: column;
    }
    .stat-item {
        margin-bottom: 20px;
    }
}