/* Home Page Styles */

.home-page {
    padding: var(--spacing-md) 0;
}

.home-search-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: var(--spacing-xl) var(--spacing-md);
    border-radius: 8px;
    margin-bottom: var(--spacing-xl);
    color: white;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: white;
}

.home-search-form {
    margin-bottom: var(--spacing-md);
}

.search-type-selector {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.search-type-selector label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-type-selector label:hover {
    background: rgba(255, 255, 255, 0.3);
}

.search-type-selector input[type="radio"] {
    margin: 0;
}

.search-input-wrapper {
    display: flex;
    gap: 8px;
}

.search-field {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
}

.search-submit {
    padding: 12px 32px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: #1a252f;
}

.popular-searches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    align-items: center;
}

.popular-label {
    font-weight: 500;
}

.popular-term {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
    transition: background 0.3s ease;
}

.popular-term:hover {
    background: rgba(255, 255, 255, 0.35);
    color: white;
}

.home-categories {
    margin-bottom: var(--spacing-xl);
}

.home-categories h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--spacing-sm);
}

.category-card {
    padding: var(--spacing-sm);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-card:hover {
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-name {
    font-weight: 500;
    display: block;
}

.category-count {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.home-featured,
.home-latest,
.home-products {
    margin-bottom: var(--spacing-xl);
}

.home-featured h3,
.home-latest h3,
.home-products h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
}

.product-search-box {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    padding: var(--spacing-lg);
    border-radius: 8px;
    margin-bottom: var(--spacing-lg);
}

.product-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: var(--spacing-md);
}

.product-search-field {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
}

.product-search-submit {
    padding: 12px 32px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.product-search-submit:hover {
    background: #1a252f;
}

.product-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.categories-label {
    color: white;
    font-weight: 500;
}

.product-category-link {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.product-category-link:hover {
    background: rgba(255, 255, 255, 0.35);
    color: white;
}

.featured-grid {
    display: grid;
    gap: var(--spacing-md);
}

.colorpage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.colorpage-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.colorpage-card:hover {
    border-color: var(--color-post-accent);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.colorpage-thumbnail {
    display: block;
    overflow: hidden;
}

.colorpage-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.colorpage-card:hover .colorpage-thumbnail img {
    transform: scale(1.05);
}

.colorpage-card-content {
    padding: var(--spacing-md);
}

.colorpage-card-title {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    text-align: left;
}

.colorpage-card-title a {
    color: var(--color-text);
}

.colorpage-card-title a:hover {
    color: var(--color-post-accent);
}

.colorpage-card-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.colorpage-card-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.product-card a {
    display: block;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card h4 {
    padding: var(--spacing-sm);
    background: white;
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
}
