/* 
 * Jampaa Blog AI - Premium Frontend Styles
 * A modern, sleek design with glassmorphism and smooth transitions.
 */

:root {
    --primary-color: #1768bf;
    --primary-gradient: linear-gradient(135deg, #1768bf 0%, #0d47a1 100%);
    --accent-color: #00d2ff;
    --text-dark: #1a1a1a;
    --text-muted: #666;
    --bg-light: #f8fafd;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --radius-lg: 16px;
    --radius-md: 8px;
}

/* Layout */
.blog-layout {
    display: flex;
    gap: 40px;
    padding: 20px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.blog-main {
    flex: 3;
}

.blog-sidebar {
    flex: 1;
}

/* Glassmorphism Filter */
.blog-filter {
    margin-bottom: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: var(--shadow-md);
}

.blog-filter label {
    display: block;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.blog-filter select {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-filter select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(23, 104, 191, 0.1);
    outline: none;
}

/* Premium Post Cards */
.blog-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 40px;
}

.blog-post {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f0f0f0;
}

.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.post-thumbnail {
    flex: 0 0 350px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-category {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-labels {
    margin-bottom: 20px;
}

.category-label {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-label {
    background: #2c3e50;
}

.post-category h3 {
    margin: 0 0 20px;
    font-size: 1.8rem;
    line-height: 1.3;
    color: var(--text-dark);
    font-weight: 800;
}

.post-category p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
}

.read-more-btn {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.read-more-btn::after {
    content: '→';
}

.blog-post:hover .read-more-btn {
    gap: 15px;
}

/* Sidebar Widgets */
.widget {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
}

.widget h4 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.25rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
}

.widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
}

.cta-box {
    background: var(--primary-gradient);
    color: #fff;
    text-align: center;
    border: none;
}

.cta-box h4 {
    color: #fff;
}

.cta-box h4::after {
    background: #fff;
    left: 50%;
    transform: translateX(-50%);
}

.cta-button {
    display: inline-block;
    padding: 14px 30px;
    background: #fff;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 800;
    border-radius: 30px;
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Breadcrumbs */
#breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

#breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Components */
.riassunto-articolo-jampaa {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-dark);
    font-weight: 500;
    padding: 40px;
    background: #f0f7ff;
    border-radius: var(--radius-lg);
    margin: 40px 0;
    position: relative;
}

.riassunto-articolo-jampaa::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(23, 104, 191, 0.1);
}

.box-takeaway-articolo-jampaa {
    background: #fff9e6;
    border: 2px dashed #ffeeba;
    padding: 30px;
    margin: 40px 0;
    border-radius: var(--radius-lg);
}

.tit-takeaway {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Author Box */
.box-autore-completo {
    background: #fff;
    padding: 40px;
    margin: 60px 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 40px;
    align-items: center;
}

.box-immagine img {
    border: 5px solid #fff;
    box-shadow: var(--shadow-md);
}

.social-links-list a {
    display: inline-block;
    padding: 8px 16px;
    background: #f1f5f9;
    border-radius: 30px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.social-links-list a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Pagination */
.pagination li a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-layout { flex-direction: column; }
    .blog-post { flex-direction: column; }
    .post-thumbnail { flex: 0 0 250px; }
    .box-autore-completo { flex-direction: column; text-align: center; }
}
