* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #101820;
    background-image: url("../images/background.jpg");
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #222;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 30, 45, 0.35);
    padding: 10px 20px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.header-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    white-space: nowrap;
    color: #d9f0ff;
}

.user-info {
    font-size: 14px;
    white-space: nowrap;
    color: #d9f0ff;
}

.logout-link {
    text-decoration: none;
    color: #d9f0ff;
    white-space: nowrap;
}

.logout-link:hover {
    text-decoration: underline;
}

.navigation {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    width: 100%;
}

.navigation a {
    text-decoration: none;
    color: #d9f0ff;
    white-space: nowrap;
    font-size: 14px;
}

.navigation a:hover {
    text-decoration: underline;
}

.container {
    max-width: 900px;
    margin: 25px auto;
    padding: 0 15px;
    padding-top: 65px;
}

.welcome {
    background: #ffffff;
    padding: 20px;
    border: 1px solid #dddddd;
    margin-bottom: 20px;
}

.post-box {
    background: #ffffff;
    padding: 20px;
    border: 1px solid #dddddd;
    margin-bottom: 20px;
}

.post-box h2 {
    margin-top: 0;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.action-button {
    display: inline-block;
    padding: 10px 15px;
    background: #eeeeee;
    border: 1px solid #cccccc;
    text-decoration: none;
    color: #222222;
    border-radius: 4px;
}

.action-button:hover {
    background: #dddddd;
}

.feed {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-sizing: border-box;
    color: #eef8ff;
}

.feed h2 {
    margin-top: 0;
}

.empty-feed {
    padding: 30px 10px;
    text-align: center;
    color: #777777;
}

.admin-link {
    font-weight: bold;
}

.footer {
    text-align: center;
    color: #777777;
    font-size: 13px;
    padding: 0 30px 10px;
}
.post-card {
    background: rgba(10, 30, 45, 0.50);
    border: 1px solid rgba(217, 240, 255, 0.28);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
    color: #eef8ff;
}

.post-header {
    margin-bottom: 5px;
}

.post-header strong {
    font-size: 17px;
    color: #9ed8ff;
}

.post-header span {
    color: #c5d9e5;
    margin-left: 6px;
}

.post-date {
    color: #888888;
    font-size: 13px;
    margin-bottom: 15px;
}

.post-content {
    font-size: 16px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: break-word;
}

.post-actions {
    margin-top: 15px;
    padding-top: 10px;
}

.post-actions span {
    margin-right: 20px;
}

.post-actions form {
    display: inline;
}

.post-actions button {
    border: 1px solid rgba(217, 240, 255, 0.3);
    background: rgba(255, 255, 255, 0.10);
    color: #eef8ff;
    border-radius: 12px;
    padding: 2px 3px;
    font-size: 12px;
    cursor: pointer;
}

.post-actions button:hover {
    background: rgba(255, 255, 255, 0.18);
}

.post-actions .post-like-button .post-like-icon {
    margin: 0;
    color: #ffffff;
	padding: 2px 8px;
font-size: 12px;
}

.post-actions .post-like-button .post-like-count {
    margin: 0;
    color: #eef8ff;
}

.post-actions span {
    margin-left: 15px;
    color: #555555;
}

.comment-form {
    margin-top: 15px;
    padding-top: 15px;
}

.comment-form textarea {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    font-family: Arial, sans-serif;
    font-size: 15px;
    resize: vertical;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(217, 240, 255, 0.30);
    border-radius: 12px;
    box-sizing: border-box;
}

.comment-form button {
    margin-top: 8px;
    padding: 7px 12px;
    cursor: pointer;
    border: 1px solid rgba(217, 240, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.10);
    color: #eef8ff;
    font-size: 14px;
    font-weight: bold;
}

.comment-form button:hover {
    background: rgba(255, 255, 255, 0.18);
}

.comments {
    margin-top: 15px;
    padding-top: 15px;    
}

.comment {
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 8px;
    box-sizing: border-box;
    color: #eef8ff;
}

.comment-header strong {
    font-size: 14px;
	color: #9ed8ff;
}

.comment-header span {
    color: #c5d9e5;
    margin-left: 5px;
    font-size: 13px;
}

.comment-date {
    color: #aebfca;
    font-size: 11px;
    margin-top: 3px;
    margin-bottom: 6px;
}

.comment-content {
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: break-word;
	color: #eef8ff;
}
.comment-like-button {
    border: 1px solid rgba(217, 240, 255, 0.3);
    background: rgba(255, 255, 255, 0.10);
    color: #eef8ff;
    border-radius: 12px;
    padding: 2px 3px;
    font-size: 12px;
    cursor: pointer;
}

.comment-like-button:hover {
    background: rgba(255, 255, 255, 0.18);
}

.comment-like-button span {
    margin: 0;
}
.comment-actions button {
    border: 1px solid rgba(217, 240, 255, 0.3);
    background: rgba(255, 255, 255, 0.10);
    color: #eef8ff;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.comment-actions button:hover {
    background: rgba(255, 255, 255, 0.18);
}
.photos {
    margin-top: 20px;
}

.photo-card {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.photo-header {
    margin-bottom: 5px;
}

.photo-header strong {
    font-size: 16px;
}

.photo-header span {
    color: #777777;
    margin-left: 6px;
}

.photo-date {
    color: #999999;
    font-size: 12px;
    margin-bottom: 12px;
}

.photo-image {
    display: block;
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 5px;
}

.photo-actions {
    border-top: 1px solid #eeeeee;
    margin-top: 15px;
    padding-top: 10px;
}

.photo-actions form {
    display: inline;
}

.photo-actions button {
    border: none;
    background: none;
    padding: 5px 8px;
    font-size: 16px;
    cursor: pointer;
}

.photo-actions {
    border-top: 1px solid #eeeeee;
    margin-top: 15px;
    padding-top: 10px;
}

.photo-actions form {
    display: inline;
}

.photo-actions button {
    border: none;
    background: none;
    padding: 5px 8px;
    font-size: 16px;
    cursor: pointer;
}

@media (max-width: 700px) {

    .header {
        padding: 8px 12px;
    }

    .header-top {
        gap: 8px;
    }

    .logo {
        font-size: 20px;
    }

    .header-right {
        gap: 8px;
        margin-left: auto;
    }

    .user-info {
        font-size: 12px;
    }

    .logout-link {
        font-size: 13px;
    }

    .navigation {
        margin-top: 8px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 18px;
        padding-bottom: 3px;
        -webkit-overflow-scrolling: touch;
    }

    .navigation a {
        flex-shrink: 0;
        font-size: 14px;
        white-space: nowrap;
    }

    .container {
        padding-top: 105px;
    }
 }
	
 /*
  * KÉPEK ÉS VIDEÓK MÉRETE
 */

.photo-image,
.video-player {
    display: block;
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}
.home-page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 35px 20px 30px;
    box-sizing: border-box;
}
.home-title {
    text-align: center;
    background: rgba(10, 30, 45, 0.50);
    border: px solid rgba(217, 240, 255, 0.28);
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
    color: #eef8ff;
}	
.home-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.home-info-card {
    background: rgba(10, 30, 45, 0.50);
    border: 1px solid rgba(217, 240, 255, 0.28);
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    color: #eef8ff;
}
.home-info-card-last {
    width: 100%;
    margin-top: 20px;
}
.quick-access {
    width: 100%;
    margin-top: 20px;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(10, 30, 45, 0.50);
    border: 1px solid rgba(217, 240, 255, 0.28);
    border-radius: 16px;
}

.quick-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 18px;
}

