/* Guild-specific CSS extracted from Astro pages */

/* Top navigation bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(45, 27, 105, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 45px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-nav .nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.top-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    transform: none;
    box-shadow: none;
}

.top-nav .nav-link.active {
    border-bottom: 2px solid #ffd700;
    padding-bottom: calc(0.5rem - 2px);
}

/* Base guild styling */
.guild-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #2d1b69 0%, #0f0f23 100%);
    font-family: 'Arial', sans-serif;
    color: #e0e0e0;
    line-height: 1.6;
}

.guild-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem 3rem;
    text-align: center;
}

/* Full-width container for pages that need maximum screen utilization */
.full-width-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 5rem 2rem 3rem;
    text-align: center;
}

/* Guild name/title styling */
.guild-name {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: #f0f0f0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: #f0f0f0;
}

/* Guild heraldry/sigil styling */
.heraldry {
    margin: 2rem 0;
}

.heraldry img {
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* Guild content styling */
.guild-content {
    font-size: 1.2rem;
    color: #d0d0d0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    margin: 2rem 0;
}

.lore-content {
    font-size: 1.1rem;
    color: #d0d0d0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.lore-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.welcome-content p {
    margin-bottom: 1.5rem;
}

/* Guild greeting styling */
.greeting {
    font-size: 1.5rem;
    font-style: italic;
    margin: 2rem 0;
    color: #c0c0c0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.tagline {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    color: #d0d0d0;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Guild navigation styling */
.navigation {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    color: #e0e0e0;
    text-decoration: none;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

/* Guild form styling */
.registration-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #f0f0f0;
    font-weight: bold;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-input::placeholder {
    color: #a0a0a0;
    opacity: 0.8;
}

.form-submit {
    width: 100%;
    padding: 1.2rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    margin-top: 1rem;
}

.form-submit:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Error and success messaging */
.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    background: rgba(255, 107, 107, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid #ff6b6b;
}

.general-error {
    margin: 1rem auto;
    max-width: 500px;
    font-size: 1rem;
    padding: 1rem;
    text-align: center;
    background: rgba(255, 107, 107, 0.15);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
}

.success-greeting {
    color: #6bcf7f;
    font-weight: bold;
}

.inviter-highlight {
    color: #f0f0f0;
    font-weight: bold;
    font-size: 1.3rem;
}

/* Timeline Styles */
.timeline-wrapper {
    width: 100%;
    margin: 3rem 0;
    overflow-x: auto;
    padding: 2rem 0;
    /* Enable smooth horizontal scrolling */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.timeline-container {
    position: relative;
    min-width: 100%;
    width: auto;
    min-height: 250px;
    padding: 2rem 100px;
    /* Container will grow based on JS calculation */
}

.timeline-line {
    position: absolute;
    top: calc(2rem + 60px);
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(255, 215, 0, 0.4) 0%,
        rgba(255, 215, 0, 0.8) 50%,
        rgba(255, 215, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

.timeline-events {
    position: relative;
    width: 100%;
    height: 100%;
}

.timeline-event-marker {
    position: absolute;
    top: 50px;
    transform: translateX(-50%);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.timeline-event-marker.hover .timeline-event-dot,
.timeline-event-marker:hover .timeline-event-dot {
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.timeline-event-marker.active .timeline-event-dot {
    transform: scale(1.5);
    background: #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
}

.timeline-event-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid #ffd700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.timeline-event-label {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: #f0f0f0;
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    max-width: 150px;
    text-align: center;
    line-height: 1.2;
}

.timeline-event-date {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: #c0c0c0;
    font-size: 0.75rem;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    text-align: center;
}

.timeline-event-card {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    background: rgba(45, 27, 105, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.timeline-card-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #f0f0f0;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-card-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.timeline-event-card h3 {
    color: #ffd700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.timeline-card-date {
    color: #c0c0c0;
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.timeline-card-description {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    white-space: pre-wrap;
}

.timeline-photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.timeline-photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.timeline-photo-item:hover {
    transform: scale(1.05);
}

.timeline-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.timeline-photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #f0f0f0;
    padding: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-photo-item:hover .timeline-photo-caption {
    opacity: 1;
}

.no-photos {
    color: #c0c0c0;
    font-style: italic;
    text-align: center;
}

.timeline-card-view-details {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 8px;
    color: #ffd700;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.timeline-card-view-details:hover {
    background: rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.8);
    color: #ffd700;
    text-decoration: none;
    transform: translateX(3px);
}

.timeline-more-photos {
    margin-top: 0.5rem;
    padding: 0.5rem;
    text-align: center;
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: bold;
    font-style: italic;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 4px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.timeline-photo-preview {
    max-height: 200px;
}

.timeline-photo-preview .timeline-photo {
    object-fit: contain;
    max-height: 200px;
}

/* Responsive padding for full-width container */
@media (max-width: 768px) {
    .full-width-container {
        padding: 4rem 1rem 2rem;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .top-nav .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .guild-container {
        padding: 4rem 1rem 2rem;
    }

    .guild-name {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .heraldry img {
        max-width: 300px;
    }

    .guild-content {
        font-size: 1rem;
    }

    .lore-content {
        font-size: 1rem;
    }

    .lore-content p {
        text-align: left;
    }

    .greeting {
        font-size: 1.2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .navigation {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .registration-form {
        margin: 1.5rem auto;
        padding: 1.5rem;
        max-width: calc(100% - 2rem);
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .form-submit {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .error-message {
        font-size: 0.8rem;
        padding: 0.4rem;
    }

    .general-error {
        margin: 1rem;
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    /* Timeline mobile responsive */
    .timeline-event-label {
        font-size: 0.8rem;
        max-width: 100px;
    }

    .timeline-event-date {
        font-size: 0.65rem;
    }

    .timeline-event-card {
        width: 95%;
        max-width: none;
        max-height: 80vh;
        padding: 1.5rem;
    }

    .timeline-event-card h3 {
        font-size: 1.5rem;
    }

    .timeline-card-description {
        font-size: 1rem;
    }

    .timeline-photo-gallery {
        grid-template-columns: 1fr;
    }

    /* Timeline detail mobile responsive */
    .timeline-detail-title {
        font-size: 2rem;
    }

    .timeline-detail-date {
        font-size: 1.1rem;
    }

    .timeline-detail-description {
        font-size: 1rem;
        padding: 1.5rem;
    }

    .timeline-photo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .timeline-photo-modal-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .timeline-photo-modal-prev {
        left: 1rem;
    }

    .timeline-photo-modal-next {
        right: 1rem;
    }

    .timeline-photo-modal-close {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }

    /* Timeline event navigation mobile */
    .timeline-detail-nav {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .timeline-nav-button {
        max-width: none;
    }

    .timeline-nav-title {
        font-size: 1rem;
    }

    .timeline-nav-arrow {
        font-size: 1.2rem;
    }

    .back-to-timeline {
        text-align: center;
    }
}

/* Members List Styles */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    max-width: 2400px; /* Prevent excessive stretching on ultra-wide screens */
    width: 100%;
}

.member-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
}

.member-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.member-photo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.member-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.member-image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.member-initials {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.member-info {
    flex: 1;
    min-width: 0; /* Allow text to wrap */
}

.member-header {
    margin-bottom: 0.75rem;
}

.member-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.member-year {
    font-size: 1.1rem;
    color: #c0c0c0;
    font-style: italic;
}

.member-bio {
    color: #d0d0d0;
    font-size: 1rem;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.member-bio-truncated {
    color: #d0d0d0;
    font-size: 1rem;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty-state {
    text-align: center;
    color: #c0c0c0;
    font-size: 1.2rem;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced responsive grid behavior */
@media (min-width: 1200px) {
    .members-grid {
        gap: 2.5rem;
    }
}

@media (min-width: 1600px) {
    .members-grid {
        gap: 3rem;
    }
}

/* Mobile responsiveness for member cards */
@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }

    .member-card {
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .member-photo {
        width: 70px;
        height: 70px;
    }

    .member-initials {
        font-size: 1.3rem;
    }

    .member-name {
        font-size: 1.2rem;
    }

    .member-year {
        font-size: 1rem;
    }

    .member-bio {
        font-size: 0.95rem;
    }
}

/* Modal Styles */
.guild-modal {
    background: rgba(45, 27, 105, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.guild-modal .modal-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.guild-modal .modal-header .modal-title {
    color: #f0f0f0;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.guild-modal .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

.guild-modal .modal-header .btn-close:hover {
    opacity: 1;
}

.guild-modal .modal-body {
    color: #e0e0e0;
    background: transparent;
}

.guild-modal .modal-body h4 {
    color: #f0f0f0;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.guild-modal .modal-body .text-muted {
    color: #c0c0c0 !important;
    font-style: italic;
}

/* Role Squircles */
.member-roles {
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.role-squircle {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #000;
    text-shadow: none;
    line-height: 1;
}

/* Timeline Detail Page Styles */
.timeline-detail-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.back-to-timeline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    flex-shrink: 0;
}

.back-to-timeline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #f0f0f0;
    text-decoration: none;
    transform: translateX(-3px);
}

.timeline-nav-button {
    flex: 1;
    max-width: 400px;
}

.timeline-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.timeline-nav-link:not(.timeline-nav-link-disabled):hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

.timeline-nav-link-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.timeline-nav-arrow {
    font-size: 1.5rem;
    color: #ffd700;
    flex-shrink: 0;
}

.timeline-nav-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.timeline-nav-link-next .timeline-nav-label {
    text-align: right;
}

.timeline-nav-direction {
    font-size: 0.85rem;
    color: #c0c0c0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.timeline-nav-title {
    font-size: 1.1rem;
    color: #f0f0f0;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-detail-header {
    text-align: center;
    margin-bottom: 3rem;
}

.timeline-detail-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.5rem;
}

.timeline-detail-date {
    font-size: 1.3rem;
    color: #c0c0c0;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.timeline-detail-description {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.timeline-detail-description p {
    white-space: pre-wrap;
    margin: 0;
}

.timeline-detail-photos {
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-detail-section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #f0f0f0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
    text-align: center;
}

.timeline-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.timeline-photo-grid-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.timeline-photo-grid-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.timeline-photo-thumbnail {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    display: block;
}

.timeline-photo-grid-caption {
    padding: 1rem;
    color: #e0e0e0;
    font-size: 0.95rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    background: rgba(45, 27, 105, 0.5);
    backdrop-filter: blur(5px);
}

.timeline-detail-no-photos {
    text-align: center;
    color: #c0c0c0;
    font-size: 1.2rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Photo Modal Styles */
.timeline-photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

.timeline-photo-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.timeline-photo-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.timeline-photo-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #f0f0f0;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2002;
}

.timeline-photo-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 215, 0, 0.6);
    transform: rotate(90deg);
}

.timeline-photo-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #f0f0f0;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2002;
}

.timeline-photo-modal-nav:hover {
    background: rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.timeline-photo-modal-prev {
    left: 2rem;
}

.timeline-photo-modal-next {
    right: 2rem;
}

.timeline-photo-modal-image-container {
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-photo-modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.timeline-photo-modal-info {
    margin-top: 1.5rem;
    text-align: center;
}

.timeline-photo-modal-caption {
    color: #f0f0f0;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.timeline-photo-modal-counter {
    color: #c0c0c0;
    font-size: 0.9rem;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
