@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* FOUC prevention: hide site content until a theme is chosen */
html:not(.theme-mac):not(.theme-windows) .menu_bar,
html:not(.theme-mac):not(.theme-windows) .desktop,
html:not(.theme-mac):not(.theme-windows) .dock {
    display: none !important;
}

/* OS Selection Modal */
.os-select-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000000;
    overflow: hidden;
}

.os-select-modal.hidden {
    display: none !important;
}

/* Floating Bubbles */
.os-bubble {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1px;
    cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    animation: bubble-morph 5s ease-in-out infinite;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
    box-shadow:
        0 0 30px rgba(255, 255, 255, 0.04),
        inset 0 0 30px rgba(255, 255, 255, 0.03);
}

.os-bubble:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 40px rgba(255, 255, 255, 0.08),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
}

.os-bubble:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 6px;
    border-radius: 50%;
}

@keyframes bubble-morph {
    0%, 100% { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; }
    25% { border-radius: 55% 45% 42% 58% / 58% 55% 42% 45%; }
    50% { border-radius: 45% 55% 58% 42% / 42% 58% 45% 55%; }
    75% { border-radius: 58% 42% 45% 55% / 55% 42% 58% 45%; }
}

.os-bubble-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.os-bubble {
    position: absolute;
    width: 180px;
    height: 180px;
    flex-direction: column;
    gap: 12px;
    transition: none;
}

.os-bubble-icon {
    font-size: 48px;
    display: block;
}

.os-bubble-label {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.os-bubble-mac .os-bubble-icon::before {
    content: '';
}

.os-bubble-windows .os-bubble-icon {
    font-size: 64px;
}

/* Shooting star trail canvas */
.os-trail-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    overflow: hidden;
    height: 100vh;
    background: #000000;
    background-size: cover;
    background-attachment: fixed;
}

/* macOS Menu Bar */
.menu_bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    font-size: 13px;
    color: #fff;
    z-index: 10000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu_left {
    display: flex;
    gap: 16px;
    align-items: center;
}

.apple_logo::before {
    content: '';
    font-size: 16px;
}

.menu_item {
    font-weight: 500;
    cursor: pointer;
}

.menu_item:hover {
    opacity: 0.8;
}

.menu_right {
    font-size: 12px;
}

/* Desktop */
.desktop {
    position: fixed;
    top: 28px;
    left: 0;
    right: 0;
    bottom: 80px;
    overflow: auto;
}

/* Desktop Message */
.desktop_message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 1;
    transition: opacity 0.3s;
}

.desktop_message.hidden {
    opacity: 0;
    pointer-events: none;
}

.desktop_message p {
    font-size: 24px;
    color: #ffffff;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    cursor: pointer;
    display: inline-block;
}

.desktop_message p:hover {
    animation: expand-text 30s ease-in forwards;
}

@keyframes expand-text {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(50);
    }
}

/* Safari Window */
.safari_window {
    position: absolute;
    width: 900px;
    max-width: 90vw;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    z-index: 100;
}

/* Resize Handles */
.resize_handle {
    position: absolute;
    z-index: 10;
}

.resize_n {
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    cursor: n-resize;
}

.resize_s {
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    cursor: s-resize;
}

.resize_e {
    top: 0;
    right: 0;
    bottom: 0;
    width: 5px;
    cursor: e-resize;
}

.resize_w {
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    cursor: w-resize;
}

.resize_ne {
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    cursor: ne-resize;
}

.resize_nw {
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    cursor: nw-resize;
}

.resize_se {
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    cursor: se-resize;
}

.resize_sw {
    bottom: 0;
    left: 0;
    width: 12px;
    height: 12px;
    cursor: sw-resize;
}

.hidden {
    display: none !important;
}

.safari_window.hidden {
    display: none;
}

.safari_window.minimized {
    display: none !important;
    transform: none !important;
    opacity: 1 !important;
}

.safari_window.maximized {
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100vh - 108px) !important;
    top: 28px !important;
    left: 0 !important;
    transform: none !important;
    border-radius: 0;
}

.safari_window.maximized .window_content {
    max-height: none !important;
    height: calc(100% - 88px);
}

.safari_window.opening {
    animation: windowOpen 0.3s ease-out;
}

.safari_window.closing {
    animation: windowClose 0.3s ease-in;
}

@keyframes windowOpen {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes windowClose {
    from {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) scale(0.9);
    }
}

/* Window Header */
.window_header {
    height: 40px;
    background: linear-gradient(to bottom, #f5f5f7, #e8e8ea);
    border-bottom: 1px solid #d1d1d6;
    display: flex;
    align-items: center;
    padding: 0 12px;
    position: relative;
    cursor: move;
    cursor: grab;
}

.window_header:active {
    cursor: grabbing;
}

.window_controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.control.close {
    background: #ff5f57;
    order: -1;
}

.control.close:hover {
    background: #ff4b42;
}

.control.minimize {
    background: #ffbd2e;
    order: 0;
}

.control.minimize:hover {
    background: #ffa500;
}

.control.maximize {
    background: #28c840;
    order: 1;
}

.control.maximize:hover {
    background: #1fb834;
}

.window_title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

/* Safari Toolbar */
.safari_toolbar {
    height: 48px;
    background: #f5f5f7;
    border-bottom: 1px solid #d1d1d6;
    display: flex;
    align-items: center;
    padding: 0 12px;
}

/* Themed Safari Toolbars */
#links-window .safari_toolbar {
    background: #2e0f1e;
    border-bottom: 1px solid #1a0812;
}

