/**
 * ChadTough Tribute Donations - Public Styles
 */

/* Search Interface */
.chad-give-search-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.chad-give-search-wrapper label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #151f6d;
    font-size: 16px;
}

.chad-give-search-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.chad-give-search-input:focus {
    outline: none;
    border-color: #151f6d;
    box-shadow: 0 0 0 3px rgba(21, 31, 109, 0.1);
}

/* Kid Card Styles */
.chad-give-kid-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    grid-column: 1 / -1;
}

.chad-give-kid-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chad-give-kid-card .kid-info {
    flex: 1;
}

.chad-give-kid-card .kid-name {
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.chad-give-change-kid {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.chad-give-change-kid:hover {
    background: #f8f9fa;
}

/* Kid Search Card Styles */
.chad-give-kid-search-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.chad-give-kid-search-card:hover {
    background: #f8f9fa;
    border-color: #151f6d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chad-give-kid-search-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chad-give-kid-search-card .kid-name {
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 4px 0;
    color: #333;
}

.chad-give-kid-search-card .kid-alternate-names {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.chad-give-kid-search-card .kid-info {
    flex: 1;
}

/* Search Results */
.chad-give-search-results {
    margin-top: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    max-height: 400px;
    overflow-y: auto;
}

.chad-give-search-result {
    border-bottom: 1px solid #eee;
}

.chad-give-search-result:last-child {
    border-bottom: none;
}

.chad-give-result-link {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
}

.chad-give-result-link:hover,
.chad-give-result-link:focus {
    background-color: #f8f9fa;
    outline: none;
}

.chad-give-result-photo {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 50%;
    overflow: hidden;
    background: #e9ecef;
}

.chad-give-result-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chad-give-no-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #6c757d;
    text-align: center;
    background: #e9ecef;
}

.chad-give-result-name {
    font-size: 16px;
    font-weight: 600;
    color: #151f6d;
}

/* Search Info Messages */
.chad-give-search-info,
.chad-give-searching,
.chad-give-no-results,
.chad-give-error {
    padding: 15px;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

.chad-give-searching {
    color: #151f6d;
}

.chad-give-no-results {
    color: #6c757d;
}

.chad-give-error {
    color: #dc3545;
}

/* Selection Confirmation */
.chad-give-selection-confirmation {
    margin-top: 15px;
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    color: #155724;
    font-size: 16px;
}

.chad-give-selection-confirmation strong {
    color: #151f6d;
}

.chad-give-clear-selection {
    margin-left: 10px;
    color: #151f6d;
    text-decoration: underline;
    font-size: 14px;
}

.chad-give-clear-selection:hover {
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chad-give-search-wrapper {
        padding: 15px;
    }
    
    .chad-give-result-photo {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }
    
    .chad-give-result-name {
        font-size: 14px;
    }
    
    .chad-give-result-link {
        padding: 12px;
    }
}

/* ChadTough Brand Colors */
:root {
    --chad-blue: #151f6d;
    --chad-yellow: #ffde00;
    --chad-orange: #ff6b35;
}

/* Integration with GiveWP Forms */
.give-form .chad-give-search-wrapper {
    margin-bottom: 25px;
}

/* Accessibility */
.chad-give-search-input:focus-visible,
.chad-give-result-link:focus-visible {
    outline: 2px solid #151f6d;
    outline-offset: 2px;
}

