/* ProConsult Group — Consulting Theme */
:root {
    --primary: #1a3a5c;
    --primary-light: #2d5a8e;
    --accent: #e8a838;
    --dark: #1a1a2e;
    --gray: #6c757d;
    --light: #f8f9fa;
    --white: #ffffff;
    --danger: #dc3545;
    --success: #28a745;
    --border: #dee2e6;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #333; line-height: 1.6; }
a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.header { background: var(--dark); padding: 1rem 0; position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--white); }
.logo span { color: var(--accent); }
.nav a { color: rgba(255,255,255,0.8); margin-left: 1.5rem; font-size: 0.95rem; transition: color 0.2s; }
.nav a:hover, .nav a.nav-admin { color: var(--accent); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%); color: var(--white); padding: 5rem 0; text-align: center; }
.hero h1 { font-size: 2.8rem; margin-bottom: 1rem; line-height: 1.2; }
.hero p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 2rem; }

/* Buttons */
.btn { display: inline-block; padding: 0.6rem 1.5rem; border-radius: var(--radius); font-size: 0.95rem; font-weight: 500; cursor: pointer; border: 2px solid transparent; transition: all 0.2s; text-align: center; }
.btn-primary { background: var(--accent); color: var(--dark); border-color: var(--accent); }
.btn-primary:hover { background: #d4952e; color: var(--dark); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-sm { padding: 0.3rem 0.8rem; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; }

/* Sections */
.section { padding: 4rem 0; }
.section-gray { background: var(--light); }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 2.5rem; color: var(--primary); }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
}

/* Cards */
.card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.5rem; color: var(--primary); }
.card-img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; margin: -1.5rem -1.5rem 1rem; width: calc(100% + 3rem); }

/* Stats */
.stat-card { background: var(--white); border-radius: var(--radius); padding: 2rem; text-align: center; box-shadow: var(--shadow); }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--accent); }
.stat-label { color: var(--gray); margin-top: 0.3rem; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.3rem; font-weight: 500; color: var(--primary); }
.form-control { width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.95rem; font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(45,90,142,0.15); }
textarea.form-control { resize: vertical; }
select.form-control { appearance: auto; }

/* Auth Form */
.auth-form { max-width: 450px; margin: 0 auto; }
.auth-form h1 { text-align: center; margin-bottom: 1.5rem; }

/* Search */
.search-form { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.search-input { flex: 1; }
.search-results-info { margin-bottom: 1.5rem; color: var(--gray); }
.search-result-item { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.search-result-item h3 { margin-bottom: 0.3rem; }

/* Article */
.article-full { max-width: 800px; }
.article-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.5rem; }
.article-meta { color: var(--gray); margin-bottom: 1.5rem; }
.article-meta span { margin-right: 1rem; }
.article-content { line-height: 1.8; }
.article-content h2 { margin-top: 1.5rem; }
.article-content p { margin-bottom: 1rem; }

/* Comments */
.comments-section { margin-top: 2rem; }
.comment { padding: 1rem; margin-bottom: 1rem; background: var(--light); border-radius: var(--radius); }
.comment-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.comment-header span { color: var(--gray); font-size: 0.85rem; }

/* Services */
.service-item { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.service-item h2 { color: var(--primary); margin-bottom: 0.5rem; }
.service-item ul { margin-top: 1rem; padding-left: 1.5rem; }
.service-item li { margin-bottom: 0.3rem; }

/* CTA */
.cta-block { text-align: center; padding: 3rem; background: var(--primary); color: var(--white); border-radius: var(--radius); margin-top: 3rem; }
.cta-block h3 { margin-bottom: 1rem; font-size: 1.5rem; }

/* Client Details */
.client-details p { margin-bottom: 0.5rem; }

/* Alerts */
.alert { padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.table th { background: var(--light); font-weight: 600; color: var(--primary); }
.table tr:hover { background: #f5f5f5; }

/* Terminal */
.terminal-output { background: #1a1a2e; color: #0f0; padding: 1.5rem; border-radius: var(--radius); margin-top: 1rem; overflow-x: auto; }
.terminal-output pre { font-family: 'Cascadia Code', 'Fira Code', monospace; font-size: 0.9rem; white-space: pre-wrap; }

/* Preview */
.preview-box { padding: 1rem; background: var(--light); border: 1px dashed var(--border); border-radius: var(--radius); }
.email-preview-box { padding: 2rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.greeting-box { text-align: center; padding: 3rem; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); border-radius: var(--radius); }

/* Content */
.content-block { max-width: 800px; line-height: 1.8; }
.content-block h2 { color: var(--primary); margin: 2rem 0 0.5rem; }
.content-block p { margin-bottom: 1rem; }

/* Footer */
.footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 2rem 0; text-align: center; }
.footer-debug { font-size: 0.75rem; margin-top: 0.5rem; opacity: 0.5; }

/* Page Header */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.page-header h1 { margin: 0; }

/* Action List */
.action-list { list-style: none; padding: 0; }
.action-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.action-list li:last-child { border-bottom: none; }

/* ========== ADMIN LAYOUT ========== */
.admin-body { display: flex; min-height: 100vh; background: #f0f2f5; }

.sidebar { width: 250px; background: var(--dark); color: var(--white); position: fixed; height: 100vh; overflow-y: auto; }
.sidebar-header { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-header small { color: rgba(255,255,255,0.5); }
.sidebar-nav { padding: 1rem 0; }
.sidebar-nav a { display: block; padding: 0.6rem 1.5rem; color: rgba(255,255,255,0.7); transition: all 0.2s; }
.sidebar-nav a:hover { background: rgba(255,255,255,0.1); color: var(--accent); }
.sidebar-nav hr { border-color: rgba(255,255,255,0.1); margin: 0.5rem 0; }

.admin-main { margin-left: 250px; flex: 1; }
.admin-header { background: var(--white); padding: 1rem 2rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; }
.admin-content { padding: 2rem; }

.text-center { text-align: center; }
