/* ============================================
   Schedule Page Styles
   ============================================ */

/* ---- Time Buckets ---- */
.time-bucket {
    margin-bottom: 6px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--bg-light, #e8e8e8);
}

.time-bucket-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    background: var(--bg-light, #f5f5f5);
    user-select: none;
    transition: background 0.2s;
}

.time-bucket-header:hover { filter: brightness(0.96); }

.bucket-time-range {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary, #7C3AED);
    min-width: 130px;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.bucket-summary { display: flex; align-items: center; gap: 8px; flex: 1; }
.bucket-emoji { font-size: 1.1rem; }

.bucket-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-dark, #333);
}

.bucket-chevron {
    font-size: 0.75rem;
    color: var(--text-light, #888);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.time-bucket.collapsed .bucket-chevron { transform: rotate(-90deg); }
.time-bucket-detail { padding: 4px 0 4px 0; background: var(--bg-white, #fff); }
.time-bucket.collapsed .time-bucket-detail { display: none; }

@media (max-width: 480px) {
    .bucket-time-range { min-width: 90px; font-size: 0.65rem; }
}

/* ---- Agenda Section ---- */
.agenda {
    background: var(--bg-white);
}

.agenda-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 22px;
    border: 2px solid var(--bg-light, #e8e8e8);
    border-radius: 14px;
    background: var(--bg-white, #fff);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark, #333);
    min-width: 90px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tab-btn span {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light, #888);
    margin-top: 2px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tab-btn:hover {
    border-color: var(--primary, #7C3AED);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.15);
}

.tab-btn.active {
    background: var(--gradient-hero, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.tab-btn.active span {
    color: rgba(255, 255, 255, 0.85);
}

.day-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.day-content.active {
    display: block;
}

.day-content h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--secondary);
}

/* ---- Top Secret Agenda Items ---- */
.timeline-item.top-secret {
    cursor: pointer;
}

.timeline-item.top-secret .activity {
    position: relative;
}

.secret-activity {
    position: relative;
}

.secret-overlay {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    animation: secretPulse 3s infinite;
}

@keyframes secretPulse {
    0%, 100% { border-color: rgba(255, 255, 255, 0.3); }
    50% { border-color: rgba(255, 215, 0, 0.8); }
}

.secret-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
    animation: shake 2s infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.secret-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #ffd700;
    letter-spacing: 2px;
}

.secret-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.timeline-item.unlocked .secret-content {
    animation: revealSecret 0.5s ease forwards;
}

@keyframes revealSecret {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ---- Activity Voting ---- */
.activity-voting {
    background: var(--bg-white);
}

.av-vote-budget {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
    padding: 12px 24px;
    background: var(--bg-light);
    border-radius: 30px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.av-budget-used {
    font-size: 1.3rem;
    color: var(--primary);
    min-width: 20px;
    text-align: center;
}

.av-budget-sep {
    color: var(--text-light);
}

.av-budget-total {
    color: var(--text-light);
}

.av-vote-budget.av-budget-full {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.av-vote-budget.av-budget-full .av-budget-used,
.av-vote-budget.av-budget-full .av-budget-sep,
.av-vote-budget.av-budget-full .av-budget-total,
.av-vote-budget.av-budget-full .av-budget-label {
    color: white;
}

@keyframes avShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.av-shake {
    animation: avShake 0.5s ease;
}

/* Filter pills */
.av-filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.av-filter-pill {
    padding: 8px 18px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.av-filter-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.av-filter-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.av-filter-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 4px;
}

.av-filter-pill.active .av-filter-count {
    background: rgba(255, 255, 255, 0.3);
}

/* Results bar chart */
.av-results {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 30px;
}

.av-results-title {
    font-size: 1.2rem;
    margin-bottom: 16px;
    text-align: center;
    color: var(--text-dark);
}

.av-result-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.av-result-rank {
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.av-result-emoji {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.av-result-name {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 140px;
    flex-shrink: 0;
    color: var(--text-dark);
}

.av-result-bar-track {
    flex: 1;
    height: 10px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 5px;
    overflow: hidden;
}

.av-result-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 5px;
    transition: width 0.6s ease;
}

.av-result-booked .av-result-bar-fill {
    background: linear-gradient(90deg, #10b981, #059669);
}

.av-result-count {
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 30px;
    text-align: right;
    color: var(--primary);
}

/* Card grid */
.av-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

/* Card */
.av-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.av-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.av-card.av-highlight {
    border-color: rgba(102, 126, 234, 0.3);
}

.av-card.av-booked {
    border-color: #10b981;
}

.av-card.av-cancelled {
    opacity: 0.5;
    filter: grayscale(0.4);
}

/* Status badges */
.av-status-badge {
    position: absolute;
    top: 12px;
    right: -30px;
    padding: 4px 40px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(35deg);
    z-index: 1;
}

.av-badge-booked {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.av-badge-cancelled {
    background: #ef4444;
    color: white;
}

.av-badge-pick {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

/* Card header */
.av-card-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.av-card-emoji {
    font-size: 2.2rem;
    flex-shrink: 0;
    line-height: 1;
}

.av-card-title h3 {
    font-size: 1.1rem;
    margin: 0 0 4px;
    color: var(--text-dark);
    line-height: 1.3;
}

.av-card-tagline {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

/* Stats row */
.av-card-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.av-stat {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 8px;
}

/* Mood tags */
.av-card-moods {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.av-mood {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Expandable details */
.av-card-details {
    padding: 14px 0 8px;
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
    animation: fadeIn 0.3s ease;
}

.av-card-details p {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0 0 10px;
}

.av-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.av-card-meta span {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Actions row */
.av-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.av-expand-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
    font-family: var(--font-body);
}

.av-expand-btn:hover {
    background: var(--bg-light);
}

/* Vote button */
.av-vote-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.av-vote-btn:hover:not(.at-limit) {
    border-color: var(--primary);
    background: #f8f0ff;
    transform: translateY(-1px);
}

.av-vote-btn.voted {
    border-color: var(--primary);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.av-vote-btn.at-limit {
    opacity: 0.5;
    cursor: default;
}

.av-vote-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    min-width: 20px;
    text-align: center;
}

.av-vote-btn.voted .av-vote-count {
    background: rgba(255, 255, 255, 0.3);
}

/* Admin controls */
.av-card-admin {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

.av-status-select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    background: white;
}

/* ---- Rotas Section ---- */
.rotas {
    background: var(--bg-light);
}

.rotas-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.rota-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.rota-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.rota-intro {
    color: var(--text-light);
    margin-bottom: 20px;
}

.rota-table {
    border-radius: 10px;
    overflow: hidden;
}

.rota-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 12px 15px;
    background: var(--bg-light);
}

.rota-row:nth-child(odd) {
    background: var(--bg-white);
}

.rota-row.header {
    background: var(--gradient-primary);
    color: var(--text-white);
    font-weight: 600;
}

.rota-row.highlight {
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.2) 0%, rgba(255, 107, 157, 0.2) 100%);
}

/* House Rules */
.house-rules-list {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.house-rules-list h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--secondary);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.rule {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 10px;
}

.rule-number {
    width: 35px;
    height: 35px;
    background: var(--gradient-primary);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---- Responsive Overrides ---- */
@media (max-width: 768px) {
    .agenda-tabs {
        gap: 8px;
    }

    .tab-btn {
        padding: 10px 14px;
        min-width: 70px;
        font-size: 0.85rem;
        border-radius: 12px;
    }

    .tab-btn span {
        font-size: 0.65rem;
    }

    .rotas-container {
        grid-template-columns: 1fr;
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }

    /* Activity voting responsive */
    .av-grid {
        grid-template-columns: 1fr;
    }

    .av-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .av-filter-pill {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .av-result-name {
        min-width: 100px;
        font-size: 0.8rem;
    }

    .av-card-stats {
        gap: 6px;
    }

    .av-stat {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

}

/* ---- Agenda Tabs Wrapper with Arrows ---- */
.agenda-tabs-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.agenda-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--bg-light, #e8e8e8);
    border-radius: 50%;
    background: var(--bg-white, #fff);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary, #7C3AED);
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-family: inherit;
}

.agenda-arrow:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.agenda-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.agenda-tabs-wrapper .agenda-tabs {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .day-content h3 {
        font-size: 1.4rem;
    }

    .rota-card {
        padding: 20px;
    }

    .house-rules-list {
        padding: 25px;
    }

    .agenda-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

/* ============================================
   Meal Planner / Dinner Voting
   ============================================ */
.meal-planner {
    background: var(--bg-light);
}

.meal-days {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.meal-day-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.meal-day-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.meal-day-header h3 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin: 0;
}

.meal-day-label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 2px 0 0;
}

.meal-team-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.meal-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meal-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    background: var(--bg-light);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: var(--font-body);
    width: 100%;
}

.meal-option:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.meal-option.voted {
    border-color: var(--accent-alt);
    background: linear-gradient(135deg, rgba(107, 203, 119, 0.1) 0%, rgba(107, 203, 119, 0.05) 100%);
}

.meal-option:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.meal-emoji {
    font-size: 2rem;
    flex-shrink: 0;
}

.meal-option-info {
    flex: 1;
    min-width: 0;
}

.meal-option-info strong {
    display: block;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.meal-option-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.meal-vote-count {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .meal-day-header {
        flex-direction: column;
    }

    .meal-option {
        padding: 12px;
        gap: 10px;
    }

    .meal-emoji {
        font-size: 1.5rem;
    }
}

/* ============================================
   Rate the Chef
   ============================================ */
.rate-chef {
    background: var(--bg-white);
}

.chef-winner {
    text-align: center;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.chef-winner-trophy {
    font-size: 3rem;
    display: block;
    margin-bottom: 8px;
}

.chef-winner h3 {
    font-size: 1.5rem;
    color: #92400e;
    margin: 0 0 5px;
}

.chef-winner p {
    color: #a16207;
    margin: 0;
    font-weight: 600;
}

.chef-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.chef-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal, all 0.3s ease);
}

.chef-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.chef-card-special {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, var(--bg-light) 100%);
}

.chef-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.chef-card-emoji {
    font-size: 2rem;
}

.chef-card-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--secondary);
}

.chef-card-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.chef-avg {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.chef-avg-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.chef-avg-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.chef-stars-display {
    margin-bottom: 15px;
}

.chef-star-display {
    font-size: 1.3rem;
    color: #d1d5db;
}

.chef-star-display.filled {
    color: #f59e0b;
}

.chef-star-display.half {
    color: #fbbf24;
    opacity: 0.7;
}

/* Star input */
.chef-rate-form {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 15px;
    margin-top: 10px;
}

.chef-stars-input {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.chef-star {
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #d1d5db;
    transition: color 0.15s ease, transform 0.15s ease;
    padding: 2px;
    line-height: 1;
}

.chef-star:hover,
.chef-star.active {
    color: #f59e0b;
    transform: scale(1.2);
}

.chef-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: 8px;
    background: var(--bg-white);
    box-sizing: border-box;
}

.chef-input:focus {
    outline: none;
    border-color: var(--primary);
}

.chef-submit-btn {
    width: 100%;
    margin-top: 4px;
}

.chef-voted-badge {
    text-align: center;
    padding: 10px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

.chef-feedback {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.chef-feedback strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.chef-feedback-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chef-feedback-tag {
    background: rgba(107, 203, 119, 0.15);
    color: #065f46;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.chef-feedback-tag.needs-work {
    background: rgba(245, 158, 11, 0.15);
    color: #92400e;
}

/* ============================================
   Grocery List Builder
   ============================================ */
.grocery-lists {
    background: var(--bg-light);
}

.grocery-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.grocery-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 18px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    min-width: 80px;
}

.grocery-tab span {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 2px;
}

.grocery-tab:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.grocery-tab.active {
    background: var(--gradient-hero, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: #fff;
    border-color: transparent;
}

.grocery-tab.active span {
    color: rgba(255, 255, 255, 0.85);
}

.grocery-list-panel {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.grocery-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.grocery-list-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--secondary);
}

.grocery-count {
    background: var(--gradient-primary, linear-gradient(135deg, #667eea, #764ba2));
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.grocery-add-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.grocery-add-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--bg-light);
}

.grocery-add-input:focus {
    outline: none;
    border-color: var(--primary);
}

.grocery-add-btn {
    white-space: nowrap;
}

.grocery-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 400px;
    overflow-y: auto;
}

.grocery-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.95rem;
}

.grocery-item:hover {
    background: var(--bg-light);
}

.grocery-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.grocery-item.checked span {
    text-decoration: line-through;
    color: var(--text-light);
}

/* Suggested Menus */
.grocery-menus {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.grocery-menus h4 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin: 0 0 5px;
}

.grocery-menus-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 0 20px;
}

.grocery-menu-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.grocery-menu-card {
    background: var(--bg-light);
    border-radius: 14px;
    padding: 18px;
}

.grocery-menu-card h5 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.grocery-menu-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.grocery-menu-item {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
    color: var(--text-dark);
}

.grocery-menu-item:hover:not(.added) {
    border-color: var(--primary);
    color: var(--primary);
    background: #f8f0ff;
}

.grocery-menu-item.added {
    background: rgba(107, 203, 119, 0.15);
    color: #065f46;
    border-color: rgba(107, 203, 119, 0.3);
    cursor: default;
}

@media (max-width: 768px) {
    .chef-cards {
        grid-template-columns: 1fr;
    }

    .grocery-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .grocery-tab {
        flex-shrink: 0;
    }

    .grocery-add-row {
        flex-direction: column;
    }

    .grocery-menu-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Activity Sign-ups
   ============================================ */
.activity-signups {
    background: var(--bg-light);
}

.signup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}

.signup-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.signup-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.signup-card.signup-full {
    border-color: rgba(239, 68, 68, 0.2);
}

.signup-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.signup-emoji {
    font-size: 2.2rem;
    flex-shrink: 0;
    line-height: 1;
}

.signup-card-info {
    flex: 1;
    min-width: 0;
}

.signup-card-info h3 {
    font-size: 1.15rem;
    margin: 0 0 4px;
    color: var(--text-dark);
}

.signup-day {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.signup-cost {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.signup-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0 0 15px;
}

/* Capacity bar */
.signup-capacity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.signup-capacity-bar {
    flex: 1;
    height: 10px;
    background: var(--bg-light);
    border-radius: 5px;
    overflow: hidden;
    min-width: 100px;
}

.signup-capacity-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 5px;
    transition: width 0.4s ease;
}

.signup-capacity-fill.full {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.signup-capacity-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
}

.signup-full-badge {
    background: #ef4444;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sign-up button */
.signup-btn {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid var(--primary);
    border-radius: 14px;
    background: white;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.signup-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.signup-btn.signed-up {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: transparent;
    color: white;
}

.signup-btn.signed-up:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.signup-btn.waitlisted {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: transparent;
}

.signup-btn.join-waitlist {
    border-color: #f59e0b;
    color: #d97706;
}

.signup-btn.join-waitlist:hover {
    background: #f59e0b;
    color: white;
}

.signup-login-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
    margin: 0 0 15px;
}

/* People tags */
.signup-people {
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.signup-people-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.signup-person-tag {
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
}

.signup-person-tag.you {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.signup-person-tag.waitlist {
    background: rgba(245, 158, 11, 0.15);
    color: #92400e;
}

.signup-person-tag.waitlist.you {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.signup-waitlist-section {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.signup-waitlist-section strong {
    font-size: 0.8rem;
    color: var(--text-light);
    display: inline-block;
    margin-bottom: 4px;
}

/* ============================================
   Empty State (shared pattern)
   ============================================ */
.empty-state {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-light);
}

.empty-state-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
    animation: emptyBounce 2s ease-in-out infinite;
}

.empty-state p {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-light);
}

@keyframes emptyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ============================================
   Responsive - Sign-ups & Swipe
   ============================================ */
@media (max-width: 768px) {
    .signup-grid {
        grid-template-columns: 1fr;
    }

    .agenda-tabs-wrapper {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .signup-card {
        padding: 18px;
    }
}
