/* WildDad Brand CSS - Mobile First */
:root {
    --wd-orange: #DD722A;
    --wd-brown: #8B6914;
    --wd-orange-light: #E8A96A;
    --wd-orange-dark: #C4621F;
    --wd-cream: #FFF8F0;
    --wd-header-height: 56px;
    --wd-bottom-nav-height: 64px;
}

/* Base */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding-top: var(--wd-header-height);
    padding-bottom: calc(var(--wd-bottom-nav-height) + 16px);
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
}

body.no-bottom-nav {
    padding-bottom: 16px;
}

/* Orange Header Bar */
.wd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: var(--wd-orange);
    display: flex;
    flex-direction: column;
}

.wd-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--wd-header-height);
    padding: 0 16px;
}

.wd-header-flash {
    font-size: 0.85rem;
    margin-bottom: 8px !important;
}

.wd-header .wd-brand {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.wd-header .wd-tagline {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    display: none;
}

@media (min-width: 400px) {
    .wd-header .wd-tagline {
        display: inline;
        margin-left: 8px;
    }
}

.wd-header .wd-header-action {
    color: white;
    font-size: 1.25rem;
    text-decoration: none;
    padding: 8px;
}

/* Bottom Navigation Bar */
.wd-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: var(--wd-bottom-nav-height);
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 4px 0;
    padding-bottom: env(safe-area-inset-bottom, 4px);
}

.wd-bottom-nav .wd-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6c757d;
    font-size: 0.65rem;
    font-weight: 500;
    flex: 1;
    padding: 4px 0;
    transition: color 0.15s;
}

.wd-bottom-nav .wd-nav-item i {
    font-size: 1.35rem;
    margin-bottom: 2px;
}

.wd-bottom-nav .wd-nav-item.active,
.wd-bottom-nav .wd-nav-item:hover {
    color: var(--wd-orange);
}

/* Orange CTA Button */
.btn-wd-orange {
    background-color: var(--wd-orange);
    border-color: var(--wd-orange);
    color: white;
    font-weight: 600;
}

.btn-wd-orange:hover,
.btn-wd-orange:focus {
    background-color: var(--wd-orange-dark);
    border-color: var(--wd-orange-dark);
    color: white;
}

.btn-wd-outline {
    border: 2px solid var(--wd-orange);
    color: var(--wd-orange);
    background: transparent;
    font-weight: 600;
}

.btn-wd-outline:hover {
    background-color: var(--wd-orange);
    color: white;
}

/* Avatar */
.wd-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #dee2e6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.wd-avatar-sm { width: 32px; height: 32px; font-size: 0.8rem; }
.wd-avatar-lg { width: 64px; height: 64px; font-size: 1.5rem; }
.wd-avatar-xl { width: 80px; height: 80px; font-size: 2rem; border: 3px solid white; }

/* Profile Gradient Header */
.wd-profile-header {
    background: var(--wd-orange);
    color: white;
    text-align: center;
    padding: 24px 16px;
    margin: -16px -16px 16px -16px;
}

/* Cards */
.wd-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
}

.wd-card .card-body {
    padding: 16px;
}

/* Event Card */
.wd-event-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
    transition: transform 0.1s;
}

.wd-event-card:active {
    transform: scale(0.98);
}

.wd-event-card .card-body {
    padding: 12px 16px;
}

.wd-event-card .wd-event-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.wd-event-card .wd-event-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.wd-event-card .wd-event-meta i {
    width: 16px;
    margin-right: 4px;
}

/* Badges */
.badge-hosting {
    background-color: #198754;
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
}

.badge-recurring {
    background-color: var(--wd-orange);
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
}

.badge-full {
    background-color: #dc3545;
    color: white;
}

.badge-dads-only {
    background-color: var(--wd-brown);
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
}

.badge-year {
    background-color: white;
    color: var(--wd-orange);
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Empty State */
.wd-empty-state {
    text-align: center;
    padding: 32px 16px;
    color: #6c757d;
}

.wd-empty-state i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.wd-empty-state p {
    margin-bottom: 16px;
}

/* Section Headers */
.wd-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.wd-section-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0;
}

.wd-section-header a:not(.btn) {
    color: var(--wd-orange);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
}

