/*
Theme Name: CareConnect Blog
Theme URI: http://localhost/raoui/blog
Author: Antigravity AI
Author URI: https://gemini.google.com
Description: Custom WordPress theme matching the main CareConnect Germany portal.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: careconnect-blog
*/

/* 1. Global Customizations */
:root {
    --primary-color: #0b5ed7;
    --primary-hover: #0a58ca;
    --primary-light: #e6f0ff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --accent-gray: #f1f5f9;
    --border-color: #e2e8f0;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px -10px rgba(11, 94, 215, 0.15);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: 120px; /* Offset fixed header */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
}

/* Post list grid spacing */
.blog-container {
    padding-top: 50px;
    padding-bottom: 80px;
    min-height: 80vh;
}

/* Page titles */
.page-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

/* Inherited Card Styling */
.card-premium {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(11, 94, 215, 0.2);
}

/* Badge level accent colors */
.level-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 30px;
    padding: 6px 14px;
    display: inline-block;
}

.level-badge.a1-a2 {
    background-color: #d1e7dd;
    color: #0f5132;
}

.level-badge.b1-b2 {
    background-color: #fff3cd;
    color: #664d03;
}

.level-badge.c1-c2 {
    background-color: #f8d7da;
    color: #842029;
}

/* Content Single Styling */
.post-content {
    font-size: 1.1rem;
    color: #334155;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.post-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Category filter sidebar */
.sidebar-widget {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.sidebar-widget ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.sidebar-widget ul li {
    margin-bottom: 12px;
}

.sidebar-widget ul li:last-child {
    margin-bottom: 0;
}

.sidebar-widget ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    display: block;
    transition: var(--transition-smooth);
}

.sidebar-widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Tabs style for skills */
.nav-pills-custom .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    margin-right: 10px;
    transition: var(--transition-smooth);
}

.nav-pills-custom .nav-link.active,
.nav-pills-custom .show > .nav-link {
    color: var(--white);
    background-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(11, 94, 215, 0.25);
}

/* Interactive exercises box style */
.h5p-container-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-top: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn-premium {
    padding: 10px 24px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
}

.btn-premium-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-premium-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(11, 94, 215, 0.25);
    color: var(--white);
}

.card-premium-body {
    flex-grow: 1;
    margin-top: 15px;
    margin-bottom: 20px;
}
