/* ===== CONTENT CARDS STYLES - GTA VI STYLE ===== */

/* Wiki Article Card */
.wiki-card {
    background: var(--card-bg);
    border-radius: 0.4vw;
    overflow: hidden;
    border: 0.069vw solid var(--card-border);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 15.65vw;
    position: relative;
}

.wiki-card:hover {
    transform: translateY(-0.3vw);
    box-shadow: var(--hover-shadow);
    border-color: #6366F1;
}

.wiki-image-container {
    position: relative;
    width: 100%;
    height: 10vw;
    overflow: hidden;
    background: var(--darker);
}

.wiki-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.wiki-card:hover .wiki-image {
    filter: brightness(0.6);
}

.wiki-content {
    padding: 0.8vw;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wiki-header {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    margin-bottom: 0.2vw;
    flex-grow: 1;
}

.wiki-icon {
    width: 1.6vw;
    height: 1.6vw;
    background: var(--primary);
    border-radius: 0.4vw;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8vw;
    flex-shrink: 0;
}

.wiki-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.9vw;
    font-weight: 600;
    color: var(--card-text);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wiki-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.6vw;
    border-top: 0.069vw solid var(--card-border);
    margin-top: auto;
}

.wiki-meta-info {
    font-size: 0.75vw;
    color: var(--primary);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.wiki-explore-link {
    color: var(--primary);
    font-size: 0.75vw;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3vw;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.wiki-explore-link:hover {
    gap: 0.5vw;
    color: var(--primary-dark);
}

.wiki-hover-stats {
    position: absolute;
    bottom: 0.5vw;
    left: 0.5vw;
    right: 0.5vw;
    display: flex;
    gap: 0.4vw;
    opacity: 0;
    transform: translateY(0.5vw);
    transition: all 0.3s ease;
    z-index: 2;
}

.wiki-card:hover .wiki-hover-stats {
    opacity: 1;
    transform: translateY(0);
}

.wiki-hover-stat {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3vw 0.6vw;
    border-radius: 0.3vw;
    font-size: 0.7vw;
    font-weight: 500;
    white-space: nowrap;
}

.wiki-hover-stat i {
    margin-right: 0.3vw;
    color: var(--primary);
}

/* ===== NEWS CARD - GTA VI STYLE ===== */
.news-card-search {
    background: #ffffff;
    border-radius: 0.5vw;
    overflow: hidden;
    border: 0.104vw solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 0.138vw 0.829vw rgba(99, 102, 241, 0.08);
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-card-search:hover {
    transform: translateY(-0.25vw);
    box-shadow: 0 0.552vw 1.657vw rgba(99, 102, 241, 0.15);
    border-color: #6366F1;
}

/* Image container with 16:9 aspect ratio */
.news-image-container-search {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.news-image-search {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card-search:hover .news-image-search {
    transform: scale(1.05);
}

/* Gradient overlay on image */
.news-image-container-search::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.news-card-search:hover .news-image-container-search::after {
    opacity: 1;
}

/* News content */
.news-content-search {
    padding: 1vw;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4vw;
}

/* Date styling */
.news-date-search {
    font-size: 0.58vw;
    color: #6366F1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04vw;
}

/* Title */
.news-title-search {
    font-family: 'Inter', sans-serif;
    font-size: 0.9vw;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.news-card-search:hover .news-title-search {
    color: #6366F1;
}

/* Description */
.news-description-search {
    color: #64748b;
    font-size: 0.72vw;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Stats row */
.news-stats-row-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.7vw;
    border-top: 0.069vw solid rgba(0, 0, 0, 0.06);
    margin-top: auto;
}

.news-stats-group-search {
    display: flex;
    gap: 0.8vw;
    align-items: center;
}

/* Individual stat items - Styled badges */
.news-stat-search {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65vw;
    font-weight: 500;
    padding: 0.25vw 0.5vw;
    border-radius: 0.25vw;
    transition: all 0.2s ease;
    line-height: 1;
}

.news-stat-search i,
.news-stat-search .fa,
.news-stat-search .fas,
.news-stat-search .lucide-icon,
.news-stat-search [data-lucide] {
    width: 0.7vw;
    height: 0.7vw;
    min-width: 0.7vw;
    min-height: 0.7vw;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Views stat */
.news-stat-search.views {
    background: rgba(99, 102, 241, 0.08);
    color: #6366F1;
}

/* Likes stat */
.news-stat-search.likes {
    background: rgba(236, 72, 153, 0.08);
    color: #EC4899;
}

/* Read more link */
.news-read-more {
    color: #6366F1;
    font-weight: 600;
    font-size: 0.7vw;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.2vw;
}

.news-read-more::after {
    content: '→';
    transition: transform 0.2s ease;
    font-size: 0.8vw;
}

.news-card-search:hover .news-read-more::after {
    transform: translateX(0.2vw);
}

/* ===== CATEGORY CARD - GTA VI STYLE ===== */
.category-card-search {
    background: #ffffff;
    border-radius: 0.5vw;
    overflow: hidden;
    border: 0.069vw solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 0.138vw 0.552vw rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
}

.category-card-search:hover {
    transform: translateY(-0.3vw);
    box-shadow: 0 0.829vw 1.934vw rgba(99, 102, 241, 0.15);
    border-color: #6366F1;
}

/* Image container - 16:9 aspect ratio */
.category-image-container-search {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.category-image-search {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card-search:hover .category-image-search {
    transform: scale(1.05);
}

/* Gradient overlay */
.category-image-container-search::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.category-card-search:hover .category-image-container-search::after {
    opacity: 1;
}

/* Content area - compact padding */
.category-content-search {
    padding: 0.7vw 0.8vw;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2vw;
}

/* Header with icon and title */
.category-header-search {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    flex-grow: 1;
}

.category-icon-search {
    width: 1.15vw;
    height: 1.15vw;
    min-width: 1.15vw;
    min-height: 1.15vw;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border-radius: 0.3vw;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.6vw;
    flex-shrink: 0;
    box-shadow: 0 0.138vw 0.414vw rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.category-card-search:hover .category-icon-search {
    transform: scale(1.05);
    box-shadow: 0 0.276vw 0.691vw rgba(99, 102, 241, 0.4);
}

.category-title-search {
    font-family: 'Inter', sans-serif;
    font-size: 0.9vw;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.category-card-search:hover .category-title-search {
    color: #6366F1;
}

/* Footer - compact */
.category-footer-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5vw;
    border-top: 0.069vw solid rgba(0, 0, 0, 0.06);
    margin-top: auto;
}

/* Views — идентично news-stat-search (иконка и число в одну линию) */
.category-meta-info {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65vw;
    color: #6366F1;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    background: rgba(99, 102, 241, 0.08);
    padding: 0.25vw 0.5vw;
    border-radius: 0.25vw;
    transition: all 0.2s ease;
    line-height: 1;
}

.category-meta-info i,
.category-meta-info .fa,
.category-meta-info .fas,
.category-meta-info .lucide-icon,
.category-meta-info [data-lucide] {
    width: 0.7vw;
    height: 0.7vw;
    min-width: 0.7vw;
    min-height: 0.7vw;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.category-card-search:hover .category-meta-info {
    background: rgba(99, 102, 241, 0.12);
}

.category-explore-link {
    color: #6366F1;
    font-size: 0.68vw;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.2vw;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.category-explore-link i {
    transition: transform 0.2s ease;
    font-size: 0.6vw;
}

.category-card-search:hover .category-explore-link {
    gap: 0.35vw;
}

.category-card-search:hover .category-explore-link i {
    transform: translateX(0.1vw);
}

/* Hover stats - hidden (views popup on category card hover removed) */
.category-hover-stats {
    display: none !important;
}

.category-hover-stat {
    background: rgba(99, 102, 241, 0.9);
    color: white;
    padding: 0.25vw 0.5vw;
    border-radius: 0.2vw;
    font-size: 0.6vw;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.2vw;
    box-shadow: 0 0.138vw 0.552vw rgba(99, 102, 241, 0.4);
}

.category-hover-stat i {
    font-size: 0.55vw;
    opacity: 0.9;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2vw;
    margin-bottom: 3vw;
    position: relative;
    z-index: 5;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1vw;
    margin-bottom: 3vw;
    position: relative;
    z-index: 5;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3vw;
    color: var(--gray);
}

.no-results i {
    font-size: 2.5vw;
    margin-bottom: 1vw;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.2vw;
    margin-bottom: 0.5vw;
    color: var(--card-text);
}

.no-results p {
    font-size: 0.9vw;
}