/* Signup Progress Bar */
.wd-progress-container {
    padding: 16px;
    background: white;
    border-bottom: 1px solid #dee2e6;
}

.wd-progress-bar {
    height: 6px;
    border-radius: 3px;
    background-color: #e9ecef;
    overflow: hidden;
}

.wd-progress-bar .wd-progress-fill {
    height: 100%;
    background-color: #198754;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.wd-progress-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 6px;
}

/* Form Styles */
.wd-required::after {
    content: ' *';
    color: #dc3545;
}

/* Tabs */
.wd-tabs {
    border-bottom: 2px solid #dee2e6;
    display: flex;
    gap: 0;
}

.wd-tabs .wd-tab {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.wd-tabs .wd-tab i {
    font-size: 1.1rem;
}

.wd-tabs .wd-tab.active {
    color: var(--wd-orange);
    border-bottom-color: var(--wd-orange);
}

/* List/Map Toggle */
.wd-view-toggle .btn {
    font-size: 0.85rem;
    padding: 6px 16px;
}

.wd-view-toggle .btn.active {
    background-color: var(--wd-orange);
    border-color: var(--wd-orange);
    color: white;
}

/* Message Wall */
.wd-message-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wd-message-item .wd-message-content {
    flex: 1;
}

.wd-message-item .wd-message-author {
    font-weight: 600;
    font-size: 0.9rem;
}

.wd-message-item .wd-message-number {
    color: #6c757d;
    font-size: 0.75rem;
}

.wd-message-item .wd-message-time {
    color: #6c757d;
    font-size: 0.75rem;
    float: right;
}

.wd-message-item .wd-message-text {
    font-size: 0.9rem;
    margin-top: 4px;
}

/* RSVP Toggle */
.rsvp-toggle__btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #6c757d;
    background: white;
    color: #495057;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rsvp-toggle__btn:hover {
    border-color: #495057;
    color: #343a40;
}

.rsvp-toggle__btn--yes.rsvp-toggle__btn--active {
    background: #198754;
    border-color: #198754;
    color: white;
}

.rsvp-toggle__btn--no.rsvp-toggle__btn--active {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.rsvp-toggle__text {
    font-size: 1rem;
    font-weight: 700;
    color: #343a40;
    min-width: 100px;
    text-align: center;
}

.rsvp-toggle__text--going {
    color: #198754;
}

.rsvp-toggle__text--not-going {
    color: #dc3545;
}

/* Small variant for list views */
.rsvp-toggle__btn--sm {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
}

.rsvp-toggle__text--sm {
    font-size: 0.8rem;
    min-width: 70px;
}

/* RSVP badges in Who's Coming list */
.badge-going {
    background-color: #198754;
    color: white;
}

.badge-not-going {
    background-color: transparent;
    color: #6c757d;
    border: 1.5px solid #6c757d;
}

/* Responsive */
@media (min-width: 576px) {
    .wd-event-card {
        max-width: 100%;
    }
}

@media (min-width: 992px) {
    .wd-bottom-nav {
        display: none;
    }

    body {
        padding-bottom: 16px;
    }

    .wd-desktop-nav {
        display: block !important;
    }
}

/* Plan Cards (Signup Step 1) */
.wd-plan-card {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.wd-plan-card:hover {
    border-color: var(--wd-orange-light);
    box-shadow: 0 2px 8px rgba(212, 133, 58, 0.15);
}

.wd-plan-card.selected {
    border-color: var(--wd-orange);
    box-shadow: 0 2px 12px rgba(212, 133, 58, 0.25);
}

.wd-plan-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--wd-orange);
}

.wd-plan-period {
    font-size: 0.85rem;
    font-weight: 400;
    color: #6c757d;
}

.wd-plan-features {
    list-style: none;
    padding-left: 0;
    font-size: 0.85rem;
}

.wd-plan-features li {
    margin-bottom: 4px;
}

.wd-plan-features li i {
    margin-right: 6px;
}

/* Signup Success */
.wd-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #d4edda;
    color: #198754;
    font-size: 2.5rem;
}

/* Utilities */
.text-wd-orange { color: var(--wd-orange) !important; }
.bg-wd-orange { background-color: var(--wd-orange) !important; }
.bg-wd-brown { background-color: var(--wd-brown) !important; }
