/* ===================== ABOUT PAGE ===================== */

.about-main {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Bio */
.about-bio {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.about-bio-text {
    flex: 1;
}

.about-bio-text h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #eeeeee;
}

.about-bio-text p {
    color: #aaaaaa;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.redacted {
    background: #eeeeee;
    color: #eeeeee;
    border-radius: 2px;
    user-select: none;
}

.about-bio-photo {
    flex-shrink: 0;
}

.about-bio-photo img {
    width: 160px;
    height: auto;
    border-radius: 0;
    border: none;
    transform: rotate(-3deg);
}

/* Folder icons */
.about-folders {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.folder-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaaaaa;
    transition: color 0.2s;
    padding: 0;
}

.folder-icon:hover,
.folder-icon.active {
    color: #00adb5;
}

.folder-shape {
    position: relative;
    width: 72px;
    height: 60px;
}

.folder-tab {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 10px;
    background: currentColor;
    border-radius: 4px 4px 0 0;
    opacity: 0.7;
}

.folder-body {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    bottom: 0;
    background: currentColor;
    border-radius: 0 4px 4px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-body svg {
    stroke: #1e1e1e;
    width: 28px;
    height: 28px;
}

.folder-icon.active .folder-body svg {
    stroke: #1e1e1e;
}

.folder-label {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.8rem;
}

/* Terminal panels */
.about-terminal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 820px;
    max-height: 80vh;
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    z-index: 100;
    flex-direction: column;
}

.about-terminal.open {
    display: flex;
}

.about-terminal .terminal-body {
    overflow-y: auto;
    flex: 1;
}

.about-terminal .terminal-header {
    background: #2d2d2d;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #3c3c3c;
}

.terminal-close {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

.about-backdrop.open {
    display: block;
}

.close-btn {
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    line-height: 14px;
    color: #1e1e1e;
    font-style: normal;
}

.dot.red   { background: #ff5f57; border-radius: 50%; width: 14px; height: 14px; display: inline-block; }
.dot.yellow{ background: #febc2e; border-radius: 50%; width: 14px; height: 14px; display: inline-block; }
.dot.green { background: #28c840; border-radius: 50%; width: 14px; height: 14px; display: inline-block; }

.about-terminal .window-title {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.8rem;
    color: #858585;
    margin-left: auto;
    margin-right: auto;
}

.about-terminal .terminal-body {
    padding: 1.5rem;
}

/* Media grid (books + movies) */
.media-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.media-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.media-cover {
    flex-shrink: 0;
    width: 70px;
}

.media-cover img {
    width: 70px;
    height: auto;
    border-radius: 4px;
    display: block;
}

.media-cover-placeholder {
    width: 70px;
    height: 105px;
    background: #2d2d2d;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3c3c3c;
    font-size: 2rem;
}

.media-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.media-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: #eeeeee;
}

.media-sub {
    font-size: 0.8rem;
    color: #aaaaaa;
}

.media-rating {
    font-size: 0.85rem;
    color: #FFD700;
    letter-spacing: 2px;
}

.media-review {
    font-size: 0.8rem;
    color: #aaaaaa;
    line-height: 1.5;
    margin-top: 0.25rem;
}

.no-review {
    color: #444444;
    font-style: italic;
    font-family: 'Consolas', 'Courier New', monospace;
}

.pane-empty {
    color: #444444;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
    font-style: italic;
}

/* Photography grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.photo-thumb {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 1;
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.photo-thumb:hover img {
    opacity: 0.8;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox.open {
    display: flex;
}

.lightbox-inner {
    background: #1e1e1e;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    padding: 1.5rem;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #aaaaaa;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover { color: #eeeeee; }

.lightbox-title {
    font-size: 1rem;
    color: #eeeeee;
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.lightbox-img {
    width: 100%;
    height: auto;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    flex-shrink: 1;
    min-height: 0;
}

.lightbox-desc {
    color: #aaaaaa;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.lightbox-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.lightbox-prev,
.lightbox-next {
    background: #2d2d2d;
    border: 1px solid #3c3c3c;
    color: #d4d4d4;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #00adb5;
    color: #1e1e1e;
    border-color: #00adb5;
}

.dnf-label {
    color: #ff5f57;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* -- Top Five Books -- */
.top-books-section {
    padding: 0 0 4rem;
}

.top-books-heading {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #aaaaaa;
    margin-bottom: 1.5rem;
    font-weight: normal;
}

.bookshelf {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.book-card {
    background: transparent;
    width: 110px;
    height: 165px;
    perspective: 1000px;
    cursor: default;
}

.book-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.book-card:hover .book-inner {
    transform: rotateY(180deg);
}

.book-front,
.book-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 4px;
    overflow: hidden;
}

.book-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-back {
    background: #2d2d2d;
    border: 1px solid #00adb5;
    transform: rotateY(180deg);
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.book-back-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #00adb5;
    margin: 0;
}

.book-back-author {
    font-size: 0.7rem;
    color: #aaaaaa;
    margin: 0;
}

.book-back-stars {
    color: #FFD700;
    font-size: 0.8rem;
    margin: 0;
}

.book-back-blurb {
    font-size: 0.65rem;
    color: #eeeeee;
    line-height: 1.4;
    margin: 0;
}

/* Custom scrollbar */
.about-terminal .terminal-body::-webkit-scrollbar {
    width: 6px;
}

.about-terminal .terminal-body::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.about-terminal .terminal-body::-webkit-scrollbar-thumb {
    background: #3c3c3c;
    border-radius: 3px;
}

.about-terminal .terminal-body::-webkit-scrollbar-thumb:hover {
    background: #00adb5;
}

/* Firefox */
.about-terminal .terminal-body {
    scrollbar-width: thin;
    scrollbar-color: #3c3c3c #1e1e1e;
}

/* Mobile */
@media (max-width: 600px) {
    .about-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-bio-photo img {
        width: 140px;
        height: auto;
        transform: rotate(-3deg);
    }

    .about-folders {
        justify-content: center;
        gap: 1.5rem;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}