/* =========================================
   BRAND EVENT STYLES
   ========================================= */

/* Event Page */
.brand-event-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Event Cover */
.event-cover {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.event-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-cover-placeholder span {
    font-size: 80px;
}

/* Event Header */
.event-header {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.event-date-badge {
    width: 60px;
    height: 70px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-date-badge .month {
    font-size: 12px;
    font-weight: 600;
    color: #e34850;
    text-transform: uppercase;
}

.event-date-badge .day {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.event-header-info {
    flex: 1;
}

.event-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.event-meta {
    color: #666;
    font-size: 14px;
}

.event-meta a {
    color: #0a66c2;
    text-decoration: none;
    font-weight: 500;
}

/* RSVP Section */
.event-rsvp-section {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.event-stats {
    display: flex;
    gap: 32px;
}

.event-stats .stat {
    text-align: center;
}

.event-stats .stat-count {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
}

.event-stats .stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

/* RSVP Buttons */
.rsvp-buttons {
    display: flex;
    gap: 10px;
}

.rsvp-btn {
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.rsvp-going {
    background: #0a66c2;
    color: #fff;
}

.rsvp-going:hover {
    background: #004182;
}

.rsvp-going.active {
    background: #057642;
}

.rsvp-interested {
    background: #fff;
    color: #0a66c2;
    border-color: #0a66c2;
}

.rsvp-interested:hover {
    background: #e8f4fc;
}

.rsvp-interested.active {
    background: #fff3e0;
    border-color: #e65100;
    color: #e65100;
}

.rsvp-cancel {
    background: transparent;
    color: #666;
    border-color: #e0e0e0;
}

.rsvp-cancel:hover {
    background: #f5f5f5;
}

.rsvp-login-prompt {
    font-size: 14px;
    color: #666;
}

.rsvp-login-prompt a {
    color: #0a66c2;
    font-weight: 600;
}

/* Details Card */
.event-details-card,
.event-description-card,
.event-attendees-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.event-details-card h3,
.event-description-card h3,
.event-attendees-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #1a1a1a;
}

.detail-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-icon {
    font-size: 20px;
    width: 32px;
    text-align: center;
}

.detail-content strong {
    display: block;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.detail-content span,
.detail-content a {
    font-size: 14px;
    color: #666;
}

.join-link {
    color: #0a66c2 !important;
    font-weight: 500;
}

/* Attendees */
.attendees-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.attendee {
    display: flex;
    align-items: center;
    gap: 8px;
}

.attendee-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a66c2, #004182);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
}

.attendee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attendee-name {
    font-size: 14px;
    color: #333;
}

.view-all-attendees {
    background: transparent;
    border: 1px solid #0a66c2;
    color: #0a66c2;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
}

/* Footer */
.event-footer {
    padding: 24px 0;
}

.back-to-brand {
    color: #0a66c2;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

/* =========================================
   EVENTS CALENDAR / LIST PAGE
   ========================================= */
.brand-events-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 15px;
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.events-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 8px 0 0 0;
}

.back-link {
    color: #0a66c2;
    font-size: 14px;
    text-decoration: none;
}

.create-event-btn {
    background: linear-gradient(180deg, #0a66c2, #004182);
    color: #fff;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.create-event-btn:hover {
    background: linear-gradient(180deg, #004182, #00264d);
    color: #fff;
}

.events-section {
    margin-bottom: 40px;
}

.events-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

/* Event Cards */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-card {
    display: flex;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}

.event-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-card.past {
    opacity: 0.7;
}

.event-card .event-card-date {
    width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.event-card .month {
    font-size: 11px;
    color: #e34850;
    text-transform: uppercase;
    font-weight: 600;
}

.event-card .day {
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.event-card-info {
    flex: 1;
    padding: 0 16px;
}

.event-card-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1a1a1a;
}

.event-card-time,
.event-card-location,
.event-card-attendees {
    font-size: 13px;
    color: #666;
    margin: 0 0 4px 0;
}

.event-card-attendees strong {
    color: #333;
}

.event-card-image {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* No Events */
.no-events {
    text-align: center;
    padding: 48px 24px;
    background: #f9fafb;
    border-radius: 12px;
}

.no-events p {
    color: #666;
    margin: 0 0 16px 0;
}

.create-first-event {
    color: #0a66c2;
    font-weight: 600;
}

/* Past Events */
.past-events h2 {
    color: #666;
}

/* =========================================
   EVENT TEASER CARDS (IN BRAND FEED)
   Uses .f-brand-page prefix for proper specificity
   ========================================= */

/* Base card overrides */
.f-brand-page .brand-event-teaser-card {
    overflow: hidden !important;
}

/* Event Type Header Badge */
.f-brand-page .brand-event-teaser-card .event-type-header {
    padding: 8px 16px;
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
}

.f-brand-page .brand-event-teaser-card .event-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
}

/* Post Header for Event Card */
.f-brand-page .brand-event-teaser-card .post-header {
    padding: 12px 16px;
}

.f-brand-page .brand-event-teaser-card .avatar-placeholder {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}

/* Event Content Area (using post-content-text) */
.f-brand-page .brand-event-teaser-card .post-content-text {
    padding: 0 16px 16px 16px;
}

/* Event Cover Image */
.f-brand-page .brand-event-teaser-card .event-card-cover {
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
}

.f-brand-page .brand-event-teaser-card .event-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.f-brand-page .brand-event-teaser-card .event-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.f-brand-page .brand-event-teaser-card .event-cover-icon {
    font-size: 48px;
}

/* Event Info Section - Horizontal layout */
.f-brand-page .brand-event-teaser-card .event-card-info {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

/* Date Pill */
.f-brand-page .brand-event-teaser-card .event-date-pill {
    width: 54px;
    min-width: 54px;
    background: #fff;
    border: 2px solid #e34850;
    border-radius: 8px;
    text-align: center;
    padding: 8px 4px;
    flex-shrink: 0;
}

.f-brand-page .brand-event-teaser-card .event-date-pill .month {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #e34850;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 2px;
}

.f-brand-page .brand-event-teaser-card .event-date-pill .day {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

/* Event Text Info */
.f-brand-page .brand-event-teaser-card .event-text-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.f-brand-page .brand-event-teaser-card .event-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.f-brand-page .brand-event-teaser-card .event-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.f-brand-page .brand-event-teaser-card .event-title a:hover {
    color: #0a66c2;
    text-decoration: underline;
}

.f-brand-page .brand-event-teaser-card .event-details-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 6px;
}

.f-brand-page .brand-event-teaser-card .event-time {
    font-size: 12px;
    color: #666;
}

.f-brand-page .brand-event-teaser-card .event-location {
    font-size: 12px;
    color: #0a66c2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.f-brand-page .brand-event-teaser-card .event-description {
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Event Action Bar */
.f-brand-page .brand-event-teaser-card .post-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
}

.f-brand-page .brand-event-teaser-card .event-attendees {
    font-size: 13px;
    color: #666;
}

.f-brand-page .brand-event-teaser-card .view-event-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: #fff !important;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.f-brand-page .brand-event-teaser-card .view-event-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Responsive */
@media (max-width: 480px) {
    .f-brand-page .brand-event-teaser-card .event-card-info {
        flex-direction: column;
    }

    .f-brand-page .brand-event-teaser-card .event-date-pill {
        width: 100%;
        flex-direction: row;
        display: flex;
        gap: 8px;
        padding: 8px 12px;
        justify-content: flex-start;
        align-items: center;
    }

    .f-brand-page .brand-event-teaser-card .event-date-pill .month,
    .f-brand-page .brand-event-teaser-card .event-date-pill .day {
        display: inline;
    }
}