/* ========== Event Page Styles ========== */
/* Extends portfolio.css styles for events */

/* Event Hero Section */
.event-hero-section {
    padding-top: 0;
}

/* Event Action Buttons - Matching portfolio buttons */
.event-action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0 3rem;
}

.btn-event-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-family: var(--primary-font);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
}

.btn-event-primary:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

.btn-event-secondary {
    background: #f8f9fa;
    color: var(--primary-color);
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-family: var(--primary-font);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
}

.btn-event-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    color: var(--primary-color);
    text-decoration: none;
}

/* Timeline Wrapper - Same as Portfolio */
.timeline-wrapper {
    position: relative;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #ce2a1d, transparent);
    transform: translateX(-50%);
    transform-origin: top;
}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-info {
    width: 45%;
    position: relative;
}

.timeline-dot {
    position: absolute;
    right: -51px;
    top: 30px;
    width: 16px;
    height: 16px;
    background: #ce2a1d;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(206, 42, 29, 0.2);
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -51px;
    right: auto;
}

.timeline-info-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.timeline-info-content:hover {
    transform: translateY(-5px);
}

.timeline-project-title {
    font-family: var(--primary-font);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-project-client,
.timeline-project-date {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 8px;
    font-family: "Roboto Mono", monospace;
}

.timeline-project-client i,
.timeline-project-date i {
    color: #ce2a1d;
    margin-right: 8px;
    width: 16px;
}

.timeline-project-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 12px 0;
}

.timeline-project-type {
    display: inline-block;
    background: rgba(206, 42, 29, 0.1);
    color: #ce2a1d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: "Roboto Mono", monospace;
    margin: 10px 0;
}

.timeline-project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ce2a1d;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.timeline-project-link:hover {
    gap: 12px;
    color: #b32419;
}

.timeline-image {
    width: 45%;
}

.timeline-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1/1;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.timeline-image-wrapper:hover .timeline-image-img {
    transform: scale(1.05);
}

.timeline-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-weight: 600;
}

.timeline-image-wrapper:hover .timeline-image-overlay {
    opacity: 1;
}

/* Event Info Grid for Detail Page */
.event-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.event-info-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    border-left: 3px solid #ce2a1d;
    transition: transform 0.3s ease;
}

.event-info-card:hover {
    transform: translateY(-3px);
}

.event-info-card i {
    color: #ce2a1d;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.event-info-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-family: "Roboto Mono", monospace;
}

.event-info-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Credits Grid for Event Detail */
.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.credit-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.credit-card:hover {
    transform: translateY(-3px);
}

.credit-role {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ce2a1d;
    font-family: "Roboto Mono", monospace;
    margin-bottom: 0.5rem;
}

.credit-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.credit-instagram {
    font-size: 0.8rem;
    color: #e4405f;
}

.credit-instagram a {
    color: #e4405f;
    text-decoration: none;
}

.credit-instagram a:hover {
    text-decoration: underline;
}

/* Event Detail Container - Reuse portfolio styles */
.event-detail-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Event Breadcrumb - Same as portfolio */
.event-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
    .timeline-line {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 50px;
    }

    .timeline-info,
    .timeline-image {
        width: 100%;
    }

    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: -41px;
        right: auto;
        top: 20px;
    }

    .timeline-image {
        margin-top: 20px;
    }

    .event-action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-event-primary,
    .btn-event-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .event-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .timeline-info-content {
        padding: 20px;
    }

    .timeline-project-title {
        font-size: 1.2rem;
    }

    .event-info-grid {
        grid-template-columns: 1fr;
    }

    .credits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .timeline-item {
        margin-left: 30px;
    }

    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: -31px;
    }

    .timeline-project-title {
        font-size: 1.1rem;
    }

    .timeline-project-client,
    .timeline-project-date {
        font-size: 0.75rem;
    }

    .timeline-project-description {
        font-size: 0.85rem;
    }
}

/* Empty State for events */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    margin-top: 2rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-title {
    font-family: var(--primary-font);
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-family: "Roboto Mono", monospace;
    color: #6c757d;
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Make event timeline images smaller */
.timeline-image {
    width: 35%;
}

.timeline-info {
    width: 60%;
}

/* Adjust image wrapper height */
.timeline-image-wrapper {
    aspect-ratio: 4/3; /* Changed from 1/1 to 4/3 (landscape, shorter) */
    max-height: 280px;
}

/* For even better proportions on larger screens */
@media (min-width: 1200px) {
    .timeline-image-wrapper {
        max-height: 300px;
    }
}

/* Adjust dot position with new image size */
.timeline-dot {
    right: -36px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -36px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .timeline-image {
        width: 100%;
        margin-top: 20px;
    }

    .timeline-info {
        width: 100%;
    }

    .timeline-image-wrapper {
        max-height: 320px;
    }

    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: -41px;
        top: 20px;
    }
}

@media (max-width: 576px) {
    .timeline-image-wrapper {
        max-height: 250px;
    }
}
