/* Copland OS / Late 90s Mac Aesthetic */

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

body {
    font-family: 'Courier New', 'Monaco', monospace;
    background: linear-gradient(135deg, #001a33 0%, #003366 50%, #001a33 100%);
    color: #e0e0e0;
    overflow-x: hidden;
    min-height: 100vh;
}

.desktop {
    padding: 20px;
    min-height: 100vh;
    position: relative;
}

/* Window Styles */
.window {
    background: #000d1a;
    border: 2px solid #00ffcc;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 255, 204, 0.3);
    margin-bottom: 20px;
    position: relative;
}

.main-window {
    max-width: 900px;
    margin: 0 auto 30px;
}

.media-window {
    max-width: 400px;
    margin: 0 auto;
    min-height: 250px;
}

/* Title Bar */
.title-bar {
    background: linear-gradient(180deg, #00ccaa 0%, #0099aa 100%);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #00ffcc;
    border-radius: 6px 6px 0 0;
}

.title-bar-text {
    color: #000d1a;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.title-bar-controls {
    display: flex;
    gap: 6px;
}

.title-bar-controls button {
    width: 16px;
    height: 16px;
    background: #00ffcc;
    border: 1px solid #000d1a;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.title-bar-controls button:hover {
    background: #00ff99;
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.6);
}

/* Window Body */
.window-body {
    padding: 20px;
    background: #000d1a;
    border-radius: 0 0 6px 6px;
}

/* Essay Content */
.essay-content {
    line-height: 1.8;
    font-size: 15px;
}

.essay-content p {
    margin-bottom: 1.2em;
    color: #d0d0d0;
}

/* Special Text Styles */
.present-day {
    color: #00ffcc;
    font-size: 18px;
    text-align: center;
    margin: 20px 0 10px;
    animation: fadeIn 1s ease-in;
}

.present-time {
    color: #00ff99;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

/* Hyperlinks */
a {
    color: #00ffcc;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: #00ff99;
    border-bottom: 1px solid #00ff99;
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.8);
}

/* Endnotes */
.endnote {
    color: #ff6699;
    cursor: pointer;
    transition: all 0.2s;
}

.endnote:hover {
    color: #ff99cc;
    text-shadow: 0 0 8px rgba(255, 102, 153, 0.8);
}

.endnote sup {
    font-size: 0.7em;
}

/* Quotes */
.quote {
    color: #00ffcc;
    font-style: italic;
    text-align: center;
    padding: 20px;
    margin: 30px 0;
    border-left: 3px solid #00ffcc;
    border-right: 3px solid #00ffcc;
    background: rgba(0, 255, 204, 0.05);
}

.final-quote {
    font-size: 18px;
    margin-top: 40px;
    animation: glow 3s ease-in-out infinite;
}

/* Tao Te Ching Quote */
.tao-quote {
    background: rgba(0, 153, 170, 0.1);
    border: 2px solid #0099aa;
    border-radius: 6px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    color: #b0e0e6;
}

.tao-quote p {
    margin-bottom: 1.5em;
    line-height: 1.6;
}

.tao-quote .attribution {
    color: #00ffcc;
    font-style: italic;
    margin-top: 20px;
    font-size: 14px;
}

/* Media Placeholder */
.media-placeholder {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 26, 51, 0.5);
    border: 1px dashed #00ffcc;
    border-radius: 4px;
}

/* Status Bar */
.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #00ccaa 0%, #0099aa 100%);
    padding: 8px 20px;
    display: flex;
    gap: 30px;
    border-top: 2px solid #00ffcc;
    font-size: 13px;
    color: #000d1a;
    font-weight: bold;
    z-index: 1000;
}

.status-bar span {
    cursor: pointer;
    transition: all 0.2s;
}

.status-bar span:hover {
    color: #ffffff;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 8px rgba(0, 255, 204, 0.5);
    }
    50% {
        text-shadow: 0 0 16px rgba(0, 255, 204, 0.8);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #001a33;
}

::-webkit-scrollbar-thumb {
    background: #00ffcc;
    border-radius: 6px;
    border: 2px solid #001a33;
}

::-webkit-scrollbar-thumb:hover {
    background: #00ff99;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop {
        padding: 10px;
    }
    
    .main-window {
        max-width: 100%;
    }
    
    .window-body {
        padding: 15px;
    }
    
    .essay-content {
        font-size: 14px;
    }
    
    .status-bar {
        font-size: 11px;
        gap: 15px;
        padding: 6px 10px;
    }
}
