/**
 * Blog Page ULTRA VIP PRO - External CSS
 * Premium Luxury Design System
 */

/* Keyframe Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

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

    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(79, 70, 229, 0.3);
    }

    50% {
        box-shadow: 0 0 50px rgba(79, 70, 229, 0.6);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Blog Hero Ultra Premium */
.blog-hero {
    position: relative;
    padding: 100px 0 120px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 25%, #4f46e5 50%, #7c3aed 75%, #a855f7 100%);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Floating Orbs */
.blog-hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.floating-orb-1 {
    bottom: 20%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.floating-orb-2 {
    top: 30%;
    left: 15%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

.floating-orb-3 {
    bottom: 10%;
    right: 20%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.4) 0%, transparent 70%);
    animation: float 7s ease-in-out infinite;
}

.blog-hero-content {
    position: relative;
    z-index: 10;
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.blog-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Glassmorphism Badge */
.glass-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}


/* Search Box */
.blog-search {
    max-width: 600px;
    margin: 2rem auto 0;
}

.blog-search-input {
    width: 100%;
    padding: 18px 24px;
    padding-left: 56px;
    border-radius: 16px;
    border: none;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.blog-search-input:focus {
    outline: none;
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.blog-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 20px;
}

/* Blog Stats */
.blog-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.blog-stat-item {
    text-align: center;
}

.blog-stat-value {
    font-size: 2rem;
    font-weight: 800;
}

.blog-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Featured Post */
.featured-post {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.dark .featured-post {
    background: #1e293b;
}

.featured-post-image {
    height: 300px;
    overflow: hidden;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post:hover .featured-post-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Blog Card Premium */
.blog-card-premium {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid #f1f5f9;
}

.dark .blog-card-premium {
    background: #1e293b;
    border-color: #334155;
}

.blog-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.15);
}

.blog-card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card-premium:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #6366f1;
}

.blog-card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-body {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #64748b;
}

.blog-card-meta i {
    margin-right: 4px;
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dark .blog-card-title a {
    color: white;
}

.blog-card-title a:hover {
    color: #4f46e5;
}

.blog-card-excerpt {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.dark .blog-card-footer {
    border-color: #334155;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.blog-author-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.dark .blog-author-name {
    color: white;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4f46e5;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    gap: 10px;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #f1f5f9;
}

.dark .sidebar-card {
    background: #1e293b;
    border-color: #334155;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title i {
    color: #4f46e5;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.dark .category-item {
    border-color: #334155;
}

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

.category-item a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.category-item a:hover {
    color: #4f46e5;
}

.category-count {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.dark .category-count {
    background: #334155;
}

/* Popular Posts */
.popular-post {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.dark .popular-post {
    border-color: #334155;
}

.popular-post:last-child {
    border-bottom: none;
}

.popular-post-image {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
}

.popular-post-content h4 a {
    color: #1e293b;
    text-decoration: none;
}

.dark .popular-post-content h4 a {
    color: white;
}

.popular-post-content h4 a:hover {
    color: #4f46e5;
}

.popular-post-meta {
    font-size: 12px;
    color: #64748b;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    background: #f1f5f9;
    color: #64748b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dark .tag-item {
    background: #334155;
}

.tag-item:hover {
    background: #4f46e5;
    color: white;
}

/* Newsletter */
.newsletter-card {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}

.newsletter-card .sidebar-title {
    color: white;
}

.newsletter-card .sidebar-title i {
    color: white;
}

.newsletter-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: none;
    margin-bottom: 12px;
    font-size: 14px;
}

.newsletter-btn {
    width: 100%;
    padding: 14px;
    background: white;
    color: #4f46e5;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Pagination Premium */
.pagination-premium {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 3rem;
}

.page-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: white;
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.dark .page-btn {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.page-btn:hover,
.page-btn.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-color: transparent;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-stats {
        gap: 2rem;
    }

    .blog-sidebar {
        position: static;
        margin-top: 3rem;
    }
}

@media (max-width: 767px) {
    .blog-hero {
        padding: 60px 0;
    }

    .blog-hero h1 {
        font-size: 1.75rem;
    }

    .blog-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .blog-stat-item {
        flex: 0 0 33.33%;
    }

    .featured-post {
        margin-top: -40px;
    }

    .featured-post-image {
        height: 200px;
    }
}