#links-window .url_bar {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

#links-window .url_text {
    color: rgba(255, 255, 255, 0.8);
}

#work-window .safari_toolbar {
    background: #2a0f3d;
    border-bottom: 1px solid #190526;
}

#work-window .url_bar {
    background: #190526;
    border-color: #BAAEBF;
}

#work-window .url_text {
    color: #BAAEBF;
}

#music-window .safari_toolbar {
    background: #fff9e6;
    border-bottom: 1px solid #ffd966;
}

#music-window .url_bar {
    background: #fffaed;
    border-color: #ffd966;
}

#music-window .url_text {
    color: #8b7a3d;
}

.url_bar {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    height: 28px;
    background: #ffffff;
    border: 1px solid #d1d1d6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
}

.lock_icon {
    font-size: 12px;
}

.url_text {
    font-size: 13px;
    color: #666;
}

/* Window Content */
.window_content {
    max-height: 600px;
    overflow-y: auto;
    background: #ffffff;
}

/* About Container */
.about_container {
    display: flex;
    gap: 40px;
    padding: 40px;
    align-items: center;
    background: linear-gradient(135deg, #1e3a28 0%, #2d5a3f 100%);
}

.profile_image {
    flex: 0 0 300px;
    overflow: hidden;
    border-radius: 12px;
}

.profile_image img {
    width: 100%;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.5s ease;
    transform: scale(1);
}

.about_text {
    flex: 1;
}

.about_text h1 {
    font-size: 42px;
    color: #ffffff;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.about_text p {
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 16px;
}

/* Music Content - Pastel Yellow Theme */
#music-window .window_content {
    background: linear-gradient(135deg, #fff9e6 0%, #fffaed 50%, #fef5dc 100%);
}

.music_content {
    padding: 60px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.music_content h2 {
    font-size: 42px;
    color: #8b7a3d;
    margin-bottom: 16px;
    font-weight: 700;
    text-align: center;
}

.music_intro {
    font-size: 18px;
    line-height: 1.8;
    color: #7a6b33;
    margin-bottom: 48px;
    text-align: center;
    font-weight: 400;
}

.music_directory {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.music_nav_item {
    display: flex;
    align-items: center;
    background: rgba(255, 246, 204, 0.6);
    padding: 16px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #ffd966;
    border-left: 4px solid #ffd966;
    box-shadow: 0 2px 8px rgba(139, 122, 61, 0.1);
}

.music_nav_item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(139, 122, 61, 0.2);
    background: rgba(255, 230, 153, 0.8);
    border-left-color: #f4c430;
}

.music_folder_icon {
    font-size: 24px;
    margin-right: 16px;
    flex-shrink: 0;
    pointer-events: none;
}

.music_nav_title {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    color: #8b7a3d;
    line-height: 1.4;
    pointer-events: none;
}

.music_nav_arrow {
    font-size: 20px;
    color: #b8a450;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.music_nav_item:hover .music_nav_arrow {
    opacity: 1;
    transform: translateX(0);
}

.music_page {
    text-align: left;
}

.music_back_btn {
    background: #ffd966;
    border: 2px solid #f4c430;
    color: #8b7a3d;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 32px;
    display: inline-block;
}

.music_back_btn:hover {
    background: #f4c430;
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(139, 122, 61, 0.2);
}

.music_date {
    font-size: 14px;
    color: #b8a450;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-align: left;
}

.music_description {
    background: rgba(255, 246, 204, 0.5);
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
    border-left: 4px solid #ffd966;
}

.music_description p {
    font-size: 16px;
    line-height: 1.8;
    color: #6b5f2e;
    margin-bottom: 16px;
}

.music_description p:last-child {
    margin-bottom: 0;
}

.candid_track {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 2px solid #ffe699;
}

.candid_track:last-child {
    border-bottom: none;
}

.candid_track h3 {
    font-size: 28px;
    color: #8b7a3d;
    margin-bottom: 16px;
    font-weight: 600;
}

.candid_hero_image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    margin: 32px auto;
    display: block;
    box-shadow: 0 8px 24px rgba(139, 122, 61, 0.2);
    border: 3px solid #ffd966;
}

.candid_video_section {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 2px solid #ffe699;
}

.candid_video_section h3 {
    font-size: 28px;
    color: #8b7a3d;
    margin-bottom: 24px;
    font-weight: 600;
    text-align: center;
}

.candid_video {
    width: 100%;
    max-width: 900px;
    border-radius: 16px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(139, 122, 61, 0.2);
    border: 3px solid #ffd966;
}

iframe {
    border-radius: 12px;
    margin-top: 24px;
}

/* Photos Content - Soft Pastel Orange Theme */
#photos-window .safari_toolbar {
    background: #fef0e6;
    border-bottom: 1px solid #f4c4a0;
}

