/* Shared Header Styles */

header {
    background-color: #ffffff;
    background-image:
        radial-gradient(circle at top left, #C5E67380 0%, transparent 20%),
        radial-gradient(circle at top right, #D4B9FB80 0%, transparent 50%);
    padding: 1rem 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    margin-top: 4px;
}

.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #3C4BFB;
}

.get-started-btn {
    background: linear-gradient(135deg, #3C4BFB 0%, #667eea 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(60, 75, 251, 0.3);
}

.get-started-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(60, 75, 251, 0.4);
}

/* Search Container */
.search-container {
    position: relative;
    flex: 1;
    margin: 0 1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid rgba(60, 75, 251, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: #3C4BFB;
    box-shadow: 0 4px 12px rgba(60, 75, 251, 0.2);
    background: rgba(255, 255, 255, 1);
}

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

.search-clear {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    font-size: 1.5rem;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.search-clear:hover {
    background: rgba(60, 75, 251, 0.1);
    color: #3C4BFB;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-content {
        gap: 0.75rem;
    }

    .search-container {
        flex: 1;
        margin: 0 0.75rem 0 0rem;
        min-width: 0;
    }

    .search-input {
        font-size: 0.9rem;
        padding: 0.6rem 2rem 0.6rem 0.75rem;
    }

    .get-started-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .header-logo {
        width: 48px;
        height: 48px;
    }
}

@media (min-width: 768px) {
    header {
        padding: 1.25rem 1rem;
    }

    .header-logo {
        width: 72px;
        height: 72px;
    }
}
