/* 
* Ireava-Inspired Professional Theme 
* Clean, Modern, Light
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Core Colors */
    --primary: #4F46E5; /* Indigo 600 */
    --primary-dark: #4338CA; /* Indigo 700 */
    --primary-light: #E0E7FF; /* Indigo 100 */
    
    /* Neutral Colors */
    --bg-body: #F9FAFB; /* Gray 50 */
    --bg-card: #FFFFFF;
    --text-main: #111827; /* Gray 900 */
    --text-muted: #6B7280; /* Gray 500 */
    --border-color: #E5E7EB; /* Gray 200 */
    
    /* Accents */
    --accent-purple: #8B5CF6;
    --accent-blue: #3B82F6;
    
    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --card-radius: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary);
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-main);
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted) !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background-color: var(--primary-light);
    border-radius: 8px;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 3rem;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, var(--bg-body));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Card Design (Ireava Style) */
.post-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-light);
}

.card-img-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.4);
    z-index: 2;
    transition: all 0.2s ease;
}

.category-badge:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(79, 70, 229, 0.5);
    color: #ffffff;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-title a {
    color: var(--text-main);
}

.card-title a:hover {
    color: var(--primary);
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer-custom {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* Pagination */
.pagination .page-link {
    border: none;
    color: var(--text-muted);
    margin: 0 0.25rem;
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.pagination .page-link:hover {
    background-color: var(--bg-body);
    color: var(--primary);
}

.pagination .active .page-link {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

/* Sidebar Styles */
.widget-title {
    font-weight: 800;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 1rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.hover-primary:hover {
    color: var(--primary) !important;
}

.hover-shadow:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light) !important;
    transform: translateY(-2px);
}

.transition-all {
    transition: all 0.2s ease;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Comment System Styles */
.comments-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.comment-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.comment-form .form-control {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 1rem;
}

.comment-form .form-control:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* Footer - Centered Style */
.footer-section {
    background-color: #1a1a1a; /* Dark background */
    color: #9ca3af;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid #374151;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.social-icon-btn:hover {
    transform: translateY(-3px);
    color: white;
}

.social-facebook { background-color: #3b5998; }
.social-twitter { background-color: #1da1f2; }
.social-linkedin { background-color: #0077b5; }
.social-instagram { background-color: #e1306c; }
.social-youtube { background-color: #ff0000; }

.footer-nav-links {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-nav-links li a {
    color: #d1d5db;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-nav-links li a:hover {
    color: var(--primary);
}

.footer-divider {
    height: 1px;
    background-color: #374151;
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Single Post Page */
.post-header {
    text-align: center;
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.post-content {
    background: white;
    padding: 3rem;
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .post-content {
        padding: 1.5rem;
    }
}
