/* Event Management System Styles */

/* Event Detail Page Background */
.event-details-page {
    position: relative;
}

.event-details-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(80px) brightness(0.4);
    -webkit-filter: blur(80px) brightness(0.4);
    z-index: -1;
    transform: scale(1.1); /* Prevent blur edge artifacts */
}

/* Event Cards */
.event-card {
    background: rgba(255, 255, 255, 0.05); /* Slightly white translucent */
    backdrop-filter: blur(100px); /* Blur effect for entire card */
    -webkit-backdrop-filter: blur(100px); /* Safari support */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2em;
    display: flex;
    flex-direction: column;
    height: auto; /* Allow variable height based on content */
    position: relative;
}

/* Gradient border effect */
.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.1) 25%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.1) 75%, 
        rgba(255, 255, 255, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.event-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-card:hover::before {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.6) 0%, 
        rgba(255, 255, 255, 0.2) 25%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.2) 75%, 
        rgba(255, 255, 255, 0.5) 100%);
}

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

.event-card.past-event .event-content {
    opacity: 0.8;
}

.event-card .image {
    position: relative;
    display: block;
    overflow: hidden;
    flex-shrink: 0; /* Prevent image from shrinking */
    padding: 1em 1em 0 1em; /* Add padding around image - top, right, bottom, left */
}

.event-card .image img {
    width: 100%;
    height: auto; /* Allow natural aspect ratio */
    display: block;
    transition: transform 0.3s ease;
    border-radius: 12px; /* Add rounded corners to match card */
}

.event-card:hover .image img {
    transform: scale(1);
}

/* Event Badges */
.featured-badge, .past-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 2;
}

.past-badge {
    background: #666;
}

.featured-badge-large, .past-badge-large {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: bold;
    margin-right: 1em;
}

.featured-badge-large {
    background: var(--accent-primary);
    color: white;
}

.past-badge-large {
    background: #666;
    color: white;
}

/* Event Content */
.event-content {
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Fill remaining space */
    justify-content: space-between; /* Push actions to bottom */
}

.event-content > * {
    margin-bottom: 1em;
}

.event-content > *:last-child {
    margin-bottom: 0;
}

.event-content p {
    flex-grow: 1; /* Allow description to grow */
    margin-bottom: 1em;
    /* Limit description to 3 lines for consistency */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
    max-height: 4.5em; /* 3 lines × 1.5 line-height */
}

.event-meta {
    display: flex;
    align-items: left;
    justify-content: left;
    gap: 1em;
    margin-bottom: 1em;
    flex-wrap: wrap;
    text-align: left;
}

.event-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background: var(--accent-primary);
    color: rgb(255, 255, 255);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
}

.event-category .material-symbols-outlined {
    font-size: 20px;
}

.event-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.event-date .material-symbols-outlined {
    font-size: 18px;
}

.event-content h3 {
    margin: 0 0 0.5em 0;
    line-height: 1.3;
}

.event-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-content h3 a:hover {
    color: var(--accent-primary);
}

.event-details {
    display: flex;
    gap: 0em;
    margin: 0em 0;
    flex-wrap: wrap;
    margin-top: auto; /* Push to bottom of card */
}

.event-location, .event-price, .event-language {
    display: flex;
    align-items: center;
    gap: 0.5em;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.event-location .material-symbols-outlined,
.event-price .material-symbols-outlined,
.event-language .material-symbols-outlined {
    font-size: 18px;
}
.event-speaker {
    display: flex;
    align-items: center;
    gap: 0.3em;
    
    font-size: 1.1em;
    font-weight: 500;
    color: var(--accent-primary);
}
.event-speaker .material-symbols-outlined {
    font-size: 20px;
}

.event-language {
    font-weight: 500;
    color: var(--text-secondary);
}

/* Ensure action buttons are always at bottom */
.event-content .actions {
    margin-top: auto;
    margin-bottom: 0 !important;
    padding-top: 1em;
    border-top: 1px solid var(--border-color);
}

.event-content .actions ul {
    margin: 0;
}

.event-content .actions li {
    margin-right: 0.5em;
}

.event-content .actions .button {
    padding: 0.75em 1em;
    font-size: 0.9em;
    min-width: 100px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    line-height: 1;
}

/* Event Detail Page */
.event-details-page {
    max-width: none;
}

.event-header {
    text-align: left;
    margin-bottom: 3em;
    padding: 2em 0;
    border-bottom: 1px solid var(--border-color);
}

.event-meta-large {
    margin-bottom: 1em;
    align-items: center;
    align-self: start;
}

.event-category-large {
    display: inline-flex;
    align-items: center;
    align-content: center;
    gap: 0.5em;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: bold;
    margin-right: 1em;
}

.event-category-large .material-symbols-outlined {
    font-size: 20px;
}

.event-subtitle {
    font-size: 1.2em;
    color: var(--text-secondary);
    /* max-width: 800px; */
    margin: 0 auto;
}

.event-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3em;
    align-items: start;
}

.event-hero-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 2em;
}

.event-description {
    margin-bottom: 2em;
}

