/* Ghost Notes Client Styles */

:root {
    --primary-color: #15171A;
    --secondary-color: #738A94;
    --accent-color: #3A4145;
    --success-color: #30CF43;
    --warning-color: #F39C12;
    --error-color: #E25440;
    --background-color: #FFFFFF;
    --card-background: #FCFCFC;
    --border-color: #E1E8ED;
    --border-radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading, Error, No Data States */
.loading, .error, .no-data {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.loading {
    background-color: var(--card-background);
    color: var(--secondary-color);
}

.error {
    background-color: #FEF2F2;
    color: var(--error-color);
    border: 1px solid #FECACA;
}

.no-data {
    background-color: var(--card-background);
    color: var(--secondary-color);
}

/* Ghost Notes Container */
.ghost-notes-container {
    max-width: 100%;
}



/* Notes List */
.notes-list h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Individual Note */
.note {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.note:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
    font-size:15px;
    color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
}

.note-author {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.note-author:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.note-content {
    margin-bottom: 20px;
    line-height: 1.7;
}

.note-content p {
    margin: 0 0 15px 0;
}

.note-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.note-content a:hover {
    text-decoration: underline;
}

.expand-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

.expand-btn:hover {
    background: var(--primary-color);
}

/* Engagement */
.note-engagement {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
}

.engagement-stats {
    display: flex;
    gap: 20px;
}

.engagement-item {
    font-size: 15px;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Images */
.note-images {
    margin-bottom: 20px;
}

.images-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-item {
    width: 100%;
}

.image-item img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    object-fit: cover;
}



/* Note Footer */
.note-footer {
    /* Footer styling handled by parent .note-engagement */
}

.note-link {
    color: var(--accent-color);
    text-decoration: none!important;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.note-link:hover {
    background: var(--accent-color);
    color: white;
    text-decoration: none;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--secondary-color);
    font-size: 15px;
    border-top: 1px solid var(--border-color);
    margin-top: 30px;
}



/* Responsive Design */
@media (max-width: 450px) {

    
    .container {
        padding: 0 0px;
    }
    

    
    .note {
        padding: 20px;
    }
    
    .note-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;

    }
    
    .note-engagement {
        gap: 15px;
        align-items: flex-end;
    }
    
    .engagement-stats {
        gap: 10px;
    }
    
    .images-grid {
        grid-template-columns: 1fr;
    }
}
