/* ========================================
   EVENT CARD - BASE STYLES
   ======================================== */
.event-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    animation: fadeIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.2), 0 4px 6px -2px rgba(249, 115, 22, 0.1);
    border-color: #f97316;
}

.event-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    flex-shrink: 0;
}

.event-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #9a3412;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.event-card:hover .event-title {
    color: #f97316;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-meta-icon {
    color: #f97316;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.event-description {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.event-tag {
    background-color: #ffedd5;
    color: #9a3412;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #fed7aa;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.event-attendees {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.event-attendees-icon {
    color: #f97316;
}

.event-btn {
    background-color: #f97316;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid #f97316;
}

.event-btn:hover {
    background-color: #ffffff;
    color: #f97316;
}

/* ========================================
   EVENT TILE - BASE STYLES
   ======================================== */
.event-tile {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    animation: fadeIn 0.3s ease-out;
}

.event-tile:hover {
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.2);
    border-color: #f97316;
}

/* ========================================
   EVENT TILE - WITH IMAGE
   ======================================== */
.event-tile-with-image {
    background-color: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    animation: fadeIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.event-tile-with-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.2), 0 4px 6px -2px rgba(249, 115, 22, 0.1);
    border-color: #f97316;
}

.event-tile-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    flex-shrink: 0;
}

.event-tile-placeholder {
    width: 100%;
    height: 12rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-placeholder-initials {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    letter-spacing: 0.05em;
}

.event-tile-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ========================================
   EVENT TILE - COMPACT
   ======================================== */
.event-tile-compact {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    animation: fadeIn 0.3s ease-out;
}

.event-tile-compact:hover {
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.2);
    border-color: #f97316;
}

/* ========================================
   EVENT TILE - TITLE
   ======================================== */
.event-tile-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #9a3412;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-tile:hover .event-tile-title,
.event-tile-with-image:hover .event-tile-title,
.event-tile-compact:hover .event-tile-title {
    color: #f97316;
}

.event-tile-title-compact {
    font-size: 1.125rem;
    font-weight: 600;
    color: #9a3412;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

/* ========================================
   EVENT TILE - META INFORMATION
   ======================================== */
.event-tile-meta {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.event-tile-meta-compact {
    color: #6b7280;
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
}

/* ========================================
   EVENT TILE - DESCRIPTION
   ======================================== */
.event-tile-description {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   EVENT TILE - TAGS CONTAINER
   ======================================== */
.event-tile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex: 1;
}

.event-tile-tags-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

/* ========================================
   EVENT TAG - ORANGE THEME (ALL TAGS)
   ======================================== */
.event-tag {
    background-color: #ffedd5;
    color: #9a3412;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #fed7aa;
}

.event-tag-xs {
    background-color: #ffedd5;
    color: #9a3412;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #fed7aa;
}

/* ========================================
   EVENT TILE - FOOTER
   ======================================== */
.event-tile-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

/* ========================================
   EVENT TILE - ATTENDEES
   ======================================== */
.event-tile-attendees {
    font-size: 0.875rem;
    color: #6b7280;
}

.event-tile-attendees-compact {
    font-size: 0.75rem;
    color: #6b7280;
}

/* ========================================
   EVENT TILE - BUTTONS
   ======================================== */
.event-tile-btn {
    background-color: #f97316;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid #f97316;
    display: inline-block;
}

.event-tile-btn:hover {
    background-color: #ffffff;
    color: #f97316;
}

.event-tile-btn:focus {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

.event-tile-btn-compact {
    background-color: #f97316;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid #f97316;
    display: inline-block;
}

.event-tile-btn-compact:hover {
    background-color: #ffffff;
    color: #f97316;
}

.event-tile-btn-compact:focus {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* ========================================
   LOADING STATE
   ======================================== */
.event-card.loading,
.event-tile.loading,
.event-tile-with-image.loading,
.event-tile-compact.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .event-card,
    .event-tile,
    .event-tile-with-image,
    .event-tile-compact {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}