@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
/* Fallback/Optional, mainly using system Helvetica */

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --section-heading-color: #000000;
    --toggle-inactive: #999999;
    --pdf-placeholder-bg: #555555;
    --pdf-placeholder-text: #ffffff;
    --header-scrolled-bg: #fcfcfc;
    --header-shadow: rgba(0, 0, 0, 0.02);
    --pdf-nav-bg: #f2f2f2;
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
    --bg-color: #111111;
    --text-color: #e0e0e0;
    --section-heading-color: #ffffff;
    --toggle-inactive: #666666;
    --pdf-placeholder-bg: #222222;
    --pdf-placeholder-text: #aaaaaa;
    --header-scrolled-bg: #1a1a1a;
    --header-shadow: rgba(255, 255, 255, 0.02);
    --pdf-nav-bg: #222222;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header */
header {
    background-color: var(--bg-color);
    padding: 20px 0;
    width: 100%;
    position: relative;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background-color: var(--header-scrolled-bg);
    box-shadow: 0 1px 0px var(--header-shadow);
    /* padding removed to prevent jump */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    /* Center the logo */
    align-items: center;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-color);
    letter-spacing: 0px;
    border-bottom: 2px solid transparent;
}

.header-theme-btn {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--toggle-inactive);
    transition: color 0.2s;
    padding: 5px;
}

.header-theme-btn:hover {
    color: var(--text-color);
}

.header-nav-link {
    position: absolute;
    left: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--toggle-inactive);
    transition: color 0.2s;
    letter-spacing: 1px;
}

.header-nav-link:hover {
    color: var(--text-color);
}


/* ... skipped unmodified parts ... */

.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    color: var(--toggle-inactive);
    padding: 0;
    transition: color 0.2s;
}

/* ... skipped unmodified parts ... */
.pdf-placeholder {
    width: 100%;
    max-width: 727px;
    min-height: 500px;
    background-color: var(--pdf-placeholder-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--pdf-placeholder-text);
    margin-bottom: 120px;
    border: 1px dashed var(--toggle-inactive);
}

.pdf-viewer {
    width: 100%;
    outline: none;
}

.pdf-canvas-wrap {
    position: relative;
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.pdf-canvas {
    width: 100%;
    height: auto;
    display: block;
}

.pdf-outer-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 85%;
    margin: 0 auto;
}

.pdf-nav-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 6px 0;
}

.pdf-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 11px;
    padding: 8px 0;
    transition: opacity 0.15s;
    font-family: var(--font-primary);
    line-height: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.4;
}

.pdf-nav-btn:hover:not(:disabled) {
    opacity: 0.8;
}

.pdf-nav-btn:disabled {
    opacity: 0.15;
    cursor: default;
}

.pdf-fullscreen-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    padding: 12px 14px;
    z-index: 2;
    transition: background 0.15s;
    font-family: var(--font-primary);
    line-height: 1;
}

.pdf-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Fullscreen mode */
.pdf-outer-wrap:fullscreen {
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.pdf-outer-wrap:fullscreen .pdf-canvas-wrap {
    flex: 0 1 auto;
    width: auto;
}

.pdf-outer-wrap:fullscreen .pdf-canvas {
    width: auto;
    max-width: 100vw;
}

.pdf-outer-wrap:fullscreen .pdf-nav-row .pdf-nav-btn {
    color: #fff;
    opacity: 0.4;
}

.pdf-outer-wrap:fullscreen .pdf-nav-row .pdf-nav-btn:hover:not(:disabled) {
    opacity: 1;
}

.pdf-outer-wrap:fullscreen .pdf-page-info {
    bottom: 16px;
}

.pdf-page-info {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 8px;
    font-family: var(--font-primary);
    white-space: nowrap;
    pointer-events: none;
}

.pdf-canvas-right {
    display: none;
}

.pdf-canvas-wrap.spread-mode {
    display: flex;
    width: auto;
}

.pdf-arrow-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    animation: arrow-fade 0.4s ease-out forwards;
    z-index: 4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.pdf-arrow-left { left: 20px; }
.pdf-arrow-right { right: 20px; }

@keyframes arrow-fade {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Pseudo-fullscreen (iPhone fallback) */
.pdf-outer-wrap.pseudo-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pdf-outer-wrap.pseudo-fullscreen .pdf-canvas-wrap {
    flex: 0 1 auto;
    width: auto;
}

.pdf-outer-wrap.pseudo-fullscreen .pdf-canvas {
    width: auto;
    max-width: 100vw;
}

.pdf-outer-wrap.pseudo-fullscreen .pdf-nav-row .pdf-nav-btn {
    color: #fff;
    opacity: 0.4;
}

.pdf-outer-wrap.pseudo-fullscreen .pdf-nav-row .pdf-nav-btn:hover:not(:disabled) {
    opacity: 1;
}

.pdf-outer-wrap.pseudo-fullscreen .pdf-page-info {
    bottom: 16px;
}

/* Onboarding hint */
.pdf-hint-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: opacity 300ms ease;
    cursor: pointer;
}

.pdf-hint-text {
    color: #fff;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    line-height: 2.2;
}

/* Empty/error state */
.pdf-empty {
    font-size: 13px;
    color: var(--toggle-inactive);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 40px 20px;
}

/* Main Container */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Magazine Section */
/* Magazine Section */
.magazine-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 80px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* Archive List Styles */
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
}

