/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASE */
body {
    background-color: #0b0f14; /* tamno plava / crna */
    color: #d1d5db;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
header {
    padding: 30px 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

header h1 {
    font-family: "Pristina", "Palatino Linotype", "Georgia", serif;
    font-size: 8.2rem;
    font-weight: normal;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-align: center;
    line-height: 1.1;
}

/* MAIN */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* VIEWER */
.viewer {
    width: 80%;
    height: 80%;
    background-color: #111827;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* FOOTER */
footer {
    position: fixed;
    bottom: 15px;
    right: 20px;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* ARTICLE PREVIEW */
.article-preview {
    width: 420px;              
    height: 120px;             
    background-color: #111827;
    border: 1px solid #1f2933;
    border-radius: 14px;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
    transition: background-color 0.25s ease,
                box-shadow 0.25s ease,
                transform 0.2s ease;
}

.article-preview span {
    color: #e5e7eb;
    font-family: "Pristina", "Palatino Linotype", "Georgia", serif;
    font-size: 2.6rem;         
    letter-spacing: 1.2px;
}

.article-preview:hover {
    background-color: #020617;
    box-shadow: 0 0 22px rgba(255,255,255,0.1);
    transform: scale(1.03);
}

/* CONTACT TOGGLE */
.contact-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
}

.contact-btn:hover {
    color: #ffffff;
}

.contact-email {
    margin-left: 10px;
    color: #d1d5db;
    font-size: 0.85rem;
    display: none;
}

/* OVERLAY PDF VIEWER */
.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(2, 6, 23, 0.96);
    display: none;
    z-index: 1000;
}

.overlay iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.hint {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: #9ca3af;
    background-color: rgba(2, 6, 23, 0.7);
    padding: 6px 12px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}