/* Base Styles */
:root {
    --primary: #1874ab;
    --primary-dark: #126592;
    --secondary: #35a0cf;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --text: #2d3748;
    --text-light: #4a5568;
    --border: #e2e8f0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url('../images/event_background.png') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: -1;
}

/* Event Container */
.event-container {
    max-width: 1200px;
    margin: 2rem auto;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* Header */
.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
}

.action-icons {
    display: flex;
    gap: 0.75rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.back-btn:hover {
    background-color: rgba(24, 116, 171, 0.1);
}

.back-btn i {
    font-size: 0.9rem;
}

.share-container {
    position: relative;
    display: inline-block;
}

.share-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background-color: rgba(24, 116, 171, 0.1);
    transform: scale(1.1);
}

.social-buttons {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
    margin-top: 0.5rem;
}

.social-buttons.visible {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.social-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--light-bg);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.social-button:hover {
    transform: scale(1.1);
}

.social-button i {
    font-size: 0.9rem;
}

.social-button[data-platform="twitter"]:hover {
    background: #1DA1F2;
    color: white;
}

.social-button[data-platform="linkedin"]:hover {
    background: #0077B5;
    color: white;
}

.social-button[data-platform="facebook"]:hover {
    background: #4267B2;
    color: white;
}

.calendar-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.calendar-btn:hover {
    background-color: rgba(24, 116, 171, 0.1);
    transform: scale(1.1);
}

/* Poster Container */
.poster-container {
    width: 100%;
    height: 400px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.event-poster {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.poster-container:hover .event-poster {
    transform: scale(1.02);
}

/* Event Content */
.event-content {
    padding: 2rem;
}

.event-header-content {
    margin-bottom: 2rem;
}

.event-category {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text);
}

.event-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

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

.event-description {
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Custom Fields */
.custom-fields {
    margin: 2rem 0;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.custom-field {
    margin-bottom: 1.5rem;
}

.custom-field h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* Event Details */
.event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin: 2.5rem 0;
}

.detail-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.detail-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.detail-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.detail-content p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.detail-content a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.detail-content a:hover {
    text-decoration: underline;
}

/* Organizer Section */
.organizer-section {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.organizer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 6px;
}

.organizer-info {
    display: flex;
    flex-direction: column;
}

.organizer-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.organizer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

/* Event Actions */
.event-actions {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    background-color: var(--light-bg);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 116, 171, 0.3);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color:var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: black;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background-color:black;
    max-width: 90%;
    text-align: center;
}

.modal-poster {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
    border-radius: 4px;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--secondary);
}

.download-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Notification */
.notification {
    position: fixed;
    bottom: -100px;
    right: 2rem;
    background-color: var(--text);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-hover);
    z-index: 1100;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.notification i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.notification.show {
    bottom: 2rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .event-header {
        padding: 1rem;
    }
    
    .poster-container {
        height: 300px;
    }
    
    .event-content {
        padding: 1.5rem;
    }
    
    .event-title {
        font-size: 1.75rem;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .event-details {
        grid-template-columns: 1fr;
    }
    
    .event-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .poster-container {
        height: 250px;
    }
    
    .event-title {
        font-size: 1.5rem;
    }
    
    .organizer-section {
        flex-direction: column;
        text-align: center;
    }
    
    .organizer-logo {
        margin-bottom: 0.5rem;
    }
}