#photos-window .url_bar {
    background: #f0f0f4;
    border-color: #c8c8d0;
}

#photos-window .url_text {
    color: #5a5a6e;
}

#photos-window .window_content {
    background: linear-gradient(135deg, #ecedf1 0%, #f2f2f6 50%, #e9eaee 100%);
}

.photos_content {
    padding: 40px 30px;
    max-width: 960px;
    margin: 0 auto;
}

.photos_content h2 {
    font-size: 32px;
    color: #4a4a5a;
    margin-bottom: 24px;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.5px;
}

.photos_directory {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.photos_nav_item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    padding: 16px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #d4d4dc;
    border-left: 4px solid #b8b8c8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.photos_nav_item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    border-left-color: #8a8aa0;
}

.photos_folder_icon {
    font-size: 24px;
    margin-right: 16px;
    flex-shrink: 0;
    pointer-events: none;
}

.photos_nav_title {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    color: #4a4a5a;
    line-height: 1.4;
    pointer-events: none;
}

.photos_nav_count {
    font-size: 13px;
    color: #8a8a9a;
    margin-right: 12px;
    pointer-events: none;
}

.photos_nav_arrow {
    font-size: 20px;
    color: #a0a0b0;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.photos_nav_item:hover .photos_nav_arrow {
    opacity: 1;
    transform: translateX(0);
}

.photos_page {
    text-align: left;
}

.photos_back_btn {
    background: #d8d8e2;
    border: 2px solid #b8b8c8;
    color: #4a4a5a;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 24px;
    display: inline-block;
}

.photos_back_btn:hover {
    background: #c8c8d4;
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Photo Gallery Grid */
.photo_gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.photo_row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.photo_row_landscape .photo_item {
    width: 100%;
}

.photo_row_portrait .photo_item {
    width: calc(50% - 6px);
}

.photo_row_single_portrait {
    justify-content: center;
}

.photo_row_single_portrait .photo_item {
    width: 50%;
}

.photo_item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background: #e0e0e6;
    line-height: 0;
}

.photo_item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

.photo_item:hover img {
    transform: scale(1.02);
}

/* Responsive: stack portrait pairs on small screens */
@media (max-width: 600px) {
    .photos_content {
        padding: 20px 12px;
    }

    .photos_content h2 {
        font-size: 24px;
    }

    .photo_row_portrait {
        flex-direction: column;
    }

    .photo_row_portrait .photo_item,
    .photo_row_single_portrait .photo_item {
        width: 100%;
    }
}

.photos_description {
    background: rgba(255, 255, 255, 0.5);
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
    border-left: 4px solid #b8b8c8;
}

.photos_description p {
    font-size: 16px;
    line-height: 1.8;
    color: #5a5a6e;
    margin-bottom: 16px;
}

.photos_description p:last-child {
    margin-bottom: 0;
}

/* Art Content - Soft Pastel Pink Theme */
#art-window .safari_toolbar {
    background: #fff0f3;
    border-bottom: 1px solid #f4a8b8;
}

#art-window .url_bar {
    background: #fff5f7;
    border-color: #f4a8b8;
}

#art-window .url_text {
    color: #9e5a6a;
}

#art-window .window_content {
    background: linear-gradient(135deg, #fff0f3 0%, #fff5f7 50%, #ffeef2 100%);
}

.art_content {
    padding: 60px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.art_content h2 {
    font-size: 36px;
    color: #9e5a6a;
    margin-bottom: 24px;
    font-weight: 600;
    text-align: center;
}

.art_directory {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.art_nav_item {
    display: flex;
    align-items: center;
    background: rgba(255, 240, 243, 0.6);
    padding: 16px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f4a8b8;
    border-left: 4px solid #f4a8b8;
    box-shadow: 0 2px 8px rgba(158, 90, 106, 0.1);
}

.art_nav_item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(158, 90, 106, 0.2);
    background: rgba(255, 220, 230, 0.8);
    border-left-color: #e8859a;
}

.art_folder_icon {
    font-size: 24px;
    margin-right: 16px;
    flex-shrink: 0;
    pointer-events: none;
}

.art_nav_title {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    color: #9e5a6a;
    line-height: 1.4;
    pointer-events: none;
}

.art_nav_arrow {
    font-size: 20px;
    color: #c98a9a;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.art_nav_item:hover .art_nav_arrow {
    opacity: 1;
    transform: translateX(0);
}

.art_page {
    text-align: center;
}

.art_back_btn {
    background: #f4a8b8;
    border: 2px solid #e8859a;
    color: #9e5a6a;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 32px;
    display: inline-block;
}

.art_back_btn:hover {
    background: #e8859a;
    transform: translateX(-4px);
}

.art_image {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 16px;
    margin: 24px auto;
    display: block;
    box-shadow: 0 8px 24px rgba(158, 90, 106, 0.2);
    border: 3px solid #f4a8b8;
}

.art_date {
    font-size: 18px;
    color: #9e5a6a;
    font-style: italic;
    margin-top: 16px;
}

/* Writings Content - Soft Pastel Blue Theme */
#writings-window .safari_toolbar {
    background: #e8f4fc;
    border-bottom: 1px solid #a8d4f0;
}

