/* Dashboard Page Styles */

.search-hero {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--heading-color) 100%);
    padding: 90px 0 40px;
    color: var(--contrast-color);
}

.search-hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.search-hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    font-family: var(--nav-font);
}

.search-hero h1 {
    font-size: 2.7rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-family: var(--heading-font);
    color: var(--contrast-color);
}

.search-hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.search-box {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    max-width: 720px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 50px;
    background: var(--surface-color);
    font-size: 1.05rem;
    color: var(--default-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: var(--default-font);
}

.search-box input::placeholder {
    color: #999;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(65, 84, 241, 0.2);
}

.search-box button {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 50px;
    background: var(--accent-color);
    color: var(--contrast-color);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(65, 84, 241, 0.3);
    font-family: var(--default-font);
}

.search-box button:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 15%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 84, 241, 0.4);
}

.search-hint {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

/* Search Result Cards */
.search-result-card {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-left: 5px solid var(--accent-color);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.search-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color), var(--heading-color));
    transition: width 0.3s ease;
}

.search-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(65, 84, 241, 0.15);
    border-color: rgba(65, 84, 241, 0.2);
}

.search-result-card:hover::before {
    width: 100%;
    opacity: 0.03;
}

.search-result-card .post-category {
    margin-bottom: 15px;
}

.search-result-card .title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
    font-family: var(--heading-font);
    font-weight: 700;
}

.search-result-card .title a {
    color: var(--heading-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.search-result-card .title a:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

.search-result-card .post-description {
    color: #64748b;
    font-size: 1.05rem;
    margin-bottom: 15px;
    line-height: 1.7;
}

.search-result-card .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
}

.search-result-card .post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-result-card .post-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.search-result-card .post-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    background: #f8fafc;
    border-radius: 50px;
    color: #64748b;
    font-weight: 500;
    transition: all 0.2s ease;
}

.search-result-card .post-stats span:hover {
    background: #e0e7ff;
    transform: translateY(-2px);
}

.search-result-card .post-stats i {
    color: var(--accent-color);
}

.search-result-card .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.search-result-card .post-tags .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #e0e7ff, #f3f4f6);
    color: var(--heading-color);
    border: 1px solid #cbd5e1;
    font-weight: 600;
}

/* Dark Mode */
[data-theme="dark"] .search-box input {
    background: var(--input-bg);
    color: var(--default-color);
}

[data-theme="dark"] .search-result-card {
    background-color: var(--surface-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .post-description {
    color: var(--default-color);
}

[data-theme="dark"] .search-result-card .post-stats span {
    background: var(--input-bg);
    color: var(--default-color);
}

[data-theme="dark"] .search-result-card .post-stats span:hover {
    background: var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .search-hero {
        padding: 60px 20px 40px;
    }

    .search-hero h1 {
        font-size: 1.8rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box input,
    .search-box button {
        width: 100%;
    }

    .search-result-card {
        padding: 1.5rem;
    }

    .search-result-card .title {
        font-size: 1.2rem;
    }
}
