/* =====================
   Blog & Portfolio Page Specific Styles
   ===================== */

/* Hero Section for Blog/Portfolio */
.custom-hero {
    grid-column: 1 / -1;
    background:
        linear-gradient(135deg, rgba(0, 68, 124, 0.9), rgba(3, 91, 122, 0.9)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23035b7a;stop-opacity:0.3" /><stop offset="100%" style="stop-color:%2300447c;stop-opacity:0.1" /></linearGradient></defs><polygon fill="url(%23grad1)" points="0,150 200,50 400,100 600,30 800,80 1000,20 1000,300 0,300"/></svg>');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-sm);
    padding: 4rem 2rem;
    color: var(--text-white);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    margin-top: 20px;
}

.custom-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.custom-hero .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.custom-hero .hero-content h1 {
    text-align: center;
    margin: 0 auto 1rem auto;
    width: 100%;
}

.custom-hero .hero-content p {
    text-align: center;
    margin: 0 auto;
    width: 100%;
}

/* No results message */
.no-results {
    text-align: center;
    padding: var(--spacing-xxl);
    color: var(--text-secondary);
}

.no-results.show {
    display: block;
}

/* Result count styling */
#resultCount {
    margin: 0;
    text-align: center;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-hero {
        order: -1;
        min-height: 200px;
        padding: var(--spacing-xl) var(--spacing-md);
        text-align: center;
        margin-top: 75px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .custom-hero .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .custom-hero h1 {
        font-size: var(--font-size-2xl);
        text-align: center !important;
        margin: 0 auto 1rem auto;
    }

    .custom-hero p {
        font-size: 1.1rem;
        text-align: center !important;
        margin: 0 auto;
    }
}

/* Mobile arama input'unu responsive yap */
@media (max-width: 768px) {
    .d-block.d-md-none {
        display: block !important;
    }

    #customSearchInputMobile {
        display: block !important;
        width: 100%;
        padding: 8px 12px;
    }
}

@media (min-width: 768px) {
    .d-block.d-md-none {
        display: none !important;
    }
}

/* Nav-pills active state same as hover effect */
.nav-pills .nav-link.active {
    color: var(--primary-500);
    background-color: transparent;
    border-radius: var(--bs-nav-pills-border-radius);
}

/* Nav-pills spacing */
.nav-pills .nav-link {
    margin-right: 1rem;
}