/* Основные стили */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-stats .stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0;
}

/* Blog Cards */
.blog-card .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.blog-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-img-overlay-category {
    position: absolute;
    top: 10px;
    right: 10px;
}

.card-title a {
    color: #333;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--primary-color);
}

/* Category Cards */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-decoration: none !important;
}

/* Sidebar */
.sidebar .widget {
    margin-bottom: 2rem;
}

.sidebar .card {
    border-radius: 12px;
    border: none;
}

.sidebar .card-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0 !important;
}

/* Author Avatar */
.author-avatar img {
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Skills */
.progress {
    border-radius: 3px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 3px;
}

/* Services */
.service-item {
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.service-item:last-child {
    border-bottom: none;
}

/* Popular Posts */
.popular-post-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Newsletter */
.newsletter-widget .card {
    background: linear-gradient(135deg, var(--primary-color), #0056b3) !important;
}

/* Navigation */
.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Footer */
#footer {
    background: #212529 !important;
}

.social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

/* Section Titles */
.section-title {
    font-weight: 600;
    color: #333;
}

/* Tags */
.tags .badge {
    font-size: 0.75rem;
    border: 1px solid #dee2e6;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }

    .hero-stats {
        margin-top: 2rem;
    }

    .hero-stats .col-md-3 {
        margin-bottom: 1rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .sidebar {
        margin-top: 3rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeInUp 0.6s ease forwards;
}

.blog-card:nth-child(2) {
    animation-delay: 0.1s;
}

.blog-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Code Highlighting */
pre {
    background: #2d3748;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
}

code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.badge.bg-primary {
    color:#fff;
}