.event-materials, .event-prerequisites {
    margin-bottom: 2em;
}

.event-materials ul, .event-prerequisites ul {
    list-style: none;
    padding: 0;
}

.event-materials li, .event-prerequisites li {
    padding: 0.5em 0;
    padding-left: 1.5em;
    position: relative;
}

.event-materials li:before, .event-prerequisites li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.event-tags {
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
    margin-top: 2em;
}

.tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    border: 1px solid var(--border-color);
}

/* Event Sidebar */
.event-info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
    padding: 2em;
    border-radius: 24px;
    margin-bottom: 2em;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Gradient border effect for event-info-card */
.event-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.1) 25%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.1) 75%, 
        rgba(255, 255, 255, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

.event-info-card h3 {
    margin-top: 0;
    /* margin-bottom: 1.5em; */
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1em;
    margin-bottom: 0.5em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item .material-symbols-outlined {
    color: var(--accent-primary);
    font-size: 24px;
    margin-top: 2px;
}

.info-item strong {
    display: block;
    /* margin-bottom: 0.25em; */
    color: var(--text-primary);
}

.info-item p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.4;
}

.info-item a {
    color: var(--accent-primary);
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

.event-actions {
    /* margin-top: 1em; */
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.event-actions .button.large {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 1em;
    font-size: 1.1em;
}

/* Calendar Actions Styling */
.calendar-actions {
    /* margin-top: 1.5em; */
    /* padding-top: 1.5em; */
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

.calendar-actions .button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.85em 1em;
    font-size: 0.95em;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    min-height: 48px;
    background: linear-gradient(135deg, #6aa9f5 0%, #8f7bff 45%, #f47bbf 100%);
    background-size: 200% 200%;
    color: #ffffff !important;
    box-shadow: 0 14px 32px rgba(143, 123, 255, 0.35);
    animation: calendarGradientShift 6s ease-in-out infinite alternate;
}

.calendar-actions .button .material-symbols-outlined {
    font-size: 20px;
    flex-shrink: 0;
}

.calendar-actions .button span:not(.material-symbols-outlined) {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-actions .button::before {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.65) 0%,
        rgba(255, 255, 255, 0.25) 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.25) 75%,
        rgba(255, 255, 255, 0.55) 100%);
    opacity: 0.9;
}

.calendar-actions .button:hover {
    box-shadow: 0 20px 42px rgba(143, 123, 255, 0.45);
    transform: translateY(-2px);
}

.calendar-actions .button:active {
    box-shadow: 0 10px 24px rgba(143, 123, 255, 0.4);
    transform: translateY(0);
}

@keyframes calendarGradientShift {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 14px 32px rgba(143, 123, 255, 0.35);
    }
    50% {
        background-position: 50% 50%;
        box-shadow: 0 16px 36px rgba(244, 123, 191, 0.4);
    }
    100% {
        background-position: 100% 50%;
        box-shadow: 0 14px 32px rgba(106, 169, 245, 0.35);
    }
}

/* Event Share */
.event-share {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
    padding: 1.5em;
    border-radius: 24px;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Gradient border effect for event-share */
.event-share::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.1) 25%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.1) 75%, 
        rgba(255, 255, 255, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

.event-share h4 {
    margin-top: 0;
    margin-bottom: 1em;
    position: relative;
    z-index: 1;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    position: relative;
    z-index: 1;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.7em;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.share-btn:hover {
    background: var(--bg-primary);
}

.share-btn .material-symbols-outlined {
    font-size: 18px;
}

/* Back to Events */
.back-to-events {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid var(--border-color);
}

.back-to-events .button {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

/* No Events Message */
.no-events {
    text-align: center;
    padding: 3em;
    color: var(--text-secondary);
}

/* Responsive Design */
@media screen and (max-width: 1280px) {
    .event-content-wrapper {
        grid-template-columns: 1fr 300px;
        gap: 2em;
    }
}

@media screen and (max-width: 980px) {
    .event-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2em;
    }
    
    .event-info-card {
        order: -1;
    }
}

@media screen and (max-width: 736px) {
    .event-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .event-details {
        flex-direction: column;
        gap: 1em;
    }
    
    .event-header {
        padding: 1em 0;
    }
    
    .event-content-wrapper {
        gap: 1.5em;
    }
    
    .event-info-card, .event-share {
        padding: 1.5em;
    }
    
    .share-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5em;
    }
}

/* Event Grid Layout */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2em;
    margin-top: 2em;
    align-items: start; /* Align cards to top instead of stretch */
}

/* Alternative: Fixed 2-column layout for more consistent sizing */
@media screen and (min-width: 737px) and (max-width: 1280px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1281px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 736px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
} 

/* Stack event action buttons nicely on mobile - applies to all .events-actions */
@media screen and (max-width: 736px) {
    .events-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75em !important;
        align-items: center !important;
        text-align: center !important;
        margin-top: 2rem !important;
        padding: 0 1em !important;
    }
    
    .events-actions .button {
        width: 100% !important;
        max-width: 400px;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.85em 1.5em !important;
    }
} 