#writings-window .url_bar {
    background: #f0f8ff;
    border-color: #a8d4f0;
}

#writings-window .url_text {
    color: #4a7a9e;
}

#writings-window .window_content {
    background: linear-gradient(135deg, #e8f4fc 0%, #f0f8ff 50%, #e5f2fa 100%);
}

.writings_content {
    padding: 60px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.writings_content h2 {
    font-size: 36px;
    color: #4a7a9e;
    margin-bottom: 24px;
    font-weight: 600;
    text-align: center;
}

.writings_directory {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.writings_nav_item {
    display: flex;
    align-items: center;
    background: rgba(232, 244, 252, 0.6);
    padding: 16px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #a8d4f0;
    border-left: 4px solid #a8d4f0;
    box-shadow: 0 2px 8px rgba(74, 122, 158, 0.1);
}

.writings_nav_item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(74, 122, 158, 0.2);
    background: rgba(200, 230, 250, 0.8);
    border-left-color: #7ab8de;
}

.writings_folder_icon {
    font-size: 24px;
    margin-right: 16px;
    flex-shrink: 0;
    pointer-events: none;
}

.writings_nav_title {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    color: #4a7a9e;
    line-height: 1.4;
    pointer-events: none;
}

.writings_nav_arrow {
    font-size: 20px;
    color: #7ab8de;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.writings_nav_item:hover .writings_nav_arrow {
    opacity: 1;
    transform: translateX(0);
}

.writings_page {
    text-align: left;
}

.writings_back_btn {
    background: #a8d4f0;
    border: 2px solid #7ab8de;
    color: #4a7a9e;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 32px;
    display: inline-block;
}

.writings_back_btn:hover {
    background: #7ab8de;
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(74, 122, 158, 0.2);
}

.writings_date {
    font-size: 14px;
    color: #7ab8de;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-align: left;
}

.writings_description {
    background: rgba(232, 244, 252, 0.5);
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
    border-left: 4px solid #a8d4f0;
}

.writings_description p {
    font-size: 16px;
    line-height: 1.8;
    color: #3d6a8a;
    margin-bottom: 16px;
}

.writings_description p:last-child {
    margin-bottom: 0;
}

.writings_hero_image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    margin: 32px auto;
    display: block;
    box-shadow: 0 8px 24px rgba(74, 122, 158, 0.2);
    border: 3px solid #a8d4f0;
}

.writings_download_btn {
    display: block;
    width: fit-content;
    margin: 32px auto 0;
    padding: 16px 32px;
    background: #a8d4f0;
    border: 2px solid #7ab8de;
    border-radius: 8px;
    color: #4a7a9e;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(74, 122, 158, 0.15);
}

.writings_download_btn:hover {
    background: #7ab8de;
    color: #2d5a7a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 122, 158, 0.25);
}

/* Cricket Statistics Styles */
.cricket_controls {
    margin-bottom: 24px;
}

.cricket_filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.filter_group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}

.filter_group label {
    font-size: 12px;
    font-weight: 600;
    color: #4a7a9e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter_group select {
    padding: 8px 12px;
    border: 2px solid #a8d4f0;
    border-radius: 6px;
    background: #fff;
    color: #3d6a8a;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter_group select:focus {
    outline: none;
    border-color: #7ab8de;
}

.filter_group.hidden {
    display: none;
}

.cricket_search {
    max-width: 400px;
}

.cricket_search input {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid #a8d4f0;
    border-radius: 6px;
    font-size: 14px;
    color: #3d6a8a;
    transition: border-color 0.2s;
}

.cricket_search input:focus {
    outline: none;
    border-color: #7ab8de;
}

.cricket_search input::placeholder {
    color: #7ab8de;
}

.cricket_summary {
    background: rgba(232, 244, 252, 0.7);
    padding: 20px 24px;
    border-radius: 10px;
    margin-bottom: 24px;
    border-left: 4px solid #7ab8de;
}

.cricket_summary_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.cricket_stat {
    text-align: center;
    min-width: 80px;
}

.cricket_stat_value {
    font-size: 28px;
    font-weight: 700;
    color: #4a7a9e;
    line-height: 1;
}

.cricket_stat_label {
    font-size: 11px;
    color: #7ab8de;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.cricket_table_container {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #a8d4f0;
}

.cricket_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}

.cricket_table thead {
    background: #7ab8de;
    color: #fff;
}

.cricket_table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    transition: background 0.2s;
}

.cricket_table th:hover {
    background: #5a9fc8;
}

