:root {
    --bg: #000000;
    --fg: #ffffff;
    --subtitle: #cccccc;
    --desc: #e0e0e0;
    --btn-bg: #1a1a1a;
    --btn-border: #333333;
    --btn-hover: #333333;
}


body {
    font-family: 'SUIT', sans-serif;
    background-color: var(--bg);
    color: var(--fg);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
}

#top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
    z-index: 100;
    pointer-events: none;
}

#visitor-counter {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background-color: var(--btn-bg);
    color: var(--fg);
    border-radius: 20px;
    padding: 0 0.9rem;
    height: 2.8rem;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.03em;
    white-space: nowrap;
    pointer-events: auto;
}

#visitor-icon {
    font-size: 0.9rem;
}

#visitor-count {
    font-size: 0.85rem;
}

#lang-buttons {
    display: flex;
    gap: 0.3rem;
    pointer-events: auto;
}

.lang-btn {
    background-color: var(--btn-bg);
    color: var(--fg);
    border: none;
    border-radius: 20px;
    padding: 0 0.7rem;
    height: 2.8rem;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.lang-btn:hover {
    opacity: 0.8;
}

.lang-btn.active {
    background-color: var(--fg);
    color: var(--bg);
}


.container {
    max-width: 600px;
    width: 90%;
    padding: 4rem 0 3rem;
}

.logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 1.2rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--subtitle);
    margin-bottom: 2rem;
}

.description p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--desc);
}

.links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    background-color: var(--btn-bg);
    color: var(--fg);
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s;
    border: 1px solid var(--btn-border);
}

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

.links-small {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.btn-small {
    background-color: var(--btn-bg);
    color: var(--fg);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    transition: background-color 0.3s;
    border: 1px solid var(--btn-border);
}

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

form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

input[type="email"] {
    padding: 0.75rem;
    border: 1px solid var(--btn-border);
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--btn-bg);
    color: var(--fg);
}

button[type="submit"] {
    background-color: #007BFF;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

.hidden {
    display: none;
}

#confirmation-message {
    margin-top: 1rem;
    color: #4CAF50;
    font-weight: bold;
}

.news-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--btn-border);
    text-align: left;
}

.news-section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.news-loading {
    color: var(--subtitle);
    font-size: 0.95rem;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feed-source-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.feed-source-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
}

.feed-source-link {
    font-size: 0.85rem;
    color: var(--subtitle);
    text-decoration: none;
}

.feed-source-link:hover {
    color: var(--fg);
}

.feed-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feed-item {
    padding: 0.75rem 1rem;
    border: 1px solid var(--btn-border);
    border-radius: 8px;
    background-color: var(--btn-bg);
    transition: background-color 0.2s;
}

.feed-item:hover {
    background-color: var(--btn-hover);
}

.feed-item-title {
    display: block;
    color: var(--fg);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.feed-item-desc {
    margin: 0;
    font-size: 0.85rem;
    color: var(--subtitle);
    line-height: 1.5;
}

.hero-welcome {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--subtitle);
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Mobile: collapse rest of hero text */
#hero-welcome-rest {
    display: none;
}

#hero-welcome-rest.expanded {
    display: inline;
}

.hero-welcome-toggle {
    display: block;
    margin-top: 0.9rem;
    background: none;
    border: 1px solid var(--btn-border);
    border-radius: 6px;
    color: var(--subtitle);
    font-size: 0.82rem;
    font-weight: bold;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.hero-welcome-toggle:hover {
    color: var(--fg);
    border-color: var(--fg);
}

.articles-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--btn-border);
    text-align: left;
}

.articles-title {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.articles-desc {
    font-size: 1rem;
    color: var(--subtitle);
    margin-bottom: 1.2rem;
}

.articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.articles-list a {
    display: block;
    color: var(--fg);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--btn-border);
    background-color: var(--btn-bg);
    transition: background-color 0.2s;
}

.articles-list a:hover {
    background-color: var(--btn-hover);
}

.articles-loading {
    list-style: none;
    font-size: 0.95rem;
    color: var(--subtitle);
    padding: 0.5rem 0;
}

.articles-more {
    margin-top: 0.8rem;
    text-align: right;
}

.articles-more-btn {
    display: inline-block;
    color: var(--subtitle);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    border: 1px solid var(--btn-border);
    background-color: var(--btn-bg);
    transition: background-color 0.2s, color 0.2s;
}

.articles-more-btn:hover {
    background-color: var(--btn-hover);
    color: var(--fg);
}

.instagram-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--btn-border);
    text-align: left;
}

.instagram-section-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.instagram-section-desc {
    font-size: 1rem;
    color: var(--subtitle);
    margin-bottom: 1.2rem;
}

.ig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    min-height: 80px;
}

