/* Organizacioni Događaji - Frontend Styles */

.events-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 20px 0;
}

.event-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    min-height: 200px;
    width: 100%;
}

.event-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.event-content {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-image {
    width: 300px;
    height: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-item:hover .event-image img {
    transform: scale(1.02);
}

.event-content h3 {
    margin: 0 0 20px 0;
    font-size: 1.6em;
    line-height: 1.3;
    font-weight: bold;
}

.event-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-content h3 a:hover {
    color: #a4323d;
}

.event-datetime,
.event-location {
    margin: 12px 0;
    color: #666;
    font-size: 1.1em;
    line-height: 1.4;
}

.event-datetime strong,
.event-location strong {
    color: #a4323d;
    font-weight: 600;
    font-size: 1.1em;
}

.event-description {
    margin: 15px 0 0 0;
    color: #555;
    line-height: 1.5;
}

.event-location-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.event-location-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.event-details-btn {
    background: #a4323d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.event-details-btn:hover {
    background: #8a2a35;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(164, 50, 61, 0.3);
}

.clickable-event {
    cursor: pointer;
    position: relative;
}

.clickable-event::after {
    content: '👁️';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 8px;
    border-radius: 50%;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clickable-event:hover::after {
    opacity: 1;
}

/* Modal Styles */
.event-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.event-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

.event-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 10001;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.event-modal-close:hover {
    color: #000;
    background: rgba(255,255,255,1);
}

.event-modal-header {
    padding: 20px 20px 10px 20px;
    border-bottom: 1px solid #eee;
}

.event-modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5em;
}

.event-modal-image {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
}

.event-modal-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.event-modal-details {
    padding: 20px;
}

.event-detail-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.event-detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.event-detail-item strong {
    display: block;
    color: #333;
    font-size: 16px;
    margin-bottom: 8px;
}

.event-detail-item span,
.event-detail-item p {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.event-detail-item .event-location-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.event-detail-item .event-location-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.event-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.event-modal-link {
    display: inline-block;
    background: #0073aa;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin: 0 5px;
}

.event-modal-link:hover {
    background: #005a87;
    color: white;
}

.event-location-modal-link {
    background: #a4323d !important;
}

.event-location-modal-link:hover {
    background: #8a2a35 !important;
}

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

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.upcoming-events,
.past-events {
    margin: 30px 0;
}

.upcoming-events h2,
.past-events h2 {
    color: #333;
    border-bottom: 3px solid #a4323d;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .event-image {
        width: 250px;
    }
    
    .event-content {
        padding: 20px 25px;
    }
    
    .upcoming-events h2,
    .past-events h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .event-item {
        flex-direction: column;
        min-height: auto;
    }
    
    .event-image {
        width: 100%;
        height: 200px;
    }
    
    .event-content {
        padding: 20px;
    }
    
    .event-content h3 {
        font-size: 1.4em;
    }
    
    .upcoming-events h2,
    .past-events h2 {
        font-size: 1.6em;
    }
    
    .event-modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .event-modal-header,
    .event-modal-details,
    .event-modal-footer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .event-content {
        padding: 15px;
    }
    
    .event-content h3 {
        font-size: 1.2em;
    }
    
    .event-image {
        height: 180px;
    }
    
    .upcoming-events h2,
    .past-events h2 {
        font-size: 1.4em;
    }
    
    .event-modal-content {
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .event-modal-header h2 {
        font-size: 1.3em;
    }
}