.cricket_table th.sorted-asc::after {
    content: ' ▲';
    font-size: 10px;
}

.cricket_table th.sorted-desc::after {
    content: ' ▼';
    font-size: 10px;
}

.cricket_table tbody tr {
    border-bottom: 1px solid #d4e7f7;
    transition: background 0.2s;
}

.cricket_table tbody tr:hover {
    background: rgba(168, 212, 240, 0.2);
}

.cricket_table tbody tr:nth-child(even) {
    background: rgba(232, 244, 252, 0.3);
}

.cricket_table tbody tr:nth-child(even):hover {
    background: rgba(168, 212, 240, 0.3);
}

.cricket_table td {
    padding: 10px;
    color: #3d6a8a;
}

.cricket_table td.numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.cricket_table .not-out {
    font-weight: 600;
    color: #2d7a5a;
}

.cricket_link {
    display: inline-block;
    padding: 2px 8px;
    background: #a8d4f0;
    color: #4a7a9e;
    border-radius: 4px;
    font-size: 11px;
    text-decoration: none;
    margin-right: 4px;
    transition: background 0.2s;
}

.cricket_link:hover {
    background: #7ab8de;
    color: #fff;
}

.cricket_no_data {
    text-align: center;
    padding: 40px 20px;
    color: #7ab8de;
    font-style: italic;
}

/* Search Content */
.search_content {
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.search_content h2 {
    font-size: 42px;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 700;
}

.search_subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
    font-weight: 400;
}

.search_box_container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
}

.search_input {
    width: 100%;
    padding: 18px 56px 18px 24px;
    font-size: 18px;
    border: 2px solid #d1d1d6;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

.search_input:focus {
    border-color: #007AFF;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.search_icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #999;
    pointer-events: none;
}

.search_results {
    min-height: 200px;
}

.search_placeholder {
    text-align: center;
    color: #999;
    font-size: 16px;
    padding: 60px 20px;
}

.search_no_results {
    text-align: center;
    color: #666;
    font-size: 16px;
    padding: 40px 20px;
}

.search_count {
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
    font-weight: 500;
}

.search_result_item {
    background: #f8f8f8;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.search_result_item:hover {
    background: #efefef;
    border-left-color: #007AFF;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search_result_section {
    font-size: 12px;
    color: #007AFF;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.search_result_title {
    font-size: 17px;
    color: #333;
    font-weight: 600;
}

/* Links Content - Modern Dynamic Theme */
#links-window .window_content {
    background: linear-gradient(135deg, #2e1a28 0%, #4a1a2e 50%, #3d1621 100%);
    position: relative;
}

#links-window .window_content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,200,220,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: backgroundFloat 20s linear infinite;
}

@keyframes backgroundFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

.links_content {
    padding: 60px 40px;
    position: relative;
    z-index: 1;
}

.links_content h2 {
    font-size: 42px;
    color: #ffffff;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.2);
}

.links_subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin-bottom: 48px;
    font-weight: 400;
}

