/* ============================================
   PARTNERS PAGE SPECIFIC STYLES
   WiFiHapa - Partner Showcase & Directory Styles
   ============================================ */

/* Hero Section */
.partners-hero {
    background: linear-gradient(145deg, #edf4ff 0%, #ffffff 100%);
    padding: 2.5rem 2rem;
    border-radius: 48px;
    margin: 1.5rem 0 2rem;
    border: 1px solid rgba(13, 110, 253, 0.05);
    transition: var(--transition, all 0.3s ease);
}

body.dark .partners-hero {
    background: var(--hero-bg, linear-gradient(145deg, #111827 0%, #1e2538 100%));
}

@media (max-width: 768px) {
    .partners-hero {
        padding: 1.5rem;
    }
    .partners-hero h1 {
        font-size: 1.8rem;
    }
}

/* Partner Cards */
.partner-card {
    background: var(--card-bg, white);
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.04));
    border: 1px solid var(--border-light, rgba(0,0,0,0.02));
    transition: var(--transition, all 0.25s ease);
    height: 100%;
    text-align: center;
}

body.dark .partner-card {
    background: var(--card-bg, #1e2538);
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg, 0 12px 30px rgba(13,110,253,0.08));
    border-color: rgba(13, 110, 253, 0.2);
}

/* Partner Logo */
.partner-logo {
    width: 100px;
    height: 100px;
    background: var(--badge-light-bg, #f8fafd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    overflow: hidden;
}

body.dark .partner-logo {
    background: var(--badge-light-bg, #2a3448);
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #0d6efd;
}

.partner-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #0a2c3d);
}

.partner-type {
    display: inline-block;
    background: #e4edff;
    color: #0d6efd;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

body.dark .partner-type {
    background: #2a3448;
}

.partner-description {
    color: var(--text-secondary, #5e6f7d);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Partner Stats */
.partner-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-light, #e9ecef);
}

.partner-stats div {
    text-align: center;
}

.partner-stats strong {
    font-size: 0.9rem;
    display: block;
    color: var(--text-primary, #0a2c3d);
}

.partner-stats span {
    font-size: 0.65rem;
    color: var(--text-secondary, #5e6f7d);
}

/* Partner Social Icons */
.partner-social {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1rem;
}

.partner-social a {
    width: 34px;
    height: 34px;
    background: var(--badge-light-bg, #f0f2f5);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary, #0a2c3d);
    transition: var(--transition, all 0.2s ease);
    text-decoration: none;
    font-size: 0.9rem;
}

body.dark .partner-social a {
    background: var(--badge-light-bg, #2a3448);
}

.partner-social a:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-3px);
}

/* Section Title */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #0a2c3d);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
}

/* CTA Section */
.cta-section {
    background: var(--card-bg, white);
    border-radius: 32px;
    padding: 2rem;
    border: 1px solid var(--border-light, rgba(0,0,0,0.02));
    margin-top: 1rem;
}

body.dark .cta-section {
    background: var(--card-bg, #1e2538);
}

/* Badge Colors */
.badge.bg-dark {
    background-color: #2c3e50 !important;
}

.badge.bg-warning {
    background-color: #d4a11e !important;
    color: #0a2c3d;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

/* Responsive */
@media (max-width: 768px) {
    .partner-card {
        padding: 1.2rem;
    }
    .partner-logo {
        width: 80px;
        height: 80px;
    }
    .logo-placeholder {
        font-size: 2rem;
    }
    .partner-name {
        font-size: 1rem;
    }
    .partner-description {
        font-size: 0.75rem;
    }
    .partner-stats strong {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .partner-stats {
        gap: 0.8rem;
    }
    .partner-social a {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}
/* The light-tint hero badge (bg-opacity-15) must not get the solid gold background above */
.badge.bg-warning.bg-opacity-15 {
  background-color: rgba(212, 161, 30, 0.15) !important;
}

.badge.bg-dark.bg-opacity-10 {
  background-color: rgba(44, 62, 80, 0.1) !important;
}

/* Initials badge (used when there is no logo image) */
.partner-mark {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.28), transparent 55%),
        linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #0a2c3d));
}

.partner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