.ig-thumb {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    background-color: var(--btn-bg);
    border: 1px solid var(--btn-border);
}

.ig-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s, transform 0.25s;
}

.ig-thumb:hover img {
    opacity: 0.82;
    transform: scale(1.04);
}

.ig-empty {
    color: var(--subtitle);
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem 1rem;
    border: 1px dashed var(--btn-border);
    border-radius: 8px;
    grid-column: 1 / -1;
}

.contact-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--btn-border);
    text-align: left;
}

.contact-title {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.contact-desc {
    font-size: 1rem;
    color: var(--subtitle);
    margin-bottom: 1.5rem;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#contact-form input,
#contact-form textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--btn-border);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--btn-bg);
    color: var(--fg);
    transition: border-color 0.2s, background-color 0.3s, color 0.3s;
    font-family: inherit;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #888;
}

#contact-form textarea {
    resize: vertical;
}

#contact-submit {
    background-color: var(--fg);
    color: var(--bg);
    padding: 0.85rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: inherit;
}

#contact-submit:hover {
    opacity: 0.75;
}

#contact-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#contact-confirmation {
    margin-top: 1rem;
    color: #4CAF50;
    font-weight: bold;
    text-align: center;
}

/* ── Mobile: compact lang buttons flush to right edge ────────── */
@media (max-width: 899px) {
    #top-bar {
        padding: 0 0 0 0.8rem;
    }
    #lang-buttons {
        gap: 0;
    }
    .lang-btn {
        padding: 0 0.5rem;
        height: 2.8rem;
        font-size: 0.7rem;
        border-radius: 0;
    }
    .lang-btn:first-child {
        border-radius: 20px 0 0 20px;
    }
    .lang-btn:last-child {
        border-radius: 0 0 0 0;
    }
}

/* ── Desktop PC layout (≥ 900px) ─────────────────────────────── */
@media (min-width: 900px) {

    body {
        align-items: flex-start;
    }

    .container {
        max-width: 100%;
        width: 100%;
        padding: 0;
    }

    /* Each pc-page = one full-screen section */
    .pc-page {
        display: flex;
        flex-direction: row;
        min-height: 100vh;
        padding: 0 7%;
    }

    /* Columns */
    .pc-col {
        flex: 1;
        padding: 6vh 3%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* Reset section top-borders and margins when inside a column */
    .pc-col .articles-section,
    .pc-col .news-section,
    .pc-col .instagram-section {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .pc-col .contact-section {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    /* ── Page 1: Hero ── */
    .pc-page-1 .pc-left {
        text-align: center;
    }

    .pc-page-1 header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .pc-page-1 .logo {
        width: 180px;
        height: 180px;
    }

    .pc-page-1 header h1 {
        font-size: 2.8rem;
        margin-top: 1.2rem;
        line-height: 1.2;
    }

    /* Left column: subtitle sits between logo and h1 */
    .pc-page-1 .pc-left .subtitle {
        font-size: 1.35rem;
        margin-top: 0.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
        text-align: center;
        color: var(--subtitle);
    }

    .pc-page-1 header h1 {
        margin-top: 0.2rem;
    }

    /* Left column: buttons side-by-side below h1 */
    .pc-page-1 .pc-left .links {
        flex-direction: row;
        gap: 1rem;
        margin-top: 1.5rem;
        margin-bottom: 0.8rem;
        width: 100%;
        justify-content: center;
    }

    .pc-page-1 .pc-left .links-small {
        justify-content: center;
        margin-bottom: 0;
    }

    /* Right column: welcome text */
    .pc-page-1 .pc-right {
        align-items: flex-start;
        overflow-y: auto;
    }

    /* Desktop: always show full hero text, hide toggle button */
    #hero-welcome-rest {
        display: inline !important;
    }

    .hero-welcome-toggle {
        display: none !important;
    }

    /* ── Pages 2, 3: sections start from same top position ── */
    .pc-page-2 .pc-col,
    .pc-page-3 .pc-col {
        justify-content: flex-start;
        padding-top: 8vh;
    }

    .pc-col .articles-section,
    .pc-col .news-section {
        width: 100%;
    }

    /* ── Page 4: Instagram — centered single column ── */
    .pc-page-4 {
        justify-content: center;
        align-items: center;
    }

    .pc-page-4 .instagram-section {
        width: min(860px, 90%);
    }

    /* ── Page 3: allow scroll if news list is long ── */
    .pc-page-3 .pc-col {
        overflow-y: auto;
    }

    /* ── Page 5: Contact — centered single column ── */
    .pc-page-5 {
        justify-content: center;
        align-items: center;
    }

    .pc-page-5 .contact-section {
        max-width: 600px;
        width: 100%;
    }


    #top-bar {
        padding: 0 2rem;
    }

    .lang-btn {
        height: 3rem;
    }
}
