/* SpotTheSplat Charities & Funders */

#sts-charities-app {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sts-login-card { text-align: center; padding: 40px 30px; background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; margin: 20px 0; }
.sts-login-card h3 { margin: 0 0 12px 0; font-size: 22px; color: #1a1a1a; }
.sts-login-card p { color: #555; margin: 0 0 24px 0; }
.sts-btn { display: inline-block; padding: 10px 20px; background: #1e3a5f; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; text-decoration: none; }
.sts-btn:hover { background: #2c5f8a; color: white; }
.sts-btn-small { padding: 5px 12px; font-size: 12px; }
.sts-google-btn { background: #4285f4; }
.sts-google-btn:hover { background: #3367d6; color: white; }
.sts-welcome { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; margin-bottom: 20px; border-bottom: 1px solid #dee2e6; }
.sts-welcome span { font-weight: 600; color: #1a1a1a; }

/* Tabs */
.sts-charities-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}
.sts-tab {
    padding: 10px 24px;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}
.sts-tab:hover { background: #e9ecef; }
.sts-tab-active {
    background: #1e3a5f;
    color: white;
    border-color: #1e3a5f;
}

.sts-panel { display: none; }
.sts-panel-active { display: block; }

/* Search and Filter */
.sts-search-bar { margin-bottom: 12px; }
#sts-charities-search {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
#sts-charities-search:focus { outline: none; border-color: #2c5f8a; box-shadow: 0 0 0 2px rgba(44,95,138,0.2); }

.sts-filter-bar { margin-bottom: 20px; }
#sts-tag-filter {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Cards */
.sts-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
}
.sts-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.sts-card-title {
    margin: 0 0 6px 0;
    font-size: 18px;
    color: #1e3a5f;
}
.sts-card-title a { color: #1e3a5f; text-decoration: none; }
.sts-card-title a:hover { text-decoration: underline; }

.sts-card-registration {
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
}
.sts-card-registration a { color: #2c5f8a; text-decoration: none; }
.sts-card-registration a:hover { text-decoration: underline; }

.sts-card-area {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.sts-card-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.sts-card-desc {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin: 8px 0;
}

.sts-card-contact {
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}
.sts-card-contact a { color: #2c5f8a; text-decoration: none; }
.sts-card-contact a:hover { text-decoration: underline; }

.sts-card-address {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.sts-card-apply {
    font-size: 13px;
    color: #333;
    margin: 8px 0;
    padding: 8px 12px;
    background: #f0f7ff;
    border-radius: 4px;
}

/* Tags */
.sts-card-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px; }
.sts-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.sts-tag-funder {
    background: #e8f5e9;
    color: #2e7d32;
}
