:root {
    --bg: #f3f4f6;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;

    --primary: #0d9488;
    --primary-hover: #0d9488;
    --border: #717171;
    --danger: #dc2626;

    --radius: 10px;
    --shadow: 0 2px 8px rgba(0,0,0,.8);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family:
        Inter,
        Segoe UI,
        system-ui,
        sans-serif;

    background-image: url('../bg01.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text);

    min-height: 100vh;
    padding: 24px 16px;
}


.container {
    max-width: 700px;
    margin: 0 auto;
}

.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
    margin: 0 auto 16px;
    width: 100%;
    max-width: 700px;
}

.mobile-brand {
    width: 100%;
    text-align: center;
}

.mobile-brand h1 {
    font-size: 3rem;
    margin: 0;
    font-family: "Segoe UI", Inter, system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: 0.7em;
    text-transform: uppercase;
    text-shadow: 0 3px 12px rgba(15, 23, 42, 0.4);
}

.mobile-brand .brand-yellow {
    color: #fbbf24;
}

.mobile-brand .brand-green {
    color: #0d9488;
}

.mobile-brand .subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    letter-spacing: 0.85em;
    text-align: center;
}

.mobile-menu-toggle {
    border: none;
    background: transparent;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 18px 24px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 0 auto 16px;
    width: 100%;
    max-width: 700px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(6px);
    margin: 0 auto 20px;
    width: min(100%, 700px);
}

.site-nav-item {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: var(--radius);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav-item:hover {
    color: var(--primary);
    background: rgba(13, 148, 136, 0.1);
}

.site-nav-item.active {
    color: #064e44;
    background: rgba(13, 148, 136, 0.14);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu-item {
    display: block;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.mobile-menu-item:hover {
    color: var(--primary);
}

/* Desktopon is látható marad a fejléces navigáció */
.page-header {
    margin-bottom: 20px;
}

.header-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.header-subtitle {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: normal;
    text-transform: none;
    padding: 0;
    background: transparent;
    color: var(--text);
    box-shadow: none;
    text-shadow: none;
    margin: 0;
}

.page-brand-title {
    font-family: "Segoe UI", Inter, system-ui, sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-shadow: 0 3px 12px rgba(15, 23, 42, 0.22);
}

.subtitle {
    color: var(--muted);
    margin-top: 4px;
    font-size: 0.95rem;
    letter-spacing: normal;
}

@media (max-width: 992px) {
    .page-grid {
        grid-template-columns: 1fr;
    }

    .page-sidebar--right {
        align-items: flex-start;
    }
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

.mobile-menu-item.active {
    color: var(--primary);
}

.day-word-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
    padding: 18px;
    margin-top: 16px;
}

.day-word-current {
    margin-bottom: 16px;
    font-size: 1.5rem;
    color: var(--text);
    line-height: 1.5;
}

.day-word-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.day-word-form input {
    flex: 1;
    min-width: 220px;
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

.day-word-form input:disabled {
    background: rgba(255, 255, 255, 0.18);
    opacity: 0.8;
}

.day-word-form button {
    min-width: 130px;
}

.post-image {
    display: block;
    width: 100%;
    max-width: 50%;
    height: auto;
    border-radius: 14px;
    margin: 14px auto 0;
    object-fit: cover;
}

.compose-box,
.post {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
}

.compose-box {
    padding: 18px;
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    min-height: 100px;
    border: 2px solid var(--border);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    resize: none;
    outline: none;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
}

.textarea-help {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--muted);
}

textarea::placeholder {
    color: #8a8a8a;
}

.file-field {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    font-size: .95rem;
    color: var(--muted);
}

.file-field span:first-child {
    white-space: nowrap;
}

.file-field .file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.55);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.file-field .file-button:hover {
    background: rgba(255, 255, 255, 0.72);
}

.file-field .file-name {
    font-size: .9rem;
    color: var(--muted);
}

.file-field input {
    display: none;
}

.image-preview {
    margin-top: 14px;
}

.image-preview img {
    display: block;
    max-width: 100%;
    border-radius: 14px;
    margin-top: 8px;
    object-fit: cover;
}

.compose-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 14px;
    padding-top: 14px;

    border-top: 1px solid var(--border);
}

.char-count {
    font-size: .9rem;
    color: var(--muted);
}

.char-count.over {
    color: var(--danger);
}

button {
    border: none;
    border-radius: 8px;

    padding: 10px 22px;

    background: var(--primary);
    color: white;

    font-weight: 600;
    cursor: pointer;

    transition: .2s ease;
}

#sendBtn {
    font-size: 1.3rem;
    font-weight: 300;
}

button:hover:not(:disabled) {
    background: var(--primary-hover);
}

button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.error-msg {
    display: none;
    margin-top: 10px;

    color: var(--danger);
    font-size: .9rem;
}

.posts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.post {
    padding: 18px;
}

.post-text {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
}

.post-image {
    display: block;
    width: 100%;
    max-width: 33%;
    height: auto;
    border-radius: 14px;
    margin: 14px auto 0;
    object-fit: cover;
}

.post-time {
    margin-top: 12px;

    font-size: .85rem;
    color: var(--muted);
}

.loading {
    text-align: center;
    color: var(--muted);
    padding: 30px;
}

.char-count.warning {
    color: orange;
}

.char-count.danger {
    color: var(--danger);
}
.day-word-history {
    list-style: none;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.day-word-history-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-left: 8px;
}

.day-word-history-date {
    font-size: 0.85rem;
    color: var(--muted);
    white-space: nowrap;
}

.day-word-history-word {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.day-word-history-empty {
    font-size: 0.95rem;
    color: var(--muted);
    padding-left: 8px;
}