/* /home/serprelay.eu/public_html/style.css */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #10b981;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --card-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --transition: all 0.25s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: var(--light);
    -webkit-font-smoothing: antialiased;
}

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

/* Header */
.site-header {
    background: var(--card-bg);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
}
.logo span { color: var(--primary); }

.main-nav ul {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    flex-wrap: wrap;
}
.main-nav a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0.25rem 0;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }

/* Hero Section */
.hero {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    margin-bottom: 2rem;
}
.hero h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}
.hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 650px;
    margin: 0 auto;
}

/* Blog Grid - Card System */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
    padding: 1rem 0 3rem;
}

.article-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e2e8f0;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-hover);
    border-color: var(--primary);
}

.card-header {
    padding: 1.25rem 1.25rem 0;
}

.card-category {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
    line-height: 1.35;
}
.card-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}
.card-title a:hover { color: var(--primary); }

.card-excerpt {
    color: var(--gray);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
    /* Max ~200 chars / 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.card-footer {
    margin-top: auto;
    padding: 0 1.25rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
}

.card-date {
    font-size: 0.8rem;
    color: var(--gray);
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.read-more:hover { color: var(--primary-dark); }

/* Category Page Header */
.category-header {
    padding: 2.5rem 0 1.5rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}
.category-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}
.category-header p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Article Page */
.article-wrapper {
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}
.article-header {
    margin-bottom: 2rem;
}
.article-header .card-category { margin-bottom: 1rem; }
.article-header h1 {
    font-size: 1.9rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--dark);
}
.article-meta {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.article-body {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    line-height: 1.8;
    color: #334155;
}
.article-body h2 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: var(--dark);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}
.article-body h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--dark);
}
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol {
    margin: 1rem 0 1rem 1.5rem;
}
.article-body li { margin-bottom: 0.5rem; }
.article-body a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.article-body a:hover { text-decoration: underline; }
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: block;
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}
.faq-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    color: var(--dark);
}
.faq-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}
.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.faq-question {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}
.faq-answer {
    color: var(--gray);
    line-height: 1.7;
}

/* Internal Links Box */
.related-articles {
    background: #f8fafc;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 2.5rem 0;
    border-left: 4px solid var(--primary);
}
.related-articles h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}
.related-articles ul {
    list-style: none;
}
.related-articles li {
    margin-bottom: 0.5rem;
}
.related-articles a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.related-articles a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
    background: var(--dark);
    color: white;
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.footer-brand strong { font-size: 1.1rem; }
.footer-brand p { opacity: 0.8; font-size: 0.9rem; }
.footer-links, .footer-legal {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-links a, .footer-legal a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-links a:hover, .footer-legal a:hover { color: var(--accent); }
.copyright {
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid #334155;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content { flex-direction: column; text-align: center; }
    .main-nav ul { justify-content: center; }
    .hero h1 { font-size: 1.75rem; }
    .hero p { font-size: 1rem; }
    .article-body { padding: 1.5rem; }
    .article-header h1 { font-size: 1.6rem; }
    .footer-content { flex-direction: column; text-align: center; }
}

/* Accessibility */
a:focus, button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
