/* NEON FACTORY Events - Frontend Styles */

.nf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nf-modal.active {
    opacity: 1;
    visibility: visible;
}

.nf-modal-container {
    position: relative;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 255, 255, 0.3),
                0 0 0 2px #00ffff;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(90deg, #00ffff15, #ff00ff15);
    border-bottom: 2px solid #00ffff;
}

.nf-modal-header h2 {
    color: #00ffff;
    font-size: 28px;
    margin: 0;
    text-shadow: 0 0 20px #00ffff;
}

.nf-modal-close {
    background: none;
    border: 2px solid #00ffff;
    color: #00ffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.nf-modal-close:hover {
    background: #00ffff;
    color: #0a0a0a;
    transform: rotate(90deg);
    box-shadow: 0 0 20px #00ffff;
}

.nf-modal-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.nf-modal-body::-webkit-scrollbar {
    width: 10px;
}

.nf-modal-body::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.nf-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ffff, #ff00ff);
    border-radius: 5px;
}

/* Events Header */
.nf-events-header {
    text-align: center;
    margin-bottom: 40px;
}

.nf-events-header h2 {
    color: #00ffff;
    font-size: 36px;
    margin: 0 0 10px 0;
    text-shadow: 0 0 30px #00ffff;
}

.nf-events-header p {
    color: #999;
    font-size: 18px;
    margin: 0;
}

/* Events Grid */
.nf-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.nf-event-card {
    background: #0a0a0a;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.nf-event-card:hover {
    border-color: #00ffff;
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.3);
    transform: translateY(-5px);
}

.nf-event-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.nf-event-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #0a0a0a, transparent);
}

.nf-no-image {
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nf-event-icon {
    font-size: 80px;
    opacity: 0.5;
}

.nf-event-content {
    padding: 25px;
}

.nf-event-title {
    color: #00ffff;
    font-size: 24px;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.nf-event-description {
    color: #ccc;
    line-height: 1.7;
    margin: 0 0 20px 0;
}

.nf-event-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.nf-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
    font-size: 15px;
}

.nf-meta-item i {
    color: #00ffff;
    font-size: 18px;
    width: 25px;
}

.nf-capacity-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 35px;
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

.nf-capacity-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.nf-capacity-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 700;
    font-size: 13px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.nf-event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
}

.nf-event-footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.event-available {
    color: #00ff88;
    font-weight: 600;
    font-size: 14px;
}

.event-full {
    color: #ff0066;
    font-weight: 600;
    font-size: 14px;
}

/* Facebook Button */
.nf-btn-facebook {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1877f2;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
}

.nf-btn-facebook:hover {
    background: #0d65d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.nf-btn-facebook i {
    margin: 0;
}

.nf-facebook-link {
    margin: 15px 0;
    text-align: center;
}

.nf-btn-facebook-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #1877f2;
    color: white !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nf-btn-facebook-inline:hover {
    background: #0d65d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.nf-btn-facebook-inline i {
    font-size: 18px;
}

/* Buttons */
.nf-btn {
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
}

.nf-btn-primary {
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    color: #0a0a0a;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.nf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 255, 255, 0.5);
}

.nf-btn-register {
    background: linear-gradient(135deg, #00ffff, #00ff88);
    color: #0a0a0a;
}

.nf-btn-register:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 255, 136, 0.5);
}

.nf-btn-register:disabled,
.nf-btn-register.disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.nf-btn-secondary {
    background: transparent;
    color: #00ffff;
    border: 2px solid #00ffff;
}

.nf-btn-secondary:hover {
    background: #00ffff;
    color: #0a0a0a;
}

/* Registration Form */
.nf-registration-form {
    max-width: 600px;
    margin: 0 auto;
}

.nf-registration-form h3 {
    color: #00ffff;
    font-size: 32px;
    margin: 0 0 10px 0;
    text-shadow: 0 0 20px #00ffff;
}

.nf-registration-form h4 {
    color: #ff00ff;
    font-size: 24px;
    margin: 0 0 20px 0;
}

.nf-event-date,
.nf-event-price {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
    margin: 10px 0;
    font-size: 16px;
}

.nf-event-date i,
.nf-event-price i {
    color: #00ffff;
}

.nf-form-group {
    margin-bottom: 25px;
}

.nf-form-group label {
    display: block;
    color: #00ffff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}

.nf-input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.nf-input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.nf-input::placeholder {
    color: #666;
}

textarea.nf-input {
    resize: vertical;
    min-height: 100px;
}

.nf-form-group small {
    display: block;
    color: #999;
    margin-top: 5px;
    font-size: 13px;
}

.nf-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 255, 255, 0.2);
}

/* Success Message */
.nf-success-message {
    text-align: center;
    padding: 60px 40px;
}

.nf-success-icon {
    font-size: 100px;
    color: #00ff88;
    margin-bottom: 30px;
    animation: successPop 0.6s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.nf-success-message h2 {
    color: #00ffff;
    font-size: 36px;
    margin: 0 0 20px 0;
    text-shadow: 0 0 30px #00ffff;
}

.nf-success-message p {
    color: #ccc;
    font-size: 18px;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

/* Loading State */
.nf-loading {
    text-align: center;
    padding: 80px 40px;
}

.nf-loading i {
    font-size: 60px;
    color: #00ffff;
    animation: spin 1s linear infinite;
}

.nf-loading p {
    color: #999;
    font-size: 18px;
    margin-top: 20px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Empty State */
.nf-empty-state {
    text-align: center;
    padding: 80px 40px;
}

.nf-empty-state i {
    font-size: 100px;
    color: #00ffff;
    opacity: 0.3;
    margin-bottom: 30px;
}

.nf-empty-state h2 {
    color: #00ffff;
    font-size: 32px;
    margin: 0 0 15px 0;
}

.nf-empty-state p {
    color: #999;
    font-size: 18px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .nf-modal-container {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .nf-events-grid {
        grid-template-columns: 1fr;
    }
    
    .nf-modal-body {
        padding: 20px;
    }
    
    .nf-events-header h2 {
        font-size: 28px;
    }
    
    .nf-event-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nf-event-footer-left {
        justify-content: space-between;
    }
    
    .nf-btn-register {
        width: 100%;
        justify-content: center;
    }
    
    .nf-form-actions {
        flex-direction: column;
    }
    
    .nf-btn {
        width: 100%;
        justify-content: center;
    }
}
