/* Homepage Search Section Styles */
.homepage-search-section {
    padding: var(--space-xxl) 0 var(--space-xl);
    background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
    border-bottom: 1px solid #eaeaea;
}

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

/* Using the site's standard section-header-enhanced class instead of custom styling */
.homepage-search-section .section-header-enhanced {
    margin-bottom: var(--space-lg);
}

/* Search Box Styling */
#homepage-search .ais-SearchBox-form {
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #dde1e8;
    display: flex;
    align-items: center;
}

#homepage-search .ais-SearchBox-input {
    flex: 1;
    padding: 18px 24px;
    border: none;
    background: transparent;
    font-size: 18px;
    font-family: 'DM Sans', sans-serif;
    color: #1D252D;
}

#homepage-search .ais-SearchBox-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(238, 39, 55, 0.2);
}

#homepage-search .ais-SearchBox-submit,
#homepage-search .ais-SearchBox-reset {
    background: none;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    color: #777;
}

#homepage-search .ais-SearchBox-submit:hover {
    color: #EE2737;
}

#homepage-search .ais-SearchBox-reset:hover {
    color: #1D252D;
}

/* Search tags/suggestions */
.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--space-md);
    justify-content: center;
}

.search-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
}

.search-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Device Setup - Gray/Neutral (spans multiple pillars) */
.search-tag[data-tag="iPhone Setup"] {
    background-color: rgba(29, 37, 45, 0.08);
    color: #1D252D;
    border: 1px solid rgba(29, 37, 45, 0.15);
}

.search-tag[data-tag="iPhone Setup"]:hover {
    background-color: rgba(29, 37, 45, 0.12);
}

/* Block Harmful Content - Red */
.search-tag[data-tag="YouTube"] {
    background-color: rgba(238, 39, 55, 0.1);
    color: #EE2737;
    border: 1px solid rgba(238, 39, 55, 0.2);
}

.search-tag[data-tag="YouTube"]:hover {
    background-color: rgba(238, 39, 55, 0.15);
}

/* Limit Screen Time - Blue */
.search-tag[data-tag="Screen Time"] {
    background-color: rgba(184, 221, 225, 0.25);
    color: #1D252D;
    border: 1px solid rgba(184, 221, 225, 0.5);
}

.search-tag[data-tag="Screen Time"]:hover {
    background-color: rgba(184, 221, 225, 0.35);
}

/* Prevent Stranger Contact - Gold */
.search-tag[data-tag="Social Media"] {
    background-color: rgba(255, 191, 63, 0.15);
    color: #1D252D;
    border: 1px solid rgba(255, 191, 63, 0.3);
}

.search-tag[data-tag="Social Media"]:hover {
    background-color: rgba(255, 191, 63, 0.25);
}

/* Search results section */
#homepage-search-results {
    margin-top: var(--space-md);
    padding: 0 var(--space-md);
}

/* Reference to card link overlay from header-search.css */
/* The actual styles are in header-search.css, this is just a comment for clarity */
/* 
.search-result {
  position: relative;
}

.card-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
}

.search-result-title a,
.search-result-badge {
  position: relative;
  z-index: 2;
}
*/

.search-results-header {
    font-size: 16px;
    color: #666;
    margin-bottom: var(--space-sm);
    font-family: 'DM Sans', sans-serif;
}

/* Responsive styles */
@media (max-width: 768px) {
    .homepage-search-section {
        padding: var(--space-xl) var(--space-md);
    }
    
    #homepage-search .ais-SearchBox-input {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .search-tags {
        margin-top: var(--space-sm);
    }
}

@media (max-width: 576px) {
    .homepage-search-section {
        padding: var(--space-lg) var(--space-sm);
    }
    
    #homepage-search .ais-SearchBox-form {
        border-radius: 25px;
        width: 100%;
        box-sizing: border-box;
    }
    
    #homepage-search .ais-SearchBox-input {
        padding: 14px 16px;
        font-size: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .search-tag {
        padding: 5px 12px;
        font-size: 13px;
    }
    
    .homepage-search-header h2 {
        font-size: 24px;
    }
    
    .homepage-search-header p {
        font-size: 16px;
    }
}