.links_grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.link_card {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.link_card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.link_card:hover::before {
    left: 100%;
}

.link_card:hover {
    transform: translateX(8px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.link_icon {
    font-size: 32px;
    margin-right: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.link_card:hover .link_icon {
    transform: scale(1.2) rotate(5deg);
}

.link_info {
    flex: 1;
}

.link_name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.link_handle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.link_arrow {
    font-size: 24px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link_card:hover .link_arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Platform-specific accent colors */
.link_x:hover {
    border-color: rgba(255, 200, 220, 0.5);
    box-shadow: 0 8px 32px rgba(255, 200, 220, 0.2), 0 0 40px rgba(255, 200, 220, 0.15);
}

.link_instagram:hover {
    border-color: rgba(255, 120, 160, 0.6);
    box-shadow: 0 8px 32px rgba(255, 120, 160, 0.3), 0 0 40px rgba(255, 120, 160, 0.2);
}

.link_letterboxd:hover {
    border-color: rgba(255, 180, 200, 0.5);
    box-shadow: 0 8px 32px rgba(255, 180, 200, 0.3), 0 0 40px rgba(255, 180, 200, 0.2);
}

.link_linkedin:hover {
    border-color: rgba(200, 150, 180, 0.5);
    box-shadow: 0 8px 32px rgba(200, 150, 180, 0.3), 0 0 40px rgba(200, 150, 180, 0.2);
}

.link_github:hover {
    border-color: rgba(220, 180, 200, 0.5);
    box-shadow: 0 8px 32px rgba(220, 180, 200, 0.3), 0 0 40px rgba(220, 180, 200, 0.2);
}

.link_card:active {
    transform: translateX(6px) scale(1);
}

/* Work Content - Magnai Brand Style */
#work-window .window_content {
    background: #190526;
}

.work_content {
    padding: 80px 60px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.work_content h2 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 48px;
    color: #BAAEBF;
    margin-bottom: 48px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.magnai_logo {
    max-width: 300px;
    height: auto;
    margin: 0 auto 48px;
    display: block;
}

.magnai_logo_dark {
    display: none;
}

.work_content p {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 2;
    color: #BAAEBF;
    margin-bottom: 64px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.work_content strong {
    font-weight: 500;
    color: #ffffff;
}

.work_button {
    display: inline-block;
    padding: 16px 48px;
    background: transparent;
    color: #BAAEBF;
    border: 1px solid #BAAEBF;
    text-decoration: none;
    border-radius: 2px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.work_button:hover {
    background: #BAAEBF;
    color: #190526;
}

.work_button:active {
    transform: scale(0.98);
}

/* Map Window - Travel Theme */
#map-window .safari_toolbar {
    background: #e6f4f1;
    border-bottom: 1px solid #a8d4c8;
}

#map-window .url_bar {
    background: #f0f9f7;
    border-color: #a8d4c8;
}

#map-window .url_text {
    color: #4a7a6a;
}

#map-window .window_content {
    background: #e6f4f1;
    height: 600px;
    max-height: 600px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Map Filter Bar */
.map-filter-bar {
    display: flex;
    gap: 16px;
    padding: 10px 16px;
    background: #f0f9f7;
    border-bottom: 1px solid #a8d4c8;
    flex-shrink: 0;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 500;
    color: #4a7a6a;
}

.filter-group select {
    padding: 4px 8px;
    border: 1px solid #a8d4c8;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 12px;
    cursor: pointer;
    min-width: 100px;
}

.filter-group select:focus {
    outline: none;
    border-color: #4a7a6a;
}

/* Map Container */
.map-container {
    position: relative;
    flex: 1;
    min-height: 0;
}

#travel-map {
    width: 100%;
    height: 100%;
}

/* Stats Panel */
.map-stats-panel {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #a8d4c8;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 120px;
}

.stats-header {
    font-size: 12px;
    font-weight: 600;
    color: #4a7a6a;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #333;
    padding: 2px 0;
}

.stat-row span:first-child {
    color: #666;
}

.stat-row span:last-child {
    font-weight: 600;
    color: #4a7a6a;
}

/* Custom red X marker */
.map-marker-x {
    color: #dc2626;
    font-size: 20px;
    font-weight: bold;
    text-shadow:
        1px 1px 0 #fff,
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        0 2px 4px rgba(0,0,0,0.3);
    line-height: 1;
}

.map-marker-container {
    background: transparent !important;
    border: none !important;
}

/* Map tooltip styling */
.leaflet-tooltip.map-tooltip {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #a8d4c8;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.leaflet-tooltip.map-tooltip::before {
    border-top-color: #a8d4c8;
}

.map-tooltip .place-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.map-tooltip .place-date {
    font-size: 12px;
    color: #4a7a6a;
    font-weight: 500;
}

/* Leaflet controls theming */
#map-window .leaflet-control-zoom a {
    background: rgba(255, 255, 255, 0.9);
    color: #4a7a6a;
    border-color: #a8d4c8;
}

#map-window .leaflet-control-zoom a:hover {
    background: #e6f4f1;
    color: #3d6a5a;
}

#chat-window .window_content {
    background: linear-gradient(135deg, #ffe4ec 0%, #fff0f5 50%, #fce4ec 100%);
}

/* Recipes window */
#recipes-window {
    width: min(680px, 92vw);
}

#recipes-window .window_content {
    background: linear-gradient(145deg, #fff4d8 0%, #ffe9be 45%, #f8d79d 100%);
}

.recipes_login_content {
    max-width: 560px;
    margin: 0 auto;
    padding: 30px 26px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.recipes_login_content h2 {
    margin: 0;
    font-size: 34px;
    color: #5e3511;
}

.recipes_noodle_wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(186, 122, 55, 0.35);
    padding: 10px;
}

.recipes_noodle_animation {
    width: min(280px, 100%);
    height: auto;
    display: block;
}

.recipes_login_prompt {
    margin: 0;
    color: #6f4420;
    font-size: 17px;
}

.recipes_login_form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.recipes_password_input {
    min-width: 0;
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(120, 72, 27, 0.45);
    padding: 11px 13px;
    font-size: 16px;
    color: #49290f;
    background: #fffaf1;
}

.recipes_password_input:focus {
    outline: 2px solid rgba(130, 84, 40, 0.28);
    border-color: #8c5b2f;
}

.recipes_login_button {
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #b06a2f, #8f4a17);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 11px 16px;
    cursor: pointer;
}

.recipes_login_button:hover,
.recipes_login_button:focus-visible {
    filter: brightness(1.06);
}

.recipes_login_button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.recipes_login_feedback {
    margin: 2px 0 0;
    min-height: 22px;
    font-size: 14px;
    color: #603913;
}

.recipes_login_feedback.is_error {
    color: #8a1d1d;
}

.recipes_login_feedback.is_success {
    color: #1b5f1f;
}

/* Perudo Window */
#perudo-window .window_content {
    background: linear-gradient(145deg, #f7f9ff 0%, #ecf2ff 45%, #e5eeff 100%);
}

