/* ========================================
   MEMORIES.OS - FILE EXPLORER
======================================== */

#memories-window .memories-content {

    display: flex;
    flex-direction: column;

    flex: 1;
    min-height: 0;

    padding: 0;

    background: #18181e;

    font-family: "Segoe UI", Arial, sans-serif;

    overflow: hidden;

}


/* ========================================
   NAVIGATION BAR
======================================== */

.memory-toolbar {

    display: flex;
    align-items: center;

    gap: 12px;

    min-height: 55px;

    padding: 0 18px;

    background: #202027;

    border-bottom: 1px solid rgba(255,255,255,0.06);

}


/* Back button */

.memory-back {

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: transparent;
    border: none;

    border-radius: 6px;

    color: #d6d3d5;

    cursor: pointer;

}

.memory-back svg {

    width: 19px;
    height: 19px;

}

.memory-back:hover:not(:disabled) {

    background: rgba(255,255,255,0.08);

}

.memory-back:disabled {

    opacity: 0.3;
    cursor: default;

}


/* ========================================
   ADDRESS BAR
======================================== */

.memory-path {

    display: flex;
    align-items: center;

    gap: 7px;

    flex: 1;
    min-width: 0;

    padding: 9px 12px;

    background: #292930;

    border: 1px solid rgba(255,255,255,0.07);

    border-radius: 6px;

    overflow-x: auto;
    scrollbar-width: none;

}

.memory-path::-webkit-scrollbar {
    display: none;
}

.memory-path button {

    background: transparent;
    border: none;

    color: #d6d3d5;

    font-family: "Segoe UI", sans-serif;
    font-size: 12px;

    white-space: nowrap;

    cursor: pointer;

}

.memory-path button:hover:not(:disabled) {

    color: #d6a0b1;

}

.memory-path button:disabled {

    color: #d6a0b1;
    cursor: default;

}

.memory-separator {

    color: #805365;
    font-size: 12px;

}


/* ========================================
   FOLDER HEADER
======================================== */

.memory-heading {

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 25px 25px 12px;

}

.memory-heading h2 {

    color: #e2dfe1;

    font-size: 20px;
    font-weight: 500;

}

.memory-heading span {

    color: #88818b;

    font-size: 12px;

    white-space: nowrap;

}


/* ========================================
   FOLDER GRID
======================================== */

.memory-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(120px, 1fr));

    align-content: start;

    gap: 14px;

    flex: 1;
    min-height: 0;

    padding: 15px 25px 25px;

    overflow-y: auto;

}


/* ========================================
   FOLDER ICON
======================================== */

.memory-folder {

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 12px;

    min-width: 0;

    padding: 18px 10px;

    background: transparent;

    border: 1px solid transparent;
    border-radius: 9px;

    color: #d6d3d5;

    font-family: "Segoe UI", sans-serif;
    font-size: 12px;

    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease;

}

.memory-folder:hover {

    background: rgba(199,125,149,0.10);

    border-color: rgba(199,125,149,0.18);

}

.memory-folder:focus-visible {

    outline: 2px solid #c77d95;
    outline-offset: 2px;

}

.memory-folder svg {

    width: 55px;
    height: 55px;

    transition: transform 0.2s ease;

}

.memory-folder:hover svg {

    transform: translateY(-3px);

}

.memory-folder-name {

    text-align: center;

    line-height: 1.4;

    overflow-wrap: anywhere;

}


/* ========================================
   EMPTY FOLDER
======================================== */

.memory-empty {

    grid-column: 1 / -1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 12px;

    min-height: 180px;

    color: #77727f;

    text-align: center;

    font-size: 13px;

}

.memory-empty svg {

    width: 55px;
    height: 55px;

    opacity: 0.35;

}


/* ========================================
   STATUS BAR
======================================== */

.memory-footer {

    display: flex;
    align-items: center;

    height: 30px;

    padding: 0 18px;

    flex-shrink: 0;

    background: #202027;

    border-top: 1px solid rgba(255,255,255,0.06);

    color: #88818b;

    font-size: 11px;

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    .memory-toolbar {
        padding: 0 10px;
    }

    .memory-heading {
        padding: 20px 15px 10px;
    }

    .memory-heading h2 {
        font-size: 17px;
    }

    .memory-grid {

        grid-template-columns:
            repeat(auto-fill, minmax(95px, 1fr));

        gap: 8px;

        padding: 10px 15px;

    }

    .memory-folder {
        padding: 12px 5px;
    }

}
/* ========================================
   MEMORY PHOTOS
======================================== */

.memory-photo {

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 12px;

    min-width: 0;

    padding: 12px 8px;

    background: transparent;

    border: 1px solid transparent;
    border-radius: 9px;

    color: #d6d3d5;

    font-family: "Segoe UI", sans-serif;
    font-size: 12px;

    cursor: pointer;

    transition: background 0.2s ease;

}

.memory-photo img {

    width: 100%;
    height: 90px;

    object-fit: cover;

    border-radius: 6px;

    background: #292930;

}

.memory-photo:hover {

    background: rgba(199,125,149,0.10);

}

.memory-photo:focus-visible {

    outline: 2px solid #c77d95;
    outline-offset: 2px;

}
/* ========================================
   MEMORIES.OS - PHOTOS VIEWER
======================================== */

#photo-window {

    width: min(92%, 860px);
    max-width: 860px;

    height: min(80%, 650px);
    max-height: 85%;

    background: #18181e;

}


/* Maximized window */

#photo-window.maximizada {

    width: auto;
    height: auto;

    max-width: none;
    max-height: none;

}


/* ========================================
   VIEWER CONTENT
======================================== */

.photo-viewer {

    display: flex;
    flex-direction: column;

    flex: 1;
    min-height: 0;

    background: #141419;

}


/* ========================================
   PHOTO STAGE
======================================== */

.photo-stage {

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 1;
    min-height: 0;

    padding: 25px 55px;

    overflow: hidden;

}


/* Actual image */

#photo-image {

    display: block;

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 3px;

    user-select: none;

}


/* ========================================
   NAVIGATION ARROWS
======================================== */

.photo-arrow {

    position: absolute;
    top: 50%;

    transform: translateY(-50%);

    width: 38px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.04);

    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;

    color: #d6d3d5;

    font-family: "Segoe UI", sans-serif;
    font-size: 32px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;

}

.photo-arrow:hover {

    background: rgba(199,125,149,0.16);

    color: #e8bac9;

}

.photo-arrow:disabled {

    opacity: 0.25;
    cursor: default;

}

.photo-prev {
    left: 10px;
}

.photo-next {
    right: 10px;
}


/* ========================================
   PHOTO FOOTER
======================================== */

.photo-footer {

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    height: 42px;

    padding: 0 20px;

    flex-shrink: 0;

    background: #202027;

    border-top: 1px solid rgba(255,255,255,0.06);

    color: #bdb9c0;

    font-family: "Segoe UI", sans-serif;
    font-size: 12px;

}

#photo-counter {

    color: #88818b;
    white-space: nowrap;

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    #photo-window {

        width: 95%;
        height: 70%;

    }

    .photo-stage {

        padding: 15px 35px;

    }

    .photo-arrow {

        width: 30px;
        height: 44px;

        font-size: 26px;

    }

    .photo-footer {

        padding: 0 12px;

    }

}