/* Define Your Path - Calendar Styles */

.path-calendar-page {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding-bottom: 3rem;
}

.path-hero {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(10, 14, 39, 0.85) 0%, rgba(26, 31, 58, 0.9) 50%, rgba(10, 14, 39, 0.85) 100%),
                url('../images/background.jpg') center center / cover no-repeat;
    overflow: hidden;
    margin-bottom: 3rem;
}

.path-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.path-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 8px;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    animation: fade-in 1.5s ease-in;
}

.path-subtitle {
    font-size: 1.3rem;
    margin-top: 1rem;
    opacity: 0.9;
    animation: fade-in 1.5s ease-in 0.3s both;
}

.path-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Calendar Container - Milky Way Theme */
.calendar-container {
    position: relative;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(212, 168, 75, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(179, 255, 224, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 20%, rgba(217, 179, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0a0e27 0%, #1a1f3a 25%, #2a1f3a 50%, #1a1f3a 75%, #0a0e27 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 
        0 4px 30px rgba(212, 168, 75, 0.2),
        0 0 60px rgba(179, 255, 224, 0.1),
        inset 0 0 100px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Milky Way stars overlay */
.calendar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 60px 70px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 50px 50px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 80px 80px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 100px 40px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 120px 90px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 150px 20px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 180px 60px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 200px 100px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 220px 30px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 250px 80px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 280px 50px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 300px 10px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 320px 70px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 350px 40px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 380px 90px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 400px 20px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 420px 60px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 450px 100px, rgba(255, 255, 255, 0.6), transparent);
    background-size: 500px 500px;
    background-repeat: repeat;
    opacity: 0.6;
    animation: twinkle-stars 4s ease-in-out infinite;
    pointer-events: none;
    border-radius: 20px;
}

/* Milky Way nebula clouds */
.calendar-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 800px 400px at 30% 40%, rgba(212, 168, 75, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 600px 300px at 70% 60%, rgba(179, 255, 224, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 500px 250px at 50% 20%, rgba(217, 179, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 20px;
    animation: nebula-drift 20s ease-in-out infinite;
}

@keyframes twinkle-stars {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes nebula-drift {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translate(10px, -5px) scale(1.05);
        opacity: 0.8;
    }
}

/* Search Section */
.calendar-search-section {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.calendar-search-form {
    width: 100%;
}

.search-inputs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    color: white;
    transition: all 0.3s;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    border-color: #d4a84b;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(212, 168, 75, 0.3);
}

.search-date-input {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    color: white;
    transition: border-color 0.3s;
}

.search-date-input:focus {
    outline: none;
    border-color: #d4a84b;
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #d4a84b 0%, #b3ffe0 100%);
    color: #0a0e27;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 168, 75, 0.4);
}

.clear-search-btn {
    padding: 0.75rem 1.5rem;
    background: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
    display: inline-block;
}

.clear-search-btn:hover {
    background: #e0e0e0;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.calendar-nav-btn {
    color: #e8c547;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.calendar-nav-btn:hover {
    color: #c9a227;
}

.calendar-month-title {
    font-size: 2rem;
    color: #333;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Calendar Grid */
.calendar-grid {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #0a0e27;
    color: white;
    width: 100%;
}

.calendar-day-header {
    padding: 0.5rem 0.3rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.calendar-day-header:last-child {
    border-right: none;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: 100%;
}

.calendar-day {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    min-height: 60px;
    padding: 0.3rem;
    position: relative;
    transition: all 0.3s;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
}

.calendar-day.clickable-day {
    cursor: pointer;
}

.calendar-day.clickable-day:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 
        inset 0 0 30px rgba(212, 168, 75, 0.3),
        0 0 20px rgba(212, 168, 75, 0.2);
    border-color: rgba(212, 168, 75, 0.4);
}

.calendar-day.clickable-day:hover .day-number {
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.calendar-day.clickable-day::before {
    content: '+';
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    opacity: 0;
    transition: all 0.3s;
    font-weight: bold;
    line-height: 1;
}

.calendar-day.clickable-day:hover::before {
    opacity: 1;
    color: rgba(212, 168, 75, 0.9);
    text-shadow: 0 0 10px rgba(212, 168, 75, 0.8);
    transform: scale(1.2);
}

.calendar-week .calendar-day:last-child {
    border-right: none;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 20px rgba(212, 168, 75, 0.2);
}

.calendar-day.empty {
    background: rgba(0, 0, 0, 0.1);
    opacity: 0.5;
}

.calendar-day.today {
    background: linear-gradient(135deg, rgba(212, 168, 75, 0.3) 0%, rgba(179, 255, 224, 0.3) 100%);
    backdrop-filter: blur(10px);
    font-weight: bold;
    box-shadow: 
        inset 0 0 30px rgba(212, 168, 75, 0.4),
        0 0 20px rgba(212, 168, 75, 0.3);
    border: 1px solid rgba(212, 168, 75, 0.5);
}

.day-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.2rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    line-height: 1.2;
}

.calendar-day.today .day-number {
    color: white;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

.day-events {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-top: 0.2rem;
    align-items: center;
}

.day-event-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    margin: 1px;
    cursor: pointer;
    /* Space-themed glow effect with pastel colors */
    box-shadow: 
        0 0 6px currentColor,
        0 0 12px currentColor,
        inset 0 0 4px rgba(255, 255, 255, 0.4),
        inset -2px -2px 4px rgba(0, 0, 0, 0.1);
    animation: star-twinkle 3s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-decoration: none;
}


/* Different animation delays for parallax effect */
.day-event-dot:nth-child(1) { animation-delay: 0s; }
.day-event-dot:nth-child(2) { animation-delay: 0.5s; }
.day-event-dot:nth-child(3) { animation-delay: 1s; }
.day-event-dot:nth-child(4) { animation-delay: 1.5s; }
.day-event-dot:nth-child(5) { animation-delay: 2s; }

.day-event-dot:hover {
    transform: scale(1.8);
    box-shadow: 
        0 0 8px currentColor,
        0 0 16px currentColor,
        0 0 24px currentColor,
        inset 0 0 6px rgba(255, 255, 255, 0.5);
    animation: none;
}

@keyframes star-twinkle {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Events Grid */
.upcoming-events-section,
.past-events-section {
    position: relative;
    z-index: 2;
    margin-bottom: 3rem;
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.upcoming-events-section .section-title,
.past-events-section .section-title {
    color: rgba(255, 255, 255, 0.95);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(212, 168, 75, 0.5);
    position: relative;
    z-index: 2;
}

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

.event-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 6px 30px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(212, 168, 75, 0.3);
    border-color: rgba(212, 168, 75, 0.5);
}

.event-card.past {
    opacity: 0.7;
}

.event-card-clickable {
    cursor: pointer;
}
.event-card-clickable:focus {
    outline: 2px solid rgba(212, 168, 75, 0.7);
    outline-offset: 2px;
}

.event-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #d4a84b 0%, #b3ffe0 100%);
}

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

.event-content {
    padding: 1.5rem;
}

.event-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.event-type-run {
    background: #d4a84b;
    color: #0a0e27;
}

.event-type-hike {
    background: #b3ffe0;
    color: #0a0e27;
}

.event-type-adventure {
    background: #e8ecf8;
    color: #0a0e27;
}

.event-type-community {
    background: #c9a227;
    color: #0a0e27;
}

.event-type-wellness {
    background: #d9b3ff;
    color: #0a0e27;
}

.event-type-other {
    background: #e0e0e0;
    color: #333;
}

.event-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.event-content h3 a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: color 0.3s;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

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

.event-date,
.event-location {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.event-description {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-top: 1rem;
}

/* Pencil Icon Button with Dropdown */
.event-actions-dropdown {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
}

.pencil-icon-btn {
    background: linear-gradient(135deg, #e8c547 0%, #d4a84b 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 168, 75, 0.3);
    color: #0a0e27;
}

.pencil-icon-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 12px rgba(212, 168, 75, 0.5);
}

.pencil-icon-btn svg {
    width: 20px;
    height: 20px;
}

.dropdown-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(212, 168, 75, 0.1) 0%, rgba(179, 255, 224, 0.1) 100%);
    color: #0a0e27;
}

.dropdown-item.delete-item:hover {
    background: rgba(255, 99, 99, 0.1);
    color: #d32f2f;
}

.event-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

/* Event Detail Page */
.path-event-detail {
    max-width: 900px;
    margin: 0 auto;
}

.event-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.back-link,
.back-link:link,
.back-link:visited {
    color: #e8c547;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.back-link:hover {
    color: #f4d03f;
}

.event-admin-actions {
    display: flex;
    gap: 1rem;
}

.event-detail-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e0e0e0;
}

/* Event detail card background matches event type */
.event-detail-card.event-type-run {
    background: #fdf8ed;
    border-left-color: #d4a84b;
}

.event-detail-card.event-type-hike {
    background: #edfaf5;
    border-left-color: #b3ffe0;
}

.event-detail-card.event-type-adventure {
    background: #f0f2fa;
    border-left-color: #e8ecf8;
}

.event-detail-card.event-type-community {
    background: #faf6e8;
    border-left-color: #c9a227;
}

.event-detail-card.event-type-wellness {
    background: #f5f0ff;
    border-left-color: #d9b3ff;
}

.event-detail-card.event-type-other {
    background: #f8f8f8;
    border-left-color: #e0e0e0;
}

.event-detail-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #d4a84b 0%, #b3ffe0 100%);
}

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

.event-detail-content {
    padding: 2rem;
}

.event-detail-title {
    font-size: 2.5rem;
    color: #333;
    margin: 1rem 0;
    font-weight: 300;
    letter-spacing: 2px;
}

.space-theme-page .event-detail-title {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.2);
}

.event-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 1.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-icon {
    font-size: 1.2rem;
}

.meta-text {
    color: #666;
    font-size: 1rem;
}

.space-theme-page .meta-text {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.event-detail-description {
    color: #333;
    line-height: 1.8;
    font-size: 1.1rem;
    margin: 2rem 0;
}

.space-theme-page .event-detail-description {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}

.event-detail-footer {
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.space-theme-page .event-detail-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.event-created {
    color: #999;
    font-size: 0.9rem;
}

.space-theme-page .event-created {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Event detail card has light background – use dark text so it’s readable */
.event-detail-card .event-detail-title {
    color: #1a1a1a !important;
    text-shadow: none !important;
}

.event-detail-card .meta-text {
    color: #444 !important;
    text-shadow: none !important;
}

.event-detail-card .event-detail-description {
    color: #333 !important;
    text-shadow: none !important;
}

.event-detail-card .event-created {
    color: #555 !important;
    text-shadow: none !important;
}

/* Softer card backgrounds so the card isn’t blinding white */
.event-detail-card.event-type-run {
    background: #f8f2e6;
}
.event-detail-card.event-type-hike {
    background: #e8f5f0;
}
.event-detail-card.event-type-adventure {
    background: #e8eaf2;
}
.event-detail-card.event-type-community {
    background: #f5f0e0;
}
.event-detail-card.event-type-wellness {
    background: #efe8ff;
}
.event-detail-card.event-type-other {
    background: #f0f0f0;
}

/* Responsive */
/* DeAnna's Diary Styles */
.diary-list-page {
    max-width: 1200px;
    margin: 0 auto;
}

.diary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.diary-header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.diary-header h1 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: #333;
    margin: 0;
}

.space-theme-page .diary-header h1 {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 1px rgba(0, 0, 0, 0.8);
    font-weight: 400;
}

/* Diary: force gold for primary button (no pink/mint) */
.space-theme-page .diary-header .btn-primary,
.space-theme-page .diary-list-page .btn-primary,
.space-theme-page .diary-page-detail .btn-primary {
    background: linear-gradient(135deg, #e8c547 0%, #d4a84b 100%) !important;
    color: #0a0e27 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 12px rgba(212, 168, 75, 0.4);
}

.space-theme-page .diary-header .btn-primary:hover,
.space-theme-page .diary-list-page .btn-primary:hover,
.space-theme-page .diary-page-detail .btn-primary:hover {
    background: linear-gradient(135deg, #f4d03f 0%, #c9a227 100%) !important;
    box-shadow: 0 4px 16px rgba(212, 168, 75, 0.5);
    color: #0a0e27 !important;
}

.diary-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.diary-page-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.space-theme-page .diary-page-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(212, 168, 75, 0.15);
}

.diary-page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.space-theme-page .diary-page-card:hover {
    box-shadow: 
        0 6px 40px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(212, 168, 75, 0.2);
    border-color: rgba(212, 168, 75, 0.5);
}

.diary-page-card.draft {
    border-left: 4px solid #d4a84b;
}

.diary-page-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #d4a84b 0%, #b3ffe0 100%);
}

.diary-page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.diary-page-content {
    padding: 1.5rem;
}

.diary-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.diary-status-draft {
    background: #d4a84b;
    color: #0a0e27;
}

.diary-status-public {
    background: #b3ffe0;
    color: #0a0e27;
}

.space-theme-page .diary-status-badge {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.diary-page-content h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.diary-page-content h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.space-theme-page .diary-page-content h2 a {
    color: #f4d03f;
    text-shadow: 0 0 14px rgba(244, 208, 63, 0.8), 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.diary-page-content h2 a:hover {
    color: #e8c547;
}

.space-theme-page .diary-page-content h2 a:hover {
    color: #d4a84b;
    text-shadow: 0 0 15px rgba(212, 168, 75, 0.5);
}

.diary-preview {
    color: #666;
    line-height: 1.6;
    margin: 1rem 0;
}

.space-theme-page .diary-preview {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.diary-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.space-theme-page .diary-meta {
    border-top-color: rgba(255, 255, 255, 0.25);
}

.diary-date {
    color: #999;
    font-size: 0.9rem;
}

.space-theme-page .diary-date {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.diary-actions {
    display: flex;
    gap: 0.5rem;
}

.diary-page-detail {
    max-width: 900px;
    margin: 0 auto;
}

.diary-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.diary-admin-actions {
    display: flex;
    gap: 1rem;
}

.diary-detail-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.space-theme-page .diary-detail-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(212, 168, 75, 0.1);
}

.diary-detail-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #d4a84b 0%, #b3ffe0 100%);
}

.diary-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.diary-detail-content {
    padding: 2rem;
}

.diary-detail-title {
    font-size: 2.5rem;
    color: #333;
    margin: 1rem 0;
    font-weight: 300;
    letter-spacing: 2px;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.space-theme-page .diary-detail-title {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.2);
}

.diary-detail-text {
    color: #333;
    line-height: 1.8;
    font-size: 1.1rem;
    margin: 2rem 0;
}

.space-theme-page .diary-detail-text {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}

.diary-detail-footer {
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.space-theme-page .diary-detail-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.space-theme-page .diary-created,
.space-theme-page .diary-updated {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
}

.diary-created,
.diary-updated {
    color: #555;
    font-size: 0.95rem;
    margin: 0.25rem 0;
}

@media (max-width: 768px) {
    .path-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .calendar-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 0.25rem;
    }
    
    .day-number {
        font-size: 0.85rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .event-detail-image {
        height: 250px;
    }
    
    .event-detail-title {
        font-size: 1.8rem;
    }
    
    .event-detail-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .diary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .diary-header h1 {
        font-size: 2rem;
    }
    
    .diary-pages-grid {
        grid-template-columns: 1fr;
    }
    
    .diary-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .diary-detail-image {
        height: 250px;
    }
    
    .diary-detail-title {
        font-size: 1.8rem;
    }
}