.perudo_content {
    position: relative;
    padding: 28px;
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 460px;
}

.perudo_status_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.perudo_status_item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #cbd8ff;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.perudo_status_label {
    font-size: 12px;
    color: #5870ad;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.perudo_status_value {
    color: #1f2f57;
    font-weight: 600;
}

.perudo_panel {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #c3d3ff;
    border-radius: 12px;
    padding: 14px 16px;
}

.perudo_panel h2 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #1f2f57;
}

.perudo_dice_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.perudo_die {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #9bb5ff;
    box-shadow: 0 2px 6px rgba(61, 90, 180, 0.2);
    color: #243866;
    font-weight: 700;
    font-size: 18px;
}

.perudo_die_placeholder {
    font-size: 14px;
    color: #5e6f97;
}

.perudo_palifico {
    margin: 0;
    padding: 10px 12px;
    background: #fff5d9;
    border: 1px solid #f4d16a;
    border-radius: 8px;
    color: #8d6c1f;
    font-size: 14px;
    font-weight: 600;
}

.perudo_controls {
    display: grid;
    grid-template-columns: auto minmax(72px, 110px) auto minmax(72px, 110px) auto auto;
    align-items: center;
    gap: 10px;
}

.perudo_controls label {
    font-size: 13px;
    color: #40558d;
    font-weight: 600;
}

.perudo_select {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #9fb7f8;
    background: #ffffff;
    color: #1f2f57;
}

.perudo_select:focus {
    outline: none;
    border-color: #6f91ed;
    box-shadow: 0 0 0 2px rgba(111, 145, 237, 0.2);
}

.perudo_actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.perudo_button {
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #5f7dde 0%, #4664c5 100%);
}

.perudo_button:hover {
    filter: brightness(1.05);
}

.perudo_button:active {
    transform: translateY(1px);
}

.perudo_button_secondary {
    background: linear-gradient(135deg, #9caed9 0%, #7b8fc2 100%);
}

.perudo_button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.perudo_help {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #bfcefa;
    border-radius: 10px;
    padding: 12px 14px;
}

.perudo_help p {
    margin: 0 0 8px 0;
    color: #334b7e;
    font-size: 14px;
    line-height: 1.45;
}

.perudo_help p:last-child {
    margin-bottom: 0;
}

.perudo_status_message {
    margin: 0;
    font-size: 14px;
    color: #2c4578;
    font-weight: 600;
}

.perudo_status_error {
    color: #b33c3c;
}

.perudo_reveal_overlay {
    position: absolute;
    inset: 0;
    background: rgba(24, 35, 66, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 20;
}

.perudo_reveal_card {
    width: min(460px, 100%);
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.perudo_reveal_card h3 {
    margin: 0 0 10px 0;
    color: #253b70;
}

.perudo_reveal_card p {
    color: #2f477e;
    line-height: 1.45;
}

.perudo_reveal_dice {
    margin-bottom: 14px;
    font-variant-numeric: tabular-nums;
}

/* DanBot Chat Widget */
.chat_content {
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.chat_content h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 700;
}

.chat_messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #fff5f7;
    border: 1px solid #f8d7dd;
    border-radius: 12px;
    margin-bottom: 16px;
    min-height: 200px;
    max-height: 300px;
}

.chat_message {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    line-height: 1.5;
}

.chat_message:last-child {
    margin-bottom: 0;
}

.chat_message_user {
    background: #fce4ec;
    margin-left: 20%;
    text-align: right;
}

.chat_message_bot {
    background: #fff0f3;
    margin-right: 20%;
}

.chat_label {
    font-weight: 600;
    color: #d4768e;
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.chat_text {
    color: #333;
    font-size: 15px;
}

.chat_message_typing .chat_text {
    color: #888;
    font-style: italic;
}

.chat_input_form {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
}

.chat_input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #f5c6d0;
    border-radius: 10px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chat_input:focus {
    outline: none;
    border-color: #e8a0b0;
    box-shadow: 0 0 0 3px rgba(245, 198, 208, 0.3);
}

.chat_input::placeholder {
    color: #aaa;
}

.chat_char_count {
    position: absolute;
    right: 90px;
    font-size: 12px;
    color: #aaa;
}

.chat_char_count.warning {
    color: #e57373;
}

.chat_send_btn {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #f8bbd9 0%, #f48fb1 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
}

.chat_send_btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 143, 177, 0.4);
}

.chat_send_btn:active {
    transform: translateY(0);
}

.chat_send_btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.chat_disclaimer {
    margin-top: 12px;
    font-size: 12px;
    color: #888;
    text-align: center;
    font-style: italic;
}

.chat_error {
    color: #e57373;
    background: #ffebee;
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 14px;
}

.visually_hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    #map-window .window_content {
        height: 450px;
        max-height: 450px;
    }

    .perudo_content {
        padding: 16px;
        min-height: 420px;
    }

    .perudo_controls {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }

    .perudo_controls label {
        align-self: center;
    }

    .perudo_button {
        width: 100%;
    }

    .map-filter-bar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 12px;
    }

    .filter-group select {
        min-width: 80px;
    }

    .map-stats-panel {
        bottom: 8px;
        right: 8px;
        padding: 8px 10px;
        min-width: 100px;
    }

    .stats-header {
        font-size: 11px;
    }

    .stat-row {
        font-size: 12px;
    }

    .map-marker-x {
        font-size: 16px;
    }
}

