/**
 * Stiluri principale - Blog Personal
 */

/* Reset și Variabile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #dc2626;
    --secondary-color: #ef4444;
    --accent-color: #991b1b;
    --success-color: #10b981;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #fef2f2;
    --bg-sidebar: #fee2e2;
    --border-color: #fecaca;
    --shadow: 0 1px 3px rgba(220, 38, 38, 0.1), 0 1px 2px rgba(220, 38, 38, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(220, 38, 38, 0.1), 0 4px 6px -2px rgba(220, 38, 38, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(220, 38, 38, 0.1), 0 10px 10px -5px rgba(220, 38, 38, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Touch-friendly elements */
button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: rgba(220, 38, 38, 0.2);
    touch-action: manipulation;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Content Wrapper pentru layout cu sidebar */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    margin-top: 2rem;
}

.main-post-content {
    min-width: 0; /* Previne overflow */
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #991b1b 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.site-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.site-logo-wrapper:hover {
    opacity: 0.9;
}

.profile-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.site-logo-wrapper:hover .profile-image {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.site-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.site-title {
    font-family: 'Dancing Script', 'Great Vibes', cursive;
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.site-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: -0.25rem;
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
    outline: none;
}

/* Close button - hidden on desktop */
.menu-close {
    display: none;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.menu-toggle:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}


.main-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.1);
}

.social-link i {
    font-size: 18px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.25rem;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    overflow: hidden;
    border: 2px solid transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-link:active {
    transform: translateY(0);
}

.nav-icon {
    font-size: 1.3rem;
    display: inline-block;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.nav-link:hover .nav-icon {
    transform: scale(1.15) rotate(5deg);
}

.nav-link span:not(.nav-icon) {
    position: relative;
    z-index: 1;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero Welcome Section */
.hero-welcome-section {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(239, 68, 68, 0.05) 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.hero-welcome-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Dancing Script', cursive;
}

.hero-welcome-text {
    font-size: 1.15rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.hero-welcome-text-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Homepage Layout */
.homepage-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    margin-top: 2rem;
}

.homepage-main {
    min-width: 0;
}

.homepage-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-box {
    text-align: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Popular Posts */
.popular-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-post-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.popular-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.popular-post-link:hover {
    transform: translateX(4px);
}

.popular-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: var(--transition);
}

.popular-post-link:hover .popular-post-title {
    color: var(--primary-color);
}

.popular-post-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #991b1b 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Featured Post Section */
.featured-post-section {
    margin-bottom: 4rem;
    padding: 2rem 24px 0 24px;
}

.featured-post-card {
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 50%, #ffffff 100%);
    border: none;
    border-radius: 24px;
    padding: 4rem;
    box-shadow: 
        0 20px 60px rgba(220, 38, 38, 0.15),
        0 10px 25px rgba(220, 38, 38, 0.1),
        0 0 0 1px rgba(220, 38, 38, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 30px 80px rgba(220, 38, 38, 0.2),
        0 15px 35px rgba(220, 38, 38, 0.15),
        0 0 0 1px rgba(220, 38, 38, 0.1);
}

.featured-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 25%, 
        #f87171 50%, 
        var(--secondary-color) 75%, 
        var(--primary-color) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 0%;
    }
}

.featured-post-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 4px 15px rgba(220, 38, 38, 0.3),
        0 2px 5px rgba(220, 38, 38, 0.2);
    position: relative;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 
            0 4px 15px rgba(220, 38, 38, 0.3),
            0 2px 5px rgba(220, 38, 38, 0.2);
    }
    50% {
        box-shadow: 
            0 6px 20px rgba(220, 38, 38, 0.4),
            0 3px 8px rgba(220, 38, 38, 0.3);
    }
}

.featured-post-title {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.featured-post-title a {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, #991b1b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.featured-post-title a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.4s ease;
}

.featured-post-title a:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-post-title a:hover::after {
    width: 100%;
}

.featured-post-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(220, 38, 38, 0.1);
    border-bottom: 1px solid rgba(220, 38, 38, 0.1);
    position: relative;
    z-index: 1;
}

