/* Notes App Styling for Likes Page */

body {
    background-color: #1a1a1a;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.notes-app {
    height: 100%;
    overflow: hidden;
    position: fixed;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #1a1a1a;
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.notes-wrapper {
    display: flex;
    flex: 1;
    background-color: #000;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}

/* Sidebar Styles */
.notes-sidebar {
    width: 300px;
    background-color: #0a0a0a;
    border-right: 1px solid #222;
    overflow-y: auto;
    flex-shrink: 0;
    border-radius: 1rem 0 0 1rem;
}

.sidebar-header {
    display: none;
}

.sidebar-back-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #ffa500;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-family: inherit;
}

.sidebar-back-btn svg {
    stroke: #ffa500;
}

.sidebar-section {
    padding: 1rem 0;
}

.section-header {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pin-icon {
    font-size: 0.9rem;
}

.note-item {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border-left: 3px solid transparent;
}

.note-link {
    text-decoration: none;
    display: block;
}

.note-item:hover {
    background-color: #222;
}

.note-item.active {
    background-color: #2a2a2a;
    border-left-color: #666;
}

.note-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.favorite-star {
    font-size: 0.85rem;
}

.note-preview {
    font-size: 0.85rem;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Main Content Area */
.notes-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #000;
    border-radius: 0 1rem 1rem 0;
}

/* Mobile Back Button */
.mobile-back-button {
    display: none;
    padding: 1rem 1.5rem;
    background-color: #000;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #ffa500;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.back-link:active,
.back-link:focus {
    outline: none;
    background: transparent;
}

.back-link svg {
    stroke: #ffa500;
}

.note-header {
    padding: 1.5rem 3rem 1rem;
}

.note-timestamp {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

.note-body {
    flex: 1;
    padding: 2rem 3rem 3rem;
    overflow-y: auto;
}

.note-main-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
}

/* Mary Oliver Quote Styling */
.mary-oliver-quote {
    margin-bottom: 3rem;
}

.quote-title {
    font-style: italic;
    margin-bottom: 0.5rem;
    color: #EBFFC1;
    font-size: 1rem;
}

.quote-item {
    margin: 0.5rem 0;
    font-style: italic;
}

.checkmark {
    color: #fff;
    font-size: 0.9rem;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-color: #ffa500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.quote-text {
    color: #EBFFC1;
    font-size: 1rem;
}

.quote-author {
    margin-top: 1rem;
    color: #aaa;
    font-size: 0.95rem;
    padding-left: 2rem;
}

/* Additional Quote */
.additional-quote {
    margin-bottom: 2rem;
}

.additional-quote p {
    color: #F7C4A5;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.6;
}

/* Personal Note */
.personal-note {
    margin-bottom: 0.5rem;
}

.personal-note p {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Likes List */
.likes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.likes-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.5;
}

.likes-list li:before {
    content: "–";
    position: absolute;
    left: 0;
    color: #888;
}

/* Bottom Navigation - Match other pages */
.notes-navbar {
    position: relative;
    background-color: rgba(26, 26, 26, 0.95);
    padding: 1rem 1.5rem;
    z-index: 1000;
    margin: 0 -1.5rem;
}

.notes-navbar .nav-content {
    padding: 0 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notes-navbar .site-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.2rem;
}

.notes-navbar .site-title a {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    text-decoration: none;
    color: white;
    transition: color 0.2s;
}

.notes-navbar .site-title a:hover,
.notes-navbar .site-title a.active {
    color: #fC3323;
}

.notes-navbar .menu-trigger {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    gap: 0.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.notes-navbar .menu-trigger:hover,
.notes-navbar .menu-trigger.active {
    color: #fC3323;
}

.notes-navbar .menu-trigger span {
    font-size: 1.2rem;
    font-weight: 400;
}

.notes-navbar .menu-popup {
    position: absolute;
    right: 1.5rem;
    bottom: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    padding: 1rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 30;
    max-height: 80vh;
    overflow-y: auto;
}

.notes-navbar .menu-popup.hidden {
    display: none !important;
}

.notes-navbar .menu-popup a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 1rem;
    line-height: 1.2;
}

.notes-navbar .menu-popup a:hover {
    color: #fC3323;
}

/* Custom Notes App Popup */
.notes-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.notes-popup-overlay.hidden {
    display: none;
}

.notes-popup-content {
    background-color: rgba(26, 26, 26, 0.75);
    border: 1px solid #333;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    backdrop-filter: blur(10px);
}

.notes-popup-content h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.notes-popup-content p {
    color: #aaa;
    font-size: 1rem;
    margin: 0 0 2rem 0;
    line-height: 1.5;
}

.notes-popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.notes-btn {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-weight: 500;
}

.notes-btn-cancel {
    background-color: #333;
    color: #ffffff;
}

.notes-btn-cancel:hover {
    background-color: #444;
}

.notes-btn-open {
    background-color: #ffa500;
    color: #000;
}

.notes-btn-open:hover {
    background-color: #ff8c00;
}

/* Scrollbar Styling */
.notes-sidebar::-webkit-scrollbar,
.note-body::-webkit-scrollbar {
    width: 8px;
}

.notes-sidebar::-webkit-scrollbar-track,
.note-body::-webkit-scrollbar-track {
    background: transparent;
}

.notes-sidebar::-webkit-scrollbar-thumb,
.note-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.notes-sidebar::-webkit-scrollbar-thumb:hover,
.note-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notes-app {
        padding: 1rem 1rem 0 1rem;
    }

    .notes-sidebar {
        width: 250px;
    }

    .note-body {
        padding: 1.5rem 2rem 2rem;
    }

    .note-main-title {
        font-size: 1.5rem;
    }

    .notes-navbar {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .notes-app {
        padding: 1rem 1rem 0 1rem;
    }

    .notes-wrapper {
        border-radius: 1rem;
        margin-bottom: 0;
    }

    .notes-sidebar {
        display: none;
        position: fixed;
        top: 1rem;
        left: 1rem;
        right: 1rem;
        height: calc(100vh - 100px);
        z-index: 1000;
        background-color: #000;
        border-radius: 1rem;
        border-right: none;
        padding: 0;
        padding-top: 1rem;
        overflow-y: auto;
    }

    .notes-sidebar.mobile-show {
        display: block;
    }

    .sidebar-header {
        display: none;
    }

    .section-header {
        font-size: 1.5rem;
        padding: 1rem 1.5rem;
        color: #fff;
        text-transform: none;
        font-weight: 700;
    }

    .sidebar-section:first-child .section-header {
        display: none;
    }

    .sidebar-section {
        padding: 0;
    }

    .note-item {
        background-color: transparent;
        margin: 0;
        border-left: none;
        border-bottom: none;
        padding: 1rem 1.5rem;
        display: block;
        width: 100%;
        position: relative;
    }

    .note-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background-color: #222;
    }

    .note-item:last-child::after {
        display: none;
    }

    .note-item.active {
        background-color: transparent;
        border-left: none;
    }

    .note-item:hover {
        background-color: #1a1a1a;
    }

    .note-link {
        display: block;
        width: 100%;
    }

    .notes-content {
        width: 100%;
        border-radius: 1rem;
    }

    .notes-content.mobile-hide {
        display: none;
    }

    .mobile-back-button {
        display: block;
    }

    .note-header {
        padding: 0 1.5rem 1rem;
    }

    .note-body {
        padding: 1rem 1.5rem 2rem;
    }

    .notes-navbar {
        padding: 1rem 1.5rem;
        margin: 0 -1rem;
    }

    .notes-navbar .nav-content {
        padding: 0;
    }

    .notes-navbar .site-logo {
        height: 24px;
    }
}
