/* ==========================================================================
   Golf Buddies Pages Styles (find, my_buddies, invite)
   Blue-themed pages for social features
   ========================================================================== */

/* ==========================================================================
   Hero Section
   ========================================================================== */
.buddies-hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFB 100%);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.buddies-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9 0%, #0284c7 100%);
}

.buddies-hero__title {
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.buddies-hero__subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

[data-theme="dark"] .buddies-hero {
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%);
}

[data-theme="dark"] .buddies-hero::before {
    background: linear-gradient(90deg, #38bdf8 0%, #0ea5e9 100%);
}

/* ==========================================================================
   Navigation Links
   ========================================================================== */
.buddies-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.buddies-nav__link {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
}

.buddies-nav__link:hover {
    background: var(--secondary-bg);
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.buddies-nav__badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

[data-theme="dark"] .buddies-nav__link {
    background: var(--card-bg);
}

/* ==========================================================================
   Section Container
   ========================================================================== */
.buddies-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
}

.buddies-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.buddies-section__title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.buddies-section__badge {
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.buddies-section__badge--success {
    background: #10b981;
}

[data-theme="dark"] .buddies-section {
    background: var(--card-bg);
}

[data-theme="dark"] .buddies-section__header {
    border-bottom-color: var(--border-color);
}

/* ==========================================================================
   Search Box
   ========================================================================== */
.buddies-search {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.buddies-search__input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #bae6fd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.buddies-search__input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.buddies-search__btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.buddies-search__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

[data-theme="dark"] .buddies-search {
    background: var(--card-bg);
}

[data-theme="dark"] .buddies-search__input {
    background: var(--secondary-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* ==========================================================================
   Buddy/User Card
   ========================================================================== */
.buddy-card {
    background: var(--secondary-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
}

.buddy-card:hover {
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.12);
    transform: translateY(-2px);
    border-color: #0ea5e9;
}

.buddy-card--clickable {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.buddy-card--activity {
    padding: 0.75rem;
}

.buddy-card__header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.buddy-card__header--compact {
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    margin-bottom: 0;
}

.buddy-card__avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
}

.buddy-card__avatar--small {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}

.buddy-card__avatar--large {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.buddy-card__name {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.buddy-card__name--small {
    font-size: 0.9rem;
}

.buddy-card__meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.buddy-card__meta--small {
    font-size: 0.75rem;
}

.buddy-card__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

[data-theme="dark"] .buddy-card {
    background: var(--card-bg);
}

/* ==========================================================================
   User Stats (in search results)
   ========================================================================== */
.buddy-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.buddy-card__stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.buddy-card__stats i {
    color: #0ea5e9;
    font-size: 0.8rem;
}

.buddy-card__brands {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
}

.buddy-card__brands i {
    color: #94a3b8;
    font-size: 0.75rem;
}

.buddy-card__stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.buddy-card__info {
    flex: 1;
    min-width: 0;
}

.buddy-card__username {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
}

.buddy-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-right: 1rem;
}

.buddy-card__meta i {
    color: #0ea5e9;
    font-size: 0.8rem;
}

.buddy-card__stats-row {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 1rem 0;
}

.buddy-card__stat-box {
    flex: 1;
    text-align: center;
}

.buddy-card__stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0ea5e9;
    line-height: 1.2;
}

.buddy-card__stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.buddy-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.buddies-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
}

.buddies-badge--success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.buddies-badge--warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

[data-theme="dark"] .buddy-card__stat-value {
    color: #38bdf8;
}

[data-theme="dark"] .buddies-badge--success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

[data-theme="dark"] .buddies-badge--warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

/* ==========================================================================
   Buddy Details Section
   ========================================================================== */
.buddy-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.buddy-details__section {
    margin-bottom: 1rem;
}

.buddy-details__label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* Courses List */
.buddy-details__courses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.buddy-details__course-tag {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(2, 132, 199, 0.05) 100%);
    color: #0369a1;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

/* Recent Items */
.buddy-details__items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.buddy-details__item {
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    border: 1px solid var(--border-light);
}

[data-theme="dark"] .buddy-details__item {
    background: var(--secondary-bg);
}

/* ==========================================================================
   Equipment Summary (in buddy cards)
   ========================================================================== */
.buddy-equipment {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.buddy-equipment__title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.buddy-equipment__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.4rem;
}

.buddy-equipment__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border-left: 3px solid;
}

.buddy-equipment__item--driver {
    background: rgba(5, 150, 105, 0.08);
    border-left-color: var(--accent-green);
}

.buddy-equipment__item--woods {
    background: rgba(16, 185, 129, 0.08);
    border-left-color: #10b981;
}

.buddy-equipment__item--hybrid {
    background: rgba(14, 165, 233, 0.08);
    border-left-color: #0ea5e9;
}

.buddy-equipment__item--irons {
    background: rgba(59, 130, 246, 0.08);
    border-left-color: #3b82f6;
}

.buddy-equipment__item--wedges {
    background: rgba(249, 115, 22, 0.08);
    border-left-color: #f97316;
}

.buddy-equipment__item--putter {
    background: rgba(139, 92, 246, 0.08);
    border-left-color: #8b5cf6;
}

.buddy-equipment__item--ball {
    background: rgba(236, 72, 153, 0.08);
    border-left-color: #ec4899;
}

.buddy-equipment__type {
    font-weight: 700;
    font-size: 0.75rem;
    min-width: 45px;
}

.buddy-equipment__value {
    color: var(--text-primary);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   Activity Feed Items
   ========================================================================== */
.activity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.activity-item--achievement {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}

.activity-item--round {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
}

.activity-item--equipment {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}

.activity-item--course {
    background: linear-gradient(135deg, #F3E8FF 0%, #E9D5FF 100%);
}

.activity-item__icon {
    font-size: 1rem;
}

.activity-item__content {
    flex: 1;
}

.activity-item__title {
    font-weight: 600;
    font-size: 0.85rem;
}

.activity-item__subtitle {
    font-size: 0.8rem;
}

.activity-item__score {
    font-size: 1.25rem;
    font-weight: 700;
}

/* ==========================================================================
   Community Stats
   ========================================================================== */
.community-stats {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.community-stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.community-stats__item {
    text-align: center;
}

.community-stats__value {
    font-size: 2rem;
    font-weight: 700;
}

.community-stats__label {
    font-weight: 600;
    font-size: 0.9rem;
}

[data-theme="dark"] .community-stats {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
}

/* Community Stats Color Variants */
.community-stats__item--blue .community-stats__value { color: #3b82f6; }
.community-stats__item--blue .community-stats__label { color: #1e40af; }

.community-stats__item--amber .community-stats__value { color: #f59e0b; }
.community-stats__item--amber .community-stats__label { color: #92400e; }

.community-stats__item--green .community-stats__value { color: #059669; }
.community-stats__item--green .community-stats__label { color: #064E3B; }

.community-stats__item--purple .community-stats__value { color: #7c3aed; }
.community-stats__item--purple .community-stats__label { color: #5b21b6; }

/* Dark mode - brighter colors for visibility */
[data-theme="dark"] .community-stats__item--blue .community-stats__value { color: #60a5fa; }
[data-theme="dark"] .community-stats__item--blue .community-stats__label { color: #93c5fd; }

[data-theme="dark"] .community-stats__item--amber .community-stats__value { color: #fbbf24; }
[data-theme="dark"] .community-stats__item--amber .community-stats__label { color: #fcd34d; }

[data-theme="dark"] .community-stats__item--green .community-stats__value { color: #34d399; }
[data-theme="dark"] .community-stats__item--green .community-stats__label { color: #6ee7b7; }

[data-theme="dark"] .community-stats__item--purple .community-stats__value { color: #a78bfa; }
[data-theme="dark"] .community-stats__item--purple .community-stats__label { color: #c4b5fd; }

/* ==========================================================================
   Public Stat Cards (Anonymous Users)
   ========================================================================== */
.public-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.public-stat-card {
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.public-stat-card--small {
    text-align: center;
    margin-bottom: 0;
}

.public-stat-card__main {
    text-align: center;
    margin-bottom: 1rem;
}

.public-stat-card__value {
    font-size: 2rem;
    font-weight: 700;
}

.public-stat-card__label {
    font-weight: 600;
    font-size: 0.9rem;
}

.public-stat-card__section {
    margin-top: 1rem;
}

.public-stat-card__section-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.public-stat-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.public-stat-card__tag {
    background: var(--card-bg);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid;
}

.public-stat-card__tag span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.public-stat-card__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.public-stat-card__list-item {
    background: var(--card-bg);
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid;
}

.public-stat-card__list-name {
    font-weight: 600;
    color: var(--text-primary);
}

.public-stat-card__list-count {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Color variants - Light mode */
.public-stat-card--blue {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}
.public-stat-card--blue .public-stat-card__value { color: #2563eb; }
.public-stat-card--blue .public-stat-card__label { color: #1e40af; }
.public-stat-card--blue .public-stat-card__section-title { color: #1e3a8a; }
.public-stat-card__tag--blue { border-color: #3b82f6; color: var(--text-primary); }

.public-stat-card--green {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
}
.public-stat-card--green .public-stat-card__value { color: #059669; }
.public-stat-card--green .public-stat-card__label { color: #064E3B; }

.public-stat-card--yellow {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}
.public-stat-card--yellow .public-stat-card__value { color: #d97706; }
.public-stat-card--yellow .public-stat-card__label { color: #78350F; }

.public-stat-card--purple {
    background: linear-gradient(135deg, #F3E8FF 0%, #E9D5FF 100%);
}
.public-stat-card--purple .public-stat-card__value { color: #7c3aed; }
.public-stat-card--purple .public-stat-card__label { color: #5b21b6; }

.public-stat-card--orange {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
}
.public-stat-card--orange .public-stat-card__section-title { color: #9a3412; }
.public-stat-card--orange .public-stat-card__list-item { border-color: #ea580c; }

/* Dark mode variants */
[data-theme="dark"] .public-stat-card--blue {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
}
[data-theme="dark"] .public-stat-card--blue .public-stat-card__value { color: #60a5fa; }
[data-theme="dark"] .public-stat-card--blue .public-stat-card__label { color: #93c5fd; }
[data-theme="dark"] .public-stat-card--blue .public-stat-card__section-title { color: #93c5fd; }

[data-theme="dark"] .public-stat-card--green {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
}
[data-theme="dark"] .public-stat-card--green .public-stat-card__value { color: #34d399; }
[data-theme="dark"] .public-stat-card--green .public-stat-card__label { color: #6ee7b7; }

[data-theme="dark"] .public-stat-card--yellow {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
}
[data-theme="dark"] .public-stat-card--yellow .public-stat-card__value { color: #fbbf24; }
[data-theme="dark"] .public-stat-card--yellow .public-stat-card__label { color: #fcd34d; }

[data-theme="dark"] .public-stat-card--purple {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
}
[data-theme="dark"] .public-stat-card--purple .public-stat-card__value { color: #a78bfa; }
[data-theme="dark"] .public-stat-card--purple .public-stat-card__label { color: #c4b5fd; }

[data-theme="dark"] .public-stat-card--orange {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.15) 0%, rgba(251, 146, 60, 0.1) 100%);
}
[data-theme="dark"] .public-stat-card--orange .public-stat-card__section-title { color: #fb923c; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.buddies-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

.buddies-btn--primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border-color: #0ea5e9;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.buddies-btn--primary:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
}

.buddies-btn--success {
    background: linear-gradient(135deg, var(--accent-green) 0%, #10B981 100%);
    color: white;
    border-color: var(--accent-green);
}

.buddies-btn--success:hover {
    background: linear-gradient(135deg, #047857 0%, var(--accent-green) 100%);
    border-color: #047857;
}

.buddies-btn--danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.buddies-btn--danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.buddies-btn--secondary {
    background: var(--text-secondary);
    color: white;
    border-color: var(--text-secondary);
}

.buddies-btn--secondary:hover {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

.buddies-btn--warning {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
}

.buddies-btn--disabled {
    background: #e2e8f0;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

/* ==========================================================================
   Empty State
   ========================================================================== */
.buddies-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.buddies-empty__icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 1;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.buddies-empty__title {
    color: #64748b;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.buddies-empty__text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Results Container
   ========================================================================== */
.buddies-results {
    display: grid;
    gap: 1.5rem;
}

/* ==========================================================================
   Invite Form
   ========================================================================== */
.invite-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.invite-form__title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.invite-form__group {
    margin-bottom: 1.5rem;
}

.invite-form__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

.invite-form__input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.invite-form__input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.invite-form__hint {
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.invite-form__submit {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.invite-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

[data-theme="dark"] .invite-form {
    background: var(--card-bg);
}

[data-theme="dark"] .invite-form__input {
    background: var(--secondary-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* ==========================================================================
   Invitations List
   ========================================================================== */
.invites-list {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.invites-list__title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.invite-item {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invite-item:last-child {
    border-bottom: none;
}

.invite-item__email {
    font-weight: 600;
    color: #0369a1;
}

.invite-item__date {
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.invite-item__status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.invite-item__status--pending {
    background: #fef3c7;
    color: #92400e;
}

.invite-item__status--used {
    background: #d1fae5;
    color: #065f46;
}

[data-theme="dark"] .invites-list {
    background: var(--card-bg);
}

[data-theme="dark"] .invite-item {
    border-bottom-color: var(--border-color);
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.buddies-cta {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 8px;
}

.buddies-cta__text {
    font-size: 1.1rem;
    color: #0c4a6e;
    margin-bottom: 1rem;
    font-weight: 600;
}

.buddies-cta__btn {
    background: #059669;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.buddies-cta__btn:hover {
    background: #047857;
    transform: translateY(-2px);
}

[data-theme="dark"] .buddies-cta {
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%);
}

[data-theme="dark"] .buddies-cta__text {
    color: #bae6fd;
}

/* ==========================================================================
   Responsive - Mobile Optimized
   ========================================================================== */
@media (max-width: 768px) {
    /* Page container */
    .max-w-7xl {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        padding-top: 0.5rem !important;
        padding-bottom: 5rem !important;
    }

    /* Hero - compact */
    .buddies-hero {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .buddies-hero__title {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .buddies-hero__subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
        display: none;
    }

    /* Nav - horizontal compact pills */
    .buddies-nav {
        flex-direction: row;
        gap: 0.5rem;
    }

    .buddies-nav__link {
        flex: 1;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        text-align: center;
    }

    /* Sections - compact */
    .buddies-section {
        padding: 0.875rem;
        margin-bottom: 0.75rem;
        border-radius: 10px;
    }

    .buddies-section__header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .buddies-section__title {
        font-size: 1rem;
    }

    .buddies-section__badge {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }

    /* Buddy Card - Horizontal compact layout */
    .buddy-card {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .buddy-card__header {
        grid-template-columns: auto 1fr auto !important;
        text-align: left;
        gap: 0.75rem;
        margin-bottom: 0;
    }

    .buddy-card__avatar {
        margin: 0;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .buddy-card__name {
        font-size: 0.95rem;
        margin-bottom: 0.1rem;
    }

    .buddy-card__meta {
        font-size: 0.75rem;
    }

    /* Actions - inline compact */
    .buddy-card__actions {
        flex-direction: row;
        gap: 0.35rem;
        justify-content: flex-end;
    }

    .buddies-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }

    /* Remove button - icon only on mobile */
    .buddy-card__actions[style*="position: absolute"] {
        position: static !important;
        top: auto !important;
        right: auto !important;
    }

    /* Equipment Summary - compact */
    .buddy-equipment {
        margin-top: 0.5rem;
        padding: 0.5rem;
    }

    .buddy-equipment__title {
        font-size: 0.7rem;
        margin-bottom: 0.35rem;
    }

    .buddy-equipment__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
    }

    .buddy-equipment__item {
        padding: 0.25rem 0.4rem;
    }

    .buddy-equipment__type {
        font-size: 0.65rem;
        min-width: 35px;
    }

    .buddy-equipment__value {
        font-size: 0.75rem;
    }

    /* Details sections - compact */
    .buddy-details {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    .buddy-details__section {
        margin-bottom: 0.5rem;
        padding: 0;
    }

    .buddy-details__label {
        font-size: 0.7rem;
        margin-bottom: 0.35rem;
    }

    .buddy-details__items {
        gap: 0.25rem;
    }

    .buddy-details__item {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
    }

    .buddy-details__courses {
        gap: 0.25rem;
    }

    .buddy-details__course-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    /* Activity Feed - super compact */
    .buddy-card--activity {
        padding: 0.5rem;
        margin-bottom: 0.35rem;
    }

    .buddy-card__header--compact {
        gap: 0.5rem;
    }

    .buddy-card__avatar--small {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .buddy-card__name--small {
        font-size: 0.85rem;
    }

    .buddy-card__meta--small {
        font-size: 0.7rem;
    }

    .activity-item {
        padding: 0.35rem;
        margin-top: 0.35rem;
    }

    .activity-item__icon {
        font-size: 0.85rem;
    }

    .activity-item__title {
        font-size: 0.75rem;
    }

    .activity-item__subtitle {
        font-size: 0.7rem;
    }

    .activity-item__score {
        font-size: 1rem;
    }

    /* Community Stats - 2x2 compact */
    .community-stats {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .community-stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .community-stats__item {
        padding: 0.5rem;
    }

    .community-stats__value {
        font-size: 1.25rem;
    }

    .community-stats__label {
        font-size: 0.65rem;
    }

    /* Public Stat Cards - compact */
    .public-stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .public-stat-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        border-radius: 6px;
    }

    .public-stat-card--small {
        padding: 0.5rem;
    }

    .public-stat-card__main {
        margin-bottom: 0.75rem;
    }

    .public-stat-card__value {
        font-size: 1.5rem;
    }

    .public-stat-card__label {
        font-size: 0.75rem;
    }

    .public-stat-card__section {
        margin-top: 0.75rem;
    }

    .public-stat-card__section-title {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .public-stat-card__tags {
        gap: 0.35rem;
    }

    .public-stat-card__tag {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .public-stat-card__tag span {
        font-size: 0.7rem;
    }

    .public-stat-card__list {
        gap: 0.35rem;
    }

    .public-stat-card__list-item {
        padding: 0.5rem;
    }

    .public-stat-card__list-name {
        font-size: 0.85rem;
    }

    .public-stat-card__list-count {
        font-size: 0.75rem;
    }

    /* Empty state - compact */
    .buddies-empty {
        padding: 1.5rem 1rem;
    }

    .buddies-empty__icon {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .buddies-empty__text {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    /* CTA - compact */
    .buddies-cta {
        padding: 1rem;
        margin-top: 1rem;
    }

    .buddies-cta__text {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .buddies-cta__btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Search - compact */
    .buddies-search {
        padding: 0.875rem;
        margin-bottom: 1rem;
    }

    .buddies-search__input {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .buddies-search__btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        margin-top: 0.75rem;
    }
}

@media (max-width: 480px) {
    .buddies-hero__title {
        font-size: 1.1rem;
    }

    .buddies-nav__link {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }

    .buddy-card__avatar {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .buddy-card__name {
        font-size: 0.9rem;
    }

    .buddy-card__meta {
        font-size: 0.7rem;
    }

    .buddies-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }

    .community-stats__value {
        font-size: 1.1rem;
    }

    .buddy-equipment__grid {
        grid-template-columns: 1fr;
    }

    /* Public Stat Cards - extra small */
    .public-stat-grid {
        gap: 0.35rem;
    }

    .public-stat-card__value {
        font-size: 1.25rem;
    }

    .public-stat-card__label {
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   Floating Find Buddies Button (Mobile)
   ========================================================================== */
.floating-find-btn {
    display: none;
}

@media (max-width: 768px) {
    .floating-find-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 5rem;
        right: 1rem;
        width: 56px;
        height: 56px;
        background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
        color: white;
        border-radius: 50%;
        box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
        text-decoration: none;
        font-size: 1.25rem;
        z-index: 90;
        transition: all 0.2s;
    }

    .floating-find-btn:hover {
        transform: scale(1.1);
    }
}

/* ==========================================================================
   Tap-to-expand indicator for mobile
   ========================================================================== */
@media (max-width: 768px) {
    .buddy-card--has-details::after {
        content: 'Tap for details';
        display: block;
        text-align: center;
        font-size: 0.65rem;
        color: var(--text-muted);
        margin-top: 0.35rem;
        opacity: 0.7;
    }

    .buddy-card--has-details:hover::after,
    .buddy-card--has-details:focus-within::after {
        display: none;
    }
}