.featured-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(220, 38, 38, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.featured-post-meta span:hover {
    background: rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
}

.featured-post-meta span::before {
    display: none;
}

.featured-post-meta .post-date {
    position: relative;
}

.featured-post-meta .post-date::before {
    content: '📅';
    font-size: 1.1rem;
    margin-right: 0.25rem;
}

.featured-post-meta .post-author::before {
    display: none;
}

.featured-post-meta .post-views {
    position: relative;
}

.featured-post-meta .post-views::before {
    content: '👁️';
    font-size: 1.1rem;
    margin-right: 0.25rem;
}

.featured-post-excerpt {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.9;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
    font-weight: 400;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    background: rgba(220, 38, 38, 0.02);
    border-radius: 12px;
}

.btn-featured {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(220, 38, 38, 0.3),
        0 4px 10px rgba(220, 38, 38, 0.2);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-featured:hover::before {
    left: 100%;
}

.btn-featured:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(220, 38, 38, 0.4),
        0 6px 15px rgba(220, 38, 38, 0.3);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.btn-featured::after {
    content: '→';
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btn-featured:hover::after {
    transform: translateX(5px);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Posts List */
.posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
    padding: 0 0 2rem 0;
}

.post-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color), #f87171);
    opacity: 0;
    transition: var(--transition);
}

.post-card:hover::before {
    opacity: 1;
}

.post-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.post-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.post-title a {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition);
}

.post-title a:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta span::before {
    display: none;
}

.post-meta .meta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-meta .like-dislike-inline {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.post-meta .like-dislike-inline .btn-like,
.post-meta .like-dislike-inline .btn-dislike {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 1rem;
}

.read-more::after {
    content: '→';
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-color);
    gap: 0.75rem;
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* Modern Post Card */
.post-card-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.post-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.03) 0%, rgba(239, 68, 68, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.post-card-modern:hover::before {
    opacity: 1;
}

.post-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.3);
}

.post-card-image {
    position: relative;
    height: 160px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card-modern:hover .post-card-image {
    transform: none;
}

.post-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
    z-index: 2;
}

.post-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.5s ease;
}

.new-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #dc2626;
}

.popular-badge {
    background: rgba(255, 87, 34, 0.95);
    color: white;
}

.post-card-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    z-index: 1;
    transition: all 0.4s ease;
}

.post-card-modern:hover .post-card-icon {
    transform: rotate(5deg);
    color: rgba(255, 255, 255, 0.5);
}

.post-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.post-card-header {
    margin-bottom: 1rem;
}

.post-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

.post-title-modern a {
    color: var(--text-color);
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    display: block;
}

.post-title-modern a:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateX(5px);
}

.post-meta-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.meta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.meta-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

