/* Custom styles for the cover layout */
body {
    /* REVERTED: Neutral background color for contrast */
    background-color: #f1f5f9; 
    font-family: 'Inter', sans-serif;
}
#magazine-cover {
    /* Mimics a physical magazine, centered on screen */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 1rem;
    max-width: 1200px; 
    padding: 2rem;
    width: 100%; 

}
/* Custom button style for the screenshot action */
.screenshot-button {
    padding: 0.75rem 1.5rem;
    background-color: #1e293b;
    color: white;
    font-weight: bold;
    border-radius: 0.5rem;
    /* FIX: REMOVED 'transition: transform 0.2s' to prevent html-to-image parsing errors */
}
.screenshot-button:hover {
    background-color: #3b82f6; /* archive-blue */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* --- Archive Sidebar Styling --- */
/* (This section is kept consistent with the main file, but removed from the live preview for brevity) */

/* Base style for the sidebar */
#archive-sidebar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%); /* Keeps it vertically centered */
    width: 3.5rem; /* Minimized width */
    height: 60vh;
    padding: 0.5rem 0;
    
    /* NEW STYLING */
    background-color: #3b82f6; /* archive-blue */
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
    
    /* Animation for expansion */
    transition: width 0.3s ease-in-out;
    
    /* Flex layout for content */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 1000;
}

/* Expanded state on hover */
#archive-sidebar:hover {
    width: 250px; /* Expanded width */
    padding: 1rem;
    align-items: flex-start; /* Align content to the left when expanded */
}

/* Header/Title styles */
#archive-header {
    margin-bottom: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 0.5rem;
}

#archive-header-icon {
    font-size: 1.5rem;
    color: white;
    margin-right: 0.5rem;
}

#archive-header-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Text color fallback when the container is dark */
#archive-sidebar:not(:hover) #archive-header-title {
    color: white;
}

/* Hide the list content initially */
#archive-list-content {
    opacity: 0;
    transition: opacity 0.2s ease-in-out 0.1s; /* Slight delay */
}

/* Show content on hover */
#archive-sidebar:hover #archive-list-content {
    opacity: 1;
}

/* Rotate the "ARCHIVO" text vertically when minimized */
#archive-minimized-label {
    writing-mode: vertical-lr; /* Vertical text */
    text-orientation: sideways;
    width: 100%;
    text-align: center;
    font-size: 1.125rem; /* text-xl */
    font-weight: 700; /* font-bold */
    color: white;
    /* Reverted: Removed specific padding rules */
}

/* Hide the full title when minimized */
#archive-full-title {
    display: none;
}

/* Show the full title when expanded */
#archive-sidebar:hover #archive-full-title {
    display: block;
}
 
/* Hide the vertical label when expanded */
#archive-sidebar:hover #archive-minimized-label {
    display: none;
}

/* List item styles */
.archive-item {
    padding: 0.25rem 0;
    width: 100%;
}
.archive-item a {
    color: #e5e7eb; /* Gray-200 */
    font-size: 0.875rem;
    text-decoration: none;
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}
.archive-item a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

/* In your CSS block */
.is-capturing #article-capture-target {
    /* We are narrowing the width to force text to scale UP in the canvas */
    width: 800px !important; 
    height: 1600px !important; /* Taller, like your manual crop */
    padding: 60px !important;
}

.is-capturing .main-img, 
.is-capturing .cover-container {
    /* Shrink the cover to 30% of the vertical space max */
    max-height: 400px !important; 
    width: auto !important;
    margin: 0 auto 30px auto !important;
}

.is-capturing .review-text, .is-capturing .answer {
    /* Force a larger base for the capture */
    font-size: 1.4rem !important; 
    line-height: 1.6 !important;
}