.archive-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.archive-year {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

.archive-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    transition: opacity 0.2s;
}

.archive-link:hover {
    opacity: 0.6;
}

main.archive-main {
    justify-content: flex-start;
}

/* Emerge Heading Structure */
.section-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.section-heading {
    font-size: 56px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Toggle Switch - Styled to look like the 'ENGLISH' / 'SHQIP' labels */
.language-toggle {
    margin: 10px 0 40px;
    display: flex;
    gap: 10px;
    /* Closer gap */
    font-size: 16px;
    text-transform: uppercase;
}

.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    color: #999;
    padding: 0;
    transition: color 0.2s;
}

.toggle-btn.active {
    color: var(--text-color);
    font-weight: 400;
    /* No border bottom on the toggle text itself in this style, it just needs to be black */
}

.toggle-btn:hover {
    color: var(--text-color);
}

.divider {
    color: #ccc;
    font-weight: 300;
}

/* Content Sections */
.content-section {
    width: 100%;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    align-items: center;
}

.content-section.active {
    display: flex;
}

/* PDF Placeholder */
.pdf-open-link {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--pdf-placeholder-text);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    white-space: nowrap;
}

.pdf-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.upload-note {
    font-size: 13px;
    margin-top: 10px;
    font-family: monospace;
    color: #ddd;
    text-align: center;
    padding: 0 20px;
}

/* About Section */
.about-section {
    margin-top: 40px;
    text-align: center;
    max-width: 500px;
    /* Constrained width for the text block */
}

.collective-logo {
    display: block;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.collective-text {
    font-size: 12px;
    /* Small disclaimer-like text */
    line-height: 1.5;
    font-weight: 400;
    color: var(--text-color);
    /* Updated to variable */
    margin-bottom: 40px;
}

/* Contact Form */
.contact-wrapper {
    max-width: 500px;
    width: 100%;
    text-align: left;
}

.contact-intro {
    text-align: center;
    font-size: 14px;
    color: var(--toggle-inactive);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-field {
    margin-bottom: 24px;
}

.contact-field label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--toggle-inactive);
    margin-bottom: 8px;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid var(--toggle-inactive);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 8px 0;
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-bottom-color: var(--text-color);
}

.contact-field textarea {
    min-height: 100px;
}

.contact-submit-btn {
    display: inline-block;
    margin-top: 16px;
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 32px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.contact-submit-btn:hover {
    opacity: 0.8;
}

.contact-submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.contact-status {
    margin-top: 16px;
    font-size: 13px;
    min-height: 20px;
}

.contact-status.success {
    color: #4caf80;
}

.contact-status.error {
    color: #e05555;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* Footer */
footer {
    padding-bottom: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    color: var(--text-color);
    /* Updated to variable */
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-icon:hover {
    opacity: 1;
}

.footer-link {
    /* General class for footer text links */
    font-size: 11px;
    color: var(--toggle-inactive);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.footer-link:hover {
    color: var(--text-color);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-divider {
    color: var(--toggle-inactive);
    font-size: 11px;
    user-select: none;
}

/* Simple SVG Icon for Instagram */
.icon-instagram {
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-instagram::before {
    content: '';
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.icon-instagram::after {
    content: '';
    width: 2px;
    height: 2px;
    background: currentColor;
    position: absolute;
    top: 2px;
    right: 2px;
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        padding-left: 0;
        padding-right: 0;
    }

    .magazine-title {
        font-size: 42px;
    }

    .section-heading {
        font-size: 36px;
    }

    .pdf-placeholder {
        max-width: 100%;
        min-height: 200px;
        margin-bottom: 60px;
    }

    .about-section,
    .language-toggle {
        padding-left: 20px;
        padding-right: 20px;
    }
}