/* Search Ultra Modern CSS - Kırmızı & Siyah Tema */

/* SEARCH HERO */
.search-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 7rem 0 4rem;
    position: relative;
}
.search-hero-icon {
    width: 120px; height: 120px;
    background: rgba(220, 0, 0, 0.15);
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 15px 40px rgba(220, 0, 0, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 20px 50px rgba(220, 0, 0, 0.5); }
}
.search-hero-icon i { font-size: 4rem; color: var(--primary-color); }
.search-hero h1 { color: var(--white); font-size: 3.5rem; font-weight: 800; margin-bottom: 1.25rem; }
.search-hero .lead { color: rgba(255, 255, 255, 0.85); font-size: 1.25rem; margin-bottom: 2rem; }

/* SEARCH SECTION */
.search-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

/* SEARCH BOX - MODERN */
.modern-search-box {
    max-width: 800px;
    margin: 0 auto 3rem;
}
.search-input-wrapper {
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 50px;
}
.search-input-wrapper input {
    width: 100%;
    padding: 1.5rem 6rem 1.5rem 4rem;
    border: 3px solid var(--primary-color);
    border-radius: 50px;
    font-size: 1.125rem;
    transition: var(--transition);
}
.search-input-wrapper input:focus {
    box-shadow: 0 0 0 6px rgba(220, 0, 0, 0.15);
    outline: none;
}
.search-icon {
    position: absolute;
    left: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.5rem;
}
.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 1rem 2.5rem;
    background: var(--gradient-red);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

/* SEARCH INFO BAR */
.search-info-bar {
    background: linear-gradient(135deg, rgba(220, 0, 0, 0.05) 0%, rgba(220, 0, 0, 0.02) 100%);
    border: 2px solid rgba(220, 0, 0, 0.1);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.search-query-text {
    font-size: 1.125rem;
    color: var(--text-color);
}
.search-query-text strong {
    color: var(--primary-color);
    font-weight: 700;
}
.search-result-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--white);
    border-radius: 50px;
    font-weight: 700;
    color: var(--secondary-color);
}
.search-result-count i {
    color: var(--primary-color);
}

/* SEARCH RESULTS GRID */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* RESULT CARD */
.search-result-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.search-result-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* CARD IMAGE */
.result-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.result-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.search-result-card:hover .result-card-image img {
    transform: scale(1.15);
}
.result-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

/* BADGES */
.result-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 1;
}
.result-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.badge-tank { background: var(--gradient-red); }
.badge-blog { background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%); }
.badge-proje { background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%); }
.badge-sayfa { background: linear-gradient(135deg, #17a2b8 0%, #138496 100%); }
.badge-referans { background: linear-gradient(135deg, #6c757d 0%, #495057 100%); }
.badge-dokuman { background: linear-gradient(135deg, #dc3545 0%, #c82333 100%); }

/* CARD BODY */
.result-card-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.result-card-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.result-card-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}
.result-card-title a:hover {
    color: var(--primary-color);
}
.result-card-description {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CARD FOOTER */
.result-card-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--light-bg);
}
.result-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: var(--gradient-red);
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(220, 0, 0, 0.3);
}
.result-view-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: var(--white);
}

/* EMPTY STATE */
.search-empty-state {
    text-align: center;
    padding: 5rem 2rem;
}
.empty-state-icon {
    width: 140px;
    height: 140px;
    background: var(--light-bg);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}
.empty-state-icon i {
    font-size: 4.5rem;
    color: var(--text-light);
}
.search-empty-state h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.search-empty-state p {
    color: var(--text-color);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}
.search-suggestions {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 16px;
    max-width: 600px;
    margin: 0 auto;
}
.search-suggestions h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.search-suggestions li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}
.search-suggestions li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* BACK TO TOP */
.modern-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--gradient-red);
    color: var(--white);
    border: 3px solid var(--white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(220, 0, 0, 0.4);
}
.modern-back-to-top.active {
    display: flex;
}
.modern-back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px) scale(1.1);
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
    .search-hero { padding: 5rem 0 3rem; }
    .search-hero h1 { font-size: 2.75rem; }
    .search-section { padding: 4rem 0; }
    .search-results-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 767.98px) {
    .search-hero { padding: 4rem 0 2.5rem; }
    .search-hero h1 { font-size: 2.25rem; }
    .search-section { padding: 3rem 0; }
    .search-input-wrapper input { padding: 1.25rem 5rem 1.25rem 3.5rem; font-size: 1rem; }
    .search-btn { padding: 0.875rem 2rem; }
    .search-info-bar { flex-direction: column; align-items: stretch; }
    .search-results-grid { grid-template-columns: 1fr; }
    .result-card-body { padding: 1.5rem; }
}
