/**
 * Modern Search Results Page Styles
 * Vize Tema - Search Results
 */

/* Search Hero Section */
.search-hero-section {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #006233 0%, #004d26 100%);
    overflow: hidden;
}

.search-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: 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.4'%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");
}

.search-hero-content {
    position: relative;
    text-align: center;
    color: white !important;
}

/* Hero içindeki metinler beyaz, input hariç */
.search-hero-content h1,
.search-hero-content h2,
.search-hero-content h3,
.search-hero-content h4,
.search-hero-content p,
.search-hero-content span,
.search-hero-content i {
    color: white !important;
}

.search-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

.search-icon-wrapper i {
    font-size: 36px;
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.search-hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.search-count {
    color: #FFD700;
    font-size: 48px;
}

.search-query-text {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* Search Form in Hero */
.search-form-hero {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    background: white;
    border-radius: 60px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-input {
    flex: 1;
    padding: 18px 30px;
    border: none;
    font-size: 16px;
    outline: none;
    color: #333 !important;
    background: white !important;
}

.search-input::placeholder {
    color: #999 !important;
    opacity: 1;
}

.search-btn {
    padding: 18px 40px;
    background: linear-gradient(135deg, #d21034 0%, #a00d2a 100%);
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-btn:hover {
    background: linear-gradient(135deg, #a00d2a 0%, #800a20 100%);
}

/* Search Results Section */
.search-results-section {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Search Filters */
.search-filters {
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.filter-tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filter-tab {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tab:hover {
    background: white;
    border-color: #006233;
    color: #006233;
}

.filter-tab.active {
    background: #006233;
    color: white;
    border-color: #006233;
}

.filter-tab .count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.filter-tab.active .count {
    background: rgba(255, 255, 255, 0.3);
}

/* Search Results Grid */
.search-results-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Search Result Card */
.search-result-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

.search-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.result-card-inner {
    display: flex;
    gap: 0;
}

.result-thumbnail {
    position: relative;
    width: 280px;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.search-result-card:hover .result-thumbnail img {
    transform: scale(1.1);
}

.result-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 98, 51, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-result-card:hover .result-overlay {
    opacity: 1;
}

.result-overlay i {
    color: white;
    font-size: 24px;
}

.result-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #006233;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.result-content {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
}

.result-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.result-meta i {
    margin-right: 5px;
    color: #999;
}

.result-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.result-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.result-title a:hover {
    color: #006233;
}

.result-title mark,
.result-excerpt mark {
    background: #FFD700;
    padding: 2px 4px;
    border-radius: 3px;
}

.result-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.result-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #006233;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.result-link:hover {
    gap: 12px;
    color: #004d26;
}

/* No Results */
.no-results-wrapper {
    background: white;
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.no-results-icon {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 30px;
}

.no-results-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.no-results-desc {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.search-suggestions-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: left;
}

.search-suggestions-box h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.search-suggestions-box ul {
    list-style: none;
    padding: 0;
}

.search-suggestions-box li {
    padding: 10px 0;
    color: #666;
}

.search-suggestions-box li i {
    color: #4CAF50;
    margin-right: 10px;
}

/* Popular Content */
.popular-content {
    margin-top: 40px;
}

.popular-content h4 {
    font-size: 20px;
    margin-bottom: 25px;
    color: #333;
}

.popular-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.popular-card {
    display: flex;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    max-width: 300px;
    text-align: left;
}

.popular-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.popular-info h5 {
    font-size: 14px;
    margin-bottom: 5px;
}

.popular-info h5 a {
    color: #333;
    text-decoration: none;
}

.popular-info h5 a:hover {
    color: #006233;
}

.popular-date {
    font-size: 12px;
    color: #999;
}

/* Pagination */
.search-pagination {
    margin-top: 50px;
}

.search-pagination ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.search-pagination li {
    display: inline-block;
}

.search-pagination a,
.search-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.search-pagination a:hover {
    background: #006233;
    border-color: #006233;
    color: white;
}

.search-pagination .current span {
    background: #006233;
    border-color: #006233;
    color: white;
}

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

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    color: #006233;
}

/* Search Stats */
.search-stats .stats-content {
    display: flex;
    gap: 20px;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #006233;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

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

.category-list li {
    border-bottom: 1px solid #f0f0f0;
}

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

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-list a:hover {
    color: #006233;
    padding-left: 10px;
}

.category-list .count {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-block;
    padding: 8px 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #006233;
    border-color: #006233;
    color: white;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive - Tablet */
@media (max-width: 991px) {
    .result-card-inner {
        flex-direction: column;
    }
    
    .result-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .search-hero-section {
        padding: 100px 0 60px;
    }
}

/* Responsive - Mobile Large */
@media (max-width: 768px) {
    .search-hero-section {
        padding: 90px 0 50px;
    }
    
    .search-hero-title {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .search-count {
        font-size: 32px;
        display: block;
        margin-bottom: 5px;
    }
    
    .search-query-text {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .search-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .search-icon-wrapper i {
        font-size: 28px;
    }
    
    .search-form-hero {
        padding: 0 15px;
    }
    
    .search-input-group {
        flex-direction: row;
        border-radius: 50px;
    }
    
    .search-input {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 15px 25px;
        font-size: 14px;
    }
    
    .search-btn span {
        display: none;
    }
    
    /* Results Section */
    .search-results-section {
        padding: 50px 0;
    }
    
    .search-filters {
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .filter-tabs {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 10px;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .filter-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .filter-tab {
        flex-shrink: 0;
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .search-result-card {
        margin-bottom: 20px;
        border-radius: 12px;
    }
    
    .result-thumbnail {
        height: 180px;
    }
    
    .result-content {
        padding: 20px;
    }
    
    .result-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .result-meta {
        font-size: 12px;
        gap: 15px;
        margin-bottom: 10px;
    }
    
    .result-excerpt {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .result-link {
        font-size: 14px;
    }
    
    /* Sidebar */
    .search-sidebar {
        margin-top: 40px;
        position: static;
    }
    
    .sidebar-widget {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .widget-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    /* Popular cards */
    .popular-cards {
        flex-direction: column;
        align-items: stretch;
    }
    
    .popular-card {
        max-width: 100%;
    }
    
    /* No Results */
    .no-results-wrapper {
        padding: 40px 20px;
    }
    
    .no-results-icon {
        font-size: 60px;
        margin-bottom: 20px;
    }
    
    .no-results-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .no-results-desc {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .search-suggestions-box {
        padding: 20px;
        margin-bottom: 30px;
    }
}

/* Responsive - Mobile Small */
@media (max-width: 480px) {
    .search-hero-section {
        padding: 80px 0 40px;
    }
    
    .search-hero-title {
        font-size: 22px;
        line-height: 1.4;
    }
    
    .search-count {
        font-size: 26px;
    }
    
    .search-query-text {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .search-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .search-icon-wrapper i {
        font-size: 24px;
    }
    
    /* Mobile Search Form */
    .search-input-group {
        flex-direction: column;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        background: white;
    }
    
    .search-input {
        padding: 16px 20px;
        font-size: 16px;
        border-radius: 0;
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
        color: #333 !important;
        background: white !important;
    }
    
    .search-btn {
        width: 100%;
        padding: 16px;
        justify-content: center;
        border-radius: 0;
        font-size: 16px;
        font-weight: 600;
        margin: 0;
    }
    
    .search-btn span {
        display: inline;
    }
    
    .search-btn i {
        margin-right: 8px;
    }
    
    /* Results */
    .search-results-section {
        padding: 40px 0;
    }
    
    .search-filters {
        padding: 12px;
        border-radius: 10px;
    }
    
    .filter-tab {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 20px;
    }
    
    .filter-tab .count {
        padding: 1px 5px;
        font-size: 10px;
    }
    
    .search-result-card {
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    }
    
    .result-thumbnail {
        height: 150px;
    }
    
    .result-type-badge {
        font-size: 10px;
        padding: 4px 10px;
        top: 10px;
        left: 10px;
    }
    
    .result-content {
        padding: 15px;
    }
    
    .result-title {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .result-meta {
        flex-wrap: wrap;
        font-size: 11px;
    }
    
    .result-excerpt {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .result-link {
        font-size: 13px;
        padding: 8px 0;
    }
    
    /* Pagination */
    .search-pagination {
        margin-top: 30px;
    }
    
    .search-pagination a,
    .search-pagination span {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    /* Sidebar Widgets */
    .sidebar-widget {
        padding: 15px;
        border-radius: 10px;
    }
    
    .widget-title {
        font-size: 15px;
    }
    
    .stat-item {
        padding: 10px;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .category-list a {
        padding: 10px 0;
        font-size: 14px;
    }
    
    .tag-item {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* No Results Mobile */
    .no-results-wrapper {
        padding: 30px 15px;
        border-radius: 10px;
    }
    
    .no-results-icon {
        font-size: 50px;
    }
    
    .no-results-title {
        font-size: 20px;
    }
    
    .no-results-desc {
        font-size: 14px;
    }
    
    .search-suggestions-box {
        padding: 15px;
        border-radius: 8px;
    }
    
    .search-suggestions-box h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .search-suggestions-box li {
        padding: 8px 0;
        font-size: 13px;
    }
    
    .popular-content h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .popular-card {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .popular-thumb {
        width: 50px;
        height: 50px;
    }
    
    .popular-info h5 {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .popular-date {
        font-size: 11px;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .search-hero-title {
        font-size: 20px;
    }
    
    .search-count {
        font-size: 24px;
    }
    
    .search-query-text {
        font-size: 13px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 14px 16px;
    }
    
    .search-btn {
        font-size: 14px;
        padding: 14px;
    }
}