/**
 * Nonprofit Cards - Shared Component Styles
 *
 * Standard card for displaying nonprofits/organizations across public pages
 * (homepage, search, cause pages, country pages, etc.).
 *
 * This file lives in public/css/ so it can be directly linked by layouts
 * that don't use the Vite pipeline (e.g. cause-public which uses Tailwind CDN).
 */

/* ==========================================================================
   Nonprofit Card
   ========================================================================== */

.nonprofit-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.nonprofit-card:hover {
    border-color: #33AEF4;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* Cover image area */
.nonprofit-card-cover {
    height: 150px;
    position: relative;
    overflow: hidden;
    background-color: #ECF0F2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nonprofit-card-cover img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Fallback gradient when no cover image */
.nonprofit-card-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
}

.nonprofit-card-fallback-orb-1 {
    position: absolute;
    border-radius: 50%;
    background: rgba(51, 174, 244, 0.3);
    filter: blur(50px);
}

.nonprofit-card-fallback-orb-2 {
    position: absolute;
    border-radius: 50%;
    background: rgba(56, 26, 183, 0.4);
    filter: blur(40px);
}

/* Logo (overlapping cover image) */
.nonprofit-card-logo {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    border: 1px solid #AAAAAA;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: -35px;
    margin-bottom: 12px;
    object-fit: cover;
    background-color: #fff;
}

/* Logo placeholder (initial letter) */
.nonprofit-card-logo-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    border: 1px solid #AAAAAA;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: -35px;
    margin-bottom: 12px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nonprofit-card-logo-placeholder span {
    color: #33AEF4;
}

/* Card text colors */
.nonprofit-card-name {
    color: #333333;
}

.nonprofit-card-desc {
    color: #333333;
}

.nonprofit-card-location {
    color: #909090;
}