/* macOS Dock */
.dock {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 8px 16px;
    display: flex;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

.dock_item {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.dock_item:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.dock_item.active::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.dock_icon {
    font-size: 32px;
}

.dock_icon_recipes {
    width: 34px;
    height: 34px;
    background-image: url('/assets/recipes-icon.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    font-size: 0;
}

.dock_separator {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 4px;
}

/* Dock drag and drop */
.dock_item[draggable="true"] {
    cursor: pointer;
}

.dock_item[draggable="true"]:active {
    cursor: grabbing;
}

.dock_item.dragging {
    opacity: 0.4;
    transform: scale(1.1);
}

.dock_item.drag-over {
    transform: scale(0.9);
    border: 2px dashed rgba(255, 255, 255, 0.6);
    border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .safari_window {
        width: 95vw;
    }

    .about_container {
        flex-direction: column;
        padding: 20px;
    }

    .profile_image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
    }

    .about_text h1 {
        font-size: 28px;
    }

    .contact_section,
    .links_content {
        padding: 30px 20px;
    }

    .links_content h2 {
        font-size: 32px;
    }

    .link_card {
        padding: 16px 18px;
    }

    .link_icon {
        font-size: 28px;
        margin-right: 16px;
    }

    .link_name {
        font-size: 16px;
    }

    .music_directory {
        gap: 10px;
    }

    .music_nav_item {
        padding: 14px 16px;
    }

    .music_nav_title {
        font-size: 15px;
    }

    .candid_hero_image {
        border-radius: 12px;
        border-width: 2px;
        margin: 24px auto;
    }

    .candid_video {
        border-radius: 12px;
        border-width: 2px;
    }

    .candid_video_section {
        margin-top: 48px;
        padding-top: 32px;
    }

    .candid_video_section h3 {
        font-size: 22px;
    }

    .music_content {
        padding: 32px 20px;
    }

    .music_content h2 {
        font-size: 32px;
    }

    .music_description {
        padding: 20px;
    }

    .candid_track h3 {
        font-size: 24px;
    }

    .art_content {
        padding: 32px 20px;
    }

    .art_content h2 {
        font-size: 32px;
    }

    .art_directory {
        gap: 10px;
    }

    .art_nav_item {
        padding: 14px 16px;
    }

    .art_nav_title {
        font-size: 15px;
    }

    .art_image {
        border-radius: 12px;
        border-width: 2px;
        max-width: 100%;
    }

    .writings_content {
        padding: 32px 20px;
    }

    .writings_content h2 {
        font-size: 32px;
    }

    .writings_directory {
        gap: 10px;
    }

    .writings_nav_item {
        padding: 14px 16px;
    }

    .writings_nav_title {
        font-size: 15px;
    }

    .writings_description {
        padding: 20px;
    }

    .writings_hero_image {
        max-width: 100%;
        border-radius: 12px;
        border-width: 2px;
        margin: 24px auto;
    }

    .writings_download_btn {
        padding: 14px 28px;
        font-size: 15px;
    }

    .photos_content {
        padding: 32px 20px;
    }

    .photos_content h2 {
        font-size: 32px;
    }

    .photos_directory {
        gap: 10px;
    }

    .photos_nav_item {
        padding: 14px 16px;
    }

    .photos_nav_title {
        font-size: 15px;
    }

    .photos_description {
        padding: 20px;
    }

    .search_content {
        padding: 32px 20px;
    }

    .search_content h2 {
        font-size: 32px;
    }

    .search_input {
        font-size: 16px;
    }

    .chat_content {
        padding: 24px 16px;
    }

    .chat_content h2 {
        font-size: 26px;
    }

    .chat_messages {
        min-height: 150px;
        max-height: 220px;
    }

    .chat_message_user {
        margin-left: 10%;
    }

    .chat_message_bot {
        margin-right: 10%;
    }

    .chat_input {
        font-size: 15px;
        padding: 12px 14px;
    }

    .chat_char_count {
        display: none;
    }

    .chat_send_btn {
        padding: 12px 18px;
        font-size: 15px;
        padding: 16px 50px 16px 20px;
    }

    .recipes_login_content {
        padding: 24px 14px;
    }

    .recipes_login_content h2 {
        font-size: 28px;
    }

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

    .dock {
        bottom: 4px;
        padding: 6px 12px;
        left: 8px;
        right: 8px;
        transform: none;
        max-width: calc(100vw - 16px);
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    .dock::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .dock_item {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .dock_separator {
        flex-shrink: 0;
    }

    .dock_icon {
        font-size: 28px;
    }
}
