/**
 * Events styling for GH Events Manager - Compiled from events.scss
 */

/* Single Event Styles */
.ghem-event-single .post_header {
    margin-bottom: 2rem;
}

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

.ghem-event-single .event-category {
    display: inline-block;
    background-color: #f9f9f9;
    color: #333;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ghem-event-single .post_title {
    font-size: 2.5rem;
    margin: 0 0 1.5rem;
    color: #333;
    line-height: 1.2;
}

.ghem-event-single .event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1rem;
    color: #666;
}

.ghem-event-single .event-meta > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ghem-event-single .event-meta [class^="icon-"],
.ghem-event-single .event-meta [class*=" icon-"] {
    font-size: 1.2em;
    color: #0073aa;
}

.ghem-event-single .event-time {
    font-weight: 600;
    color: #0073aa;
}

.ghem-event-single .participants-text strong {
    color: #e74c3c;
}

.ghem-event-single .event-featured-image {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ghem-event-single .event-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

/* Content */
.ghem-event-single .post_content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.ghem-event-single .post_content p {
    margin-bottom: 1.5rem;
}

/* Speakers */
.ghem-event-single .event-speakers {
    margin: 3rem 0;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.ghem-event-single .event-speakers h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #333;
}

.ghem-event-single .speakers-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.ghem-event-single .speaker-card {
    display: flex;
    align-items: start;
    gap: 1rem;
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ghem-event-single .speaker-photo {
    flex-shrink: 0;
}

.ghem-event-single .speaker-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.ghem-event-single .speaker-details {
    flex: 1;
}

.ghem-event-single .speaker-name {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: #333;
}

.ghem-event-single .speaker-title,
.ghem-event-single .speaker-company {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #666;
}

.ghem-event-single .speaker-company {
    font-style: italic;
}

/* Map */
.ghem-event-single .event-map-section {
    margin: 3rem 0;
}

.ghem-event-single .event-map-section h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #333;
}

.ghem-event-single .event-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.ghem-event-single .event-map iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}

.ghem-event-single .map-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 1rem;
}

.ghem-event-single .map-address [class^="icon-"] {
    color: #0073aa;
}

/* Footer & Registration */
.ghem-event-single .entry-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e1e1e1;
}

.ghem-event-single {

    .event-registrations-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 1rem;

        th, td {
            padding: 0.5rem;
            text-align: left;
            border-bottom: 1px solid #e1e1e1;
        }
    }
}

.ghem-event-single .event-registration-section {
    margin-bottom: 3rem;
}

.ghem-event-single .event-registration-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #333;
}

/* Alerts */
.event-alert {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.event-alert p {
    margin: 0;
}

.event-alert a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.event-alert.alert-info {
    background-color: #d6eaf8;
    color: #1f618d;
    border-left: 4px solid #3498db;
}

.event-alert.alert-success {
    background-color: #d5f4e6;
    color: #186a3b;
    border-left: 4px solid #27ae60;
}

.event-alert.alert-warning {
    background-color: #fdebd0;
    color: #9c640c;
    border-left: 4px solid #f39c12;
}

/* Forms */
.event-register-form,
.event-cancel-registration {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
}

.event-register-form .form-group,
.event-cancel-registration .form-group {
    margin-bottom: 1.5rem;
}

.event-register-form .form-group label,
.event-cancel-registration .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.event-register-form input[type="text"],
.event-register-form input[type="email"],
.event-register-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.event-register-form input[type="text"]:focus,
.event-register-form input[type="email"]:focus,
.event-register-form select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.event-register-form .form-checkbox label,
.event-cancel-registration .form-checkbox label {
    display: flex;
    align-items: start;
    gap: 0.5rem;
    font-weight: normal;
}

.event-register-form .form-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Buttons */
.event-register-form .button,
.event-cancel-registration .button,
.event-navigation .button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
}

.button.button-primary {
    background-color: #0073aa;
    color: #fff;
}

.button.button-primary:hover {
    background-color: #005177;
}

.button.button-primary:disabled {
    background-color: #66b3d9;
    cursor: not-allowed;
}

.button.button-secondary {
    background-color: #666;
    color: #fff;
}

.button.button-secondary:hover {
    background-color: #4d4d4d;
}

/* Admin actions */
.event-admin-actions {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #d6eaf8;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.event-admin-actions h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.event-admin-actions .button {
    background-color: #3498db;
    color: #fff;
}

.event-admin-actions .button:hover {
    background-color: #2573a7;
}

/* Share buttons */
.event-share {
    margin-bottom: 2rem;
}

.event-share h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #333;
}

.event-share .share-buttons {
    display: flex;
    gap: 1rem;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1.2rem;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-button.facebook {
    background-color: #3b5998;
}

.share-button.twitter {
    background-color: #1da1f2;
}

.share-button.email {
    background-color: #777;
}

.share-button [class^="icon-"] {
    color: #fff;
}

/* Navigation */
.event-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e1e1;
}

.event-navigation .button {
    background-color: #f9f9f9;
    color: #333;
}

.event-navigation .button:hover {
    background-color: #e6e6e6;
}

/* Responsive */
@media (max-width: 768px) {
    .ghem-event-single .post_title {
        font-size: 2rem;
    }

    .ghem-event-single .event-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .ghem-event-single .post_content {
        font-size: 1rem;
    }

    .ghem-event-single .event-speakers {
        padding: 1.5rem;
    }

    .ghem-event-single .speakers-list {
        grid-template-columns: 1fr;
    }

    .ghem-event-single .speaker-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ghem-event-single .event-map iframe {
        height: 300px;
    }

    .event-register-form,
    .event-cancel-registration {
        padding: 1.5rem;
    }

    .event-share .share-buttons {
        justify-content: center;
    }

    .event-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .event-navigation .button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ghem-event-single .post_title {
        font-size: 1.5rem;
    }

    .ghem-event-single .event-featured-image {
        margin: 1rem -1rem;
        border-radius: 0;
    }

    .ghem-event-single .event-speakers {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }
}

/* Registration Success Modal */
.ghem-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ghem-modal.show {
    opacity: 1;
    visibility: visible;
}

.ghem-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.ghem-modal-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.ghem-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e1e1e1;
}

.ghem-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.ghem-modal-body {
    padding: 2rem;
    text-align: center;
}

.ghem-modal-body .ghem-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background-color: #d5f4e6;
    color: #27ae60;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.ghem-modal-body p:last-child {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: #333;
}

.ghem-modal-footer {
    padding: 1rem 2rem 1.5rem;
    text-align: center;
}

.ghem-modal-close {
    min-width: 120px;
}

/* Modal animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal responsive */
@media (max-width: 480px) {
    .ghem-modal-content {
        width: 95%;
        border-radius: 8px;
    }

    .ghem-modal-header,
    .ghem-modal-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .ghem-modal-body {
        padding: 1.5rem;
    }

    .ghem-modal-header h3 {
        font-size: 1.25rem;
    }
}