/* Author Profile Image Styles */
.author-profile-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5rem;
    vertical-align: middle;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.author-profile-image-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.4rem;
    vertical-align: middle;
    border: 2px solid var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.author-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.post-author {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.post-excerpt-modern {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.read-more-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.read-more-modern:hover::before {
    left: 100%;
}

.read-more-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    gap: 1rem;
}

.read-more-modern i {
    transition: transform 0.3s ease;
}

.read-more-modern:hover i {
    transform: translateX(5px);
}

.read-more-modern:active {
    transform: translateY(0);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Single Post */
.single-post {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    position: relative;
}

.single-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), #f87171);
    border-radius: var(--radius) var(--radius) 0 0;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.post-header .post-title {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-weight: 400;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.post-content h1,
.post-content h2,
.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.post-content ul,
.post-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.post-content a {
    color: var(--secondary-color);
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

/* Post Actions */
.post-actions {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.like-dislike {
    display: flex;
    gap: 1rem;
}

.btn-like,
.btn-dislike {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border: 1.5px solid var(--border-color);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-like:hover {
    border-color: #22c55e;
    background: #f0fdf4;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.15);
}

.btn-like.active {
    border-color: #22c55e;
    background: #22c55e;
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
}

.btn-dislike:hover {
    border-color: #ef4444;
    background: #fef2f2;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
}

.btn-dislike.active {
    border-color: #ef4444;
    background: #ef4444;
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.btn-like .like-icon,
.btn-dislike .dislike-icon {
    font-size: 1rem;
    line-height: 1;
}

.btn-like .like-count,
.btn-dislike .dislike-count {
    font-weight: 600;
    line-height: 1;
}

.btn-like:disabled,
.btn-dislike:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-like.loading,
.btn-dislike.loading {
    position: relative;
}

.btn-like.loading::after,
.btn-dislike.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Comments Section */
.comments-section {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.comments-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.comments-list {
    margin-bottom: 2rem;
}

.comment {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-light);
    border-radius: 6px;
    border-left: 3px solid var(--secondary-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-author {
    color: var(--primary-color);
    font-weight: 600;
}

.comment-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.comment-content {
    color: var(--text-color);
    line-height: 1.6;
}

.no-comments {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    font-style: italic;
}

/* Comment Form */
.comment-form-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.comment-form-container h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.comment-form {
    display: grid;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-message {
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.form-message.success {
    background: #d1fae5;
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.form-message.error {
    background: #fee2e2;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
}

.page-info {
    color: var(--text-light);
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #991b1b 100%);
    color: white;
    padding: 3rem 0 1.5rem 0;
    margin-top: 4rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
}

.footer-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.footer-menu a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.footer-menu a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-menu a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.footer-contact-info i {
    width: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-info a:hover {
    color: white;
    text-decoration: underline;
}

.footer-social-section {
    align-items: flex-start;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-social-link i {
    font-size: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.footer-made-with {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.footer-made-with i {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-page p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-widget {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.widget-content {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

.about-blog-widget {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.03) 0%, rgba(239, 68, 68, 0.03) 100%);
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.about-text {
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.8;
    font-size: 0.95rem;
}

.about-text:first-child {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.about-text:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: var(--text-light);
}

/* Suggested Posts */
.suggested-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggested-post-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.suggested-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.suggested-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.suggested-post-link:hover {
    transform: translateX(4px);
}

.suggested-post-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: var(--transition);
}

.suggested-post-link:hover .suggested-post-title {
    color: var(--primary-color);
}

.suggested-post-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.suggested-post-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.no-suggestions {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 1rem 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sidebar {
        position: static;
        max-height: none;
    }
    
    .homepage-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .homepage-sidebar {
        position: static;
        max-height: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .stat-box {
        padding: 0.875rem;
    }
    
    .stat-icon {
        font-size: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .site-header {
        padding: 1.5rem 0;
    }
    
    .header-content {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
        justify-content: space-between;
    }
    
    .site-logo-wrapper {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 0.75rem;
        flex: 1;
    }
    
    .profile-image {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    .site-subtitle {
        font-size: 0.75rem;
    }
    
    /* Show hamburger button */
    .menu-toggle {
        display: flex;
    }
    
    /* Hide menu by default on mobile */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-color) 0%, #991b1b 100%);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 1rem 2rem 2rem 2rem;
        gap: 1rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 1002;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s, opacity 0.3s;
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }
    
    .main-nav.nav-open {
        right: 0;
        visibility: visible;
        opacity: 1;
        pointer-events: all;
    }
    
    /* Close button in menu */
    .menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
        align-self: flex-end;
        margin-bottom: 1rem;
        outline: none;
    }
    
    .menu-close:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
        transform: rotate(90deg);
    }
    
    .menu-close:active {
        transform: rotate(90deg) scale(0.95);
    }
    
    
    .nav-link {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        flex: none;
        min-width: auto;
        justify-content: flex-start;
        width: 100%;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.2);
        position: relative;
        z-index: 1;
        pointer-events: all;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
    }
    
    .social-link {
        position: relative;
        z-index: 1;
        pointer-events: all;
    }
    
    .nav-icon {
        font-size: 1.3rem;
    }
    
    .social-links {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 1.5rem;
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
    
    .social-link {
        width: 48px;
        height: 48px;
    }
    
    /* Show overlay on mobile */
    .menu-overlay {
        display: block;
    }
    
    /* Hero Welcome */
    .hero-welcome-section {
        padding: 2rem 0;
        margin-bottom: 1.5rem;
    }
    
    .hero-welcome-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-welcome-text {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-welcome-text-subtitle {
        font-size: 0.9rem;
    }
    
    /* Featured Post */
    .featured-post-section {
        padding: 0 16px;
        margin-bottom: 2rem;
    }
    
    .featured-post-card {
        padding: 2rem;
        border-radius: 20px;
    }
    
    .featured-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .featured-post-title {
        font-size: 1.75rem;
        line-height: 1.25;
        margin-bottom: 1.25rem;
    }
    
    .featured-post-meta {
        font-size: 0.9rem;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
        padding: 1rem 0;
    }
    
    .featured-post-meta span {
        padding: 0.4rem 0.8rem;
    }
    
    .featured-post-excerpt {
        font-size: 1.05rem;
        margin-bottom: 2rem;
        padding: 1.25rem;
    }
    
    .btn-featured {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    /* Section Header */
    .section-header {
        margin-bottom: 2rem;
        padding-top: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Posts List */
    .posts-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-card-modern {
        border-radius: 16px;
    }
    
    .post-card-image {
        height: 120px;
    }
    
    .post-card-content {
        padding: 1.5rem;
    }
    
    .post-title-modern {
        font-size: 1.3rem;
    }
    
    .post-meta-modern {
        flex-direction: column;
        gap: 0.75rem;
        font-size: 0.8rem;
    }
    
    .meta-group {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: nowrap;
    }
    
    .post-excerpt-modern {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .read-more-modern {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .post-card {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.75rem;
        font-size: 0.8rem;
    }
    
    .post-meta .meta-group {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: nowrap;
    }
    
    .post-meta span {
        padding: 0.5rem 1rem;
        background: rgba(220, 38, 38, 0.05);
        border-radius: 12px;
    }
    
    .post-meta .like-dislike-inline {
        margin-top: 0.5rem;
        gap: 0.5rem;
    }
    
    .post-meta .like-dislike-inline .btn-like,
    .post-meta .like-dislike-inline .btn-dislike {
        flex: 1;
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }
    
    .post-excerpt {
        font-size: 1rem;
    }
    
    .read-more {
        font-size: 0.95rem;
    }
    
    /* Single Post */
    .single-post {
        padding: 1.5rem;
    }
    
    .post-header .post-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .post-content h1,
    .post-content h2,
    .post-content h3 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .post-actions {
        padding-top: 1rem;
    }
    
    .like-dislike {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .btn-like,
    .btn-dislike {
        flex: 1;
        justify-content: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Comments */
    .comments-section {
        padding: 1.5rem;
    }
    
    .comments-section h2 {
        font-size: 1.5rem;
    }
    
    .comment {
        padding: 1rem;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .comment-form-container {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .comment-form-container h3 {
        font-size: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 1rem;
        padding: 0.875rem;
    }
    
    .btn-primary {
        width: 100%;
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    /* Sidebar */
    .homepage-sidebar {
        margin-top: 2rem;
    }
    
    .sidebar-widget {
        padding: 1.25rem;
    }
    
    .widget-title {
        font-size: 1.1rem;
    }
    
    .widget-content {
        font-size: 0.9rem;
    }
    
    .about-text {
        font-size: 0.9rem;
    }
    
    .about-text:first-child {
        font-size: 0.95rem;
    }
    
    .popular-post-title {
        font-size: 0.9rem;
    }
    
    .popular-post-meta {
        font-size: 0.75rem;
    }
    
    /* Pagination */
    .pagination {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 0;
    }
    
    .btn-secondary {
        width: 100%;
        padding: 0.875rem;
    }
    
    .page-info {
        text-align: center;
    }
    
    /* Buttons */
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    /* Footer */
    .site-footer {
        padding: 2rem 0 1rem 0;
        margin-top: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-title {
        justify-content: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-menu {
        align-items: center;
    }
    
    .footer-contact-info {
        align-items: center;
    }
    
    .footer-social-section {
        align-items: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-social-link {
        width: 40px;
        height: 40px;
    }
    
    .footer-bottom {
        gap: 0.75rem;
    }
    
    /* Error Page */
    .error-page h1 {
        font-size: 3rem;
    }
    
    .error-page p {
        font-size: 1.1rem;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .site-header {
        padding: 1.25rem 0;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    .site-subtitle {
        font-size: 0.75rem;
    }
    
    .profile-image {
        width: 50px;
        height: 50px;
    }
    
    .main-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        min-width: auto;
    }
    
    .social-links {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-link i {
        font-size: 16px;
    }
    
    .hero-welcome-title {
        font-size: 1.5rem;
    }
    
    .hero-welcome-text {
        font-size: 0.9rem;
    }
    
    .hero-welcome-text-subtitle {
        font-size: 0.85rem;
    }
    
    .featured-post-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .featured-badge {
        font-size: 0.7rem;
        padding: 0.45rem 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .featured-post-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .featured-post-meta {
        font-size: 0.85rem;
        gap: 0.5rem;
        padding: 0.875rem 0;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .featured-post-meta span {
        padding: 0.35rem 0.7rem;
    }
    
    .featured-post-excerpt {
        font-size: 1rem;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-featured {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .posts-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .post-card-modern {
        border-radius: 12px;
    }
    
    .post-card-image {
        height: 100px;
    }
    
    .post-card-icon {
        font-size: 3rem;
    }
    
    .post-card-content {
        padding: 1.25rem;
    }
    
    .post-title-modern {
        font-size: 1.15rem;
    }
    
    .post-meta-modern {
        font-size: 0.75rem;
        gap: 0.5rem;
    }
    
    .meta-group {
        gap: 0.5rem;
    }
    
    .post-meta {
        font-size: 0.75rem;
        gap: 0.5rem;
    }
    
    .post-meta .meta-group {
        gap: 0.5rem;
    }
    
    .post-meta span {
        padding: 0.4rem 0.8rem;
    }
    
    .read-more-modern {
        padding: 0.7rem 1.1rem;
        font-size: 0.85rem;
    }
    
    .post-card {
        padding: 1.25rem;
    }
    
    .post-title {
        font-size: 1.25rem;
    }
    
    .single-post {
        padding: 1.25rem;
    }
    
    .post-header .post-title {
        font-size: 1.5rem;
    }
    
    .comments-section {
        padding: 1.25rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
}