.quick-title span {
    width: 80px;
    height: 1px;
    background: rgba(158, 216, 255, 0.7);
}

.quick-title h2 {
    margin: 0;
    font-size: 22px;
    color: #9ed8ff;
    white-space: nowrap;
}

.quick-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.quick-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 58px;
    padding: 12px 10px;
    box-sizing: border-box;
    border: 1px solid rgba(217, 240, 255, 0.3);
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    color: #eef8ff;
    background: rgba(255, 255, 255, 0.10);
}

.quick-button:hover {
    background: rgba(255, 255, 255, 0.18);
}

.quick-icon {
    font-size: 22px;
}
.home-info-card-last .home-card-icon {
    font-size: 22px;
    margin-bottom: 8px;
}

.home-info-card-last h2 {
    margin: 6px 0 12px;
    font-size: 22px;
    color: #9ed8ff;
}

.home-info-card-last p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.6;
    color: #f0f0f0;
}
.home-footer-message {
    text-align: center;
    margin-top: 5px;
    padding: 5px 20px 5px;
}

.home-footer-message h2 {
    margin: 15px 0 8px;
    font-size: 21px;
    font-weight: normal;
    color: #d9f0ff;
}

.home-footer-message p {
    margin: 0;
    font-size: 15px;
    color: #d0d0d0;
}
.home-title h1 {
    margin: 5px 0 12px;
    font-size: 30px;
    color: #9ed8ff;
}
.home-heart {
    font-size: 30px;
    line-height: 1;
    color: #9ed8ff;
}
.home-heart {
    font-size: 30px;
    line-height: 1;
    color: #9ed8ff;
}

.home-card-icon {
    font-size: 30px;
    line-height: 1;
    color: #9ed8ff;
}
.posts-new-button {
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid rgba(217, 240, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.10);
    color: #eef8ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.posts-new-button:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* My Profile - main card */

.profile-card {
    background: rgba(10, 30, 45, 0.50);
    border: 1px solid rgba(217, 240, 255, 0.28);
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
    color: #eef8ff;
}
.posts-create-box {
    background: rgba(10, 30, 45, 0.50);
    border: 1px solid rgba(217, 240, 255, 0.28);
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
    color: #eef8ff;
    margin-bottom: 20px;
}
/* =========================================
 * EGYSÉGES DELETE GOMB
 * ========================================= */

.delete-button {
    padding: 5px 9px;
    border: 1px solid rgba(255, 120, 120, 0.35);
    border-radius: 10px;
    background: rgba(255, 80, 80, 0.08);
    color: #ffb0b0;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.delete-button:hover {
    background: rgba(255, 80, 80, 0.16);
}

/* =========================================
 * EGYSÉGES DELETE GOMB - HOZZÁSZÓLÁSOK
 * ========================================= */

.comment-actions .delete-button {
    border: 1px solid rgba(255, 120, 120, 0.35);
    background: rgba(255, 80, 80, 0.08);
    color: #ffb0b0;
    border-radius: 10px;
    padding: 5px 9px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.comment-actions .delete-button:hover {
    background: rgba(255, 80, 80, 0.16);
}
.edit-button {
    background: rgba(255,255,255,0.10);
    color: #eef8ff;
    border-color: rgba(217,240,255,0.30);
}

.edit-button:hover {
    background: rgba(255,255,255,0.18);
}
/* =========================================
 * MESSAGES - ÚJ ÜZENET JELZÉS
 * ========================================= */

.messages-link {
    color: #eef8ff;
}

.message-unread-icon {
    color: #eef8ff;
}

.message-unread-icon-active {
    color: #ff2222;
    animation: messages-unread-pulse 1s infinite alternate;
}

@keyframes messages-unread-pulse {
    from {
        color: #ff6b6b;
    }
    to {
        color: #ff2222;
    }
}
 /* =========================================
 * MESSAGES - ÜZENETEK ELRENDEZÉSE
 * ========================================= */

.conversation-messages {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.conversation-message {
    width: 50%;
    max-width: 50%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(217, 240, 255, 0.35);
    border-radius: 12px;
    box-sizing: border-box;
    color: #eef8ff;
}

.conversation-message.own {
    margin-left: auto;
    margin-right: 0;
}

.conversation-message.received {
    margin-left: 0;
    margin-right: auto;
}

.conversation-message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.conversation-message-header strong {
    color: #9ed8ff;
    font-size: 14px;
}

.conversation-message-header span {
    color: rgba(238, 248, 255, 0.60);
    font-size: 11px;
    white-space: nowrap;
}

.conversation-message-content {
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Mobil */
@media (max-width: 700px) {

    .conversation-message {
        width: 80%;
        max-width: 80%;
    }

}
/* =========================================
 * POSTS - KERESŐ
 * ========================================= */

.post-search-box {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(217, 240, 255, 0.18);
}

.post-search-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

#postSearchInput {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 7px 12px;
    border: 1px solid rgba(217, 240, 255, 0.30);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #eef8ff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    outline: none;
}

#postSearchInput::placeholder {
    color: rgba(217, 240, 255, 0.60);
}

#postSearchInput:focus {
    border-color: rgba(158, 216, 255, 0.60);
    background: rgba(255, 255, 255, 0.10);
}

#postSearchClear {
    height: 36px;
    padding: 7px 12px;
    border: 1px solid rgba(217, 240, 255, 0.30);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.10);
    color: #eef8ff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

#postSearchClear:hover {
    background: rgba(255, 255, 255, 0.18);
}

.post-search-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
}

.post-search-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #c5d9e5;
    font-family: Arial, sans-serif;
    font-size: 13px;
    cursor: pointer;
}

.post-search-options input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.post-search-info {
    margin-top: 7px;
    color: rgba(217, 240, 255, 0.65);
    font-family: Arial, sans-serif;
    font-size: 12px;
}

@media (max-width: 700px) {

    .post-search-options {
        gap: 10px;
    }

    .post-search-options label {
        font-size: 13px;
    }

}