/* Değişim27 Evden Eve Nakliyat - Bloglar Sayfası CSS */

@import url('./index.css');

/* Blog Cards Animation */
.blog-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(19, 127, 236, 0.1), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.blog-card:hover::before {
    left: 100%;
}

.blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(19, 127, 236, 0.25);
}

/* Category Buttons */
.category-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-btn.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(19, 127, 236, 0.3);
}

.category-btn:not(.active) {
    color: var(--primary);
    background: transparent;
}

.category-btn:not(.active):hover {
    background: var(--primary);
    color: white;
}

/* Share Button Animation */
.share-btn {
    transition: all 0.3s ease;
    position: relative;
}

.share-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.share-btn.shared {
    background: var(--primary);
    color: white;
    animation: shareSuccess 0.6s ease;
}

@keyframes shareSuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Pagination Styles */
.pagination a {
    transition: all 0.3s ease;
}

.pagination a:hover {
    transform: translateY(-2px);
}

/* Featured Categories */
.featured-category {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(19, 127, 236, 0.2);
}

.featured-category .material-symbols-outlined {
    transition: all 0.3s ease;
}

.featured-category:hover .material-symbols-outlined {
    transform: scale(1.1) rotate(5deg);
}

/* Newsletter Section */
.newsletter-input {
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Blog Card Image Hover */
.blog-card img {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover img {
    transform: scale(1.1);
}

/* Loading Animation for Blog Cards */
.blog-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.blog-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 25%, rgba(255, 255, 255, 0.5) 50%, transparent 75%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Category Filter Animation */
.category-filter {
    animation: slideInDown 0.6s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blog Grid Entrance Animation */
.blog-grid .blog-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.blog-grid .blog-card:nth-child(1) {
    animation-delay: 0.1s;
}

.blog-grid .blog-card:nth-child(2) {
    animation-delay: 0.2s;
}

.blog-grid .blog-card:nth-child(3) {
    animation-delay: 0.3s;
}

.blog-grid .blog-card:nth-child(4) {
    animation-delay: 0.4s;
}

.blog-grid .blog-card:nth-child(5) {
    animation-delay: 0.5s;
}

.blog-grid .blog-card:nth-child(6) {
    animation-delay: 0.6s;
}

.blog-grid .blog-card:nth-child(7) {
    animation-delay: 0.7s;
}

.blog-grid .blog-card:nth-child(8) {
    animation-delay: 0.8s;
}

.blog-grid .blog-card:nth-child(9) {
    animation-delay: 0.9s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Highlight */
.search-highlight {
    background: linear-gradient(120deg, rgba(19, 127, 236, 0.2) 0%, rgba(19, 127, 236, 0.1) 100%);
    padding: 2px 4px;
    border-radius: 4px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .blog-card {
        margin-bottom: 1rem;
    }

    .blog-card:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .featured-category:hover {
        transform: translateY(-4px);
    }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    .blog-card:hover {
        box-shadow: 0 25px 50px -12px rgba(19, 127, 236, 0.4);
    }

    .category-btn:not(.active) {
        border-color: rgba(19, 127, 236, 0.5);
    }
}

/* Print Styles */
@media print {

    .category-btn,
    .share-btn,
    .pagination,
    .newsletter-section {
        display: none !important;
    }

    .blog-card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}