/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Main Layout */
body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow-x: hidden;
    min-width: 320px;
}

/* Blog Header Section */
.blog-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: clamp(40px, 8vh, 80px) 0 clamp(30px, 6vh, 60px);
    margin-top: 76px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(1, 47, 179, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.blog-container {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

/* Blog Image */
.blog-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    animation: fadeInScale 1s ease-out 0.2s both;
}

/* Blog Title */
.blog-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Blog Meta */
.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.meta-item i {
    color: #012FB3;
    font-size: 1rem;
}

/* Profile Links */
.profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.profile-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(1, 47, 179, 0.1);
    flex: 1;
    min-width: 250px;
}

.profile-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-section h4 i {
    color: #012FB3;
}

.profile-link {
    display: inline-block;
    background: linear-gradient(135deg, #012FB3 0%, #1E43B0 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 4px 8px 4px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(1, 47, 179, 0.3);
}

.profile-link:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(1, 47, 179, 0.4);
}

.designer-link {
    background: linear-gradient(135deg, #6610f2 0%, #8b5a2b 100%);
    box-shadow: 0 2px 8px rgba(102, 16, 242, 0.3);
}

.designer-link:hover {
    box-shadow: 0 4px 15px rgba(102, 16, 242, 0.4);
}

/* Blog Content */
.blog-content {
    background: white;
    border-radius: 16px;
    padding: clamp(20px, 4vw, 40px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(1, 47, 179, 0.1);
    animation: fadeInUp 0.8s ease-out 1s both;
    margin-bottom: 40px;
}

.blog-text {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    line-height: 1.7;
    color: #444;
    white-space: pre-line;
}

.blog-text p {
    margin-bottom: 1.5rem;
}

/* Categories */
.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

.blog-category {
    background: linear-gradient(135deg, #012FB3 0%, #1E43B0 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(1, 47, 179, 0.3);
}

.blog-category:nth-child(2) {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.blog-category:nth-child(3) {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.blog-category:nth-child(4) {
    background: linear-gradient(135deg, #6610f2 0%, #8b5a2b 100%);
    box-shadow: 0 2px 8px rgba(102, 16, 242, 0.3);
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
}

/* Back Button */
.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1040;
    background: linear-gradient(135deg, #012FB3 0%, #1E43B0 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 47, 179, 0.3);
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.back-button:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(1, 47, 179, 0.4);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .blog-header {
        padding: 50px 0 35px;
        margin-top: 70px;
    }

    .profile-section {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 40px 0 30px;
        margin-top: 70px;
    }

    .blog-meta {
        flex-direction: column;
        gap: 15px;
    }

    .profile-links {
        flex-direction: column;
        gap: 20px;
    }

    .profile-section {
        min-width: auto;
    }

    .back-button {
        position: relative;
        display: block;
        width: calc(100% - 40px);
        margin: 20px auto;
        text-align: center;
        top: auto;
        left: auto;
    }
}

@media (max-width: 576px) {
    .blog-content {
        padding: 20px;
    }

    .profile-section {
        padding: 15px;
    }

    .blog-text {
        font-size: 1rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    .profile-link:hover,
    .back-button:hover {
        transform: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    color: #012FB3;
    opacity: 0.3;
    margin-bottom: 20px;
}