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

body {
    font-family: Arial, sans-serif;
    background-color: #000000f0; /* Fundal Negru */
    color: #000000;
    overflow-x: hidden;
    padding-top: 80px; /* Spațiu pentru bara fixă */
}

/* --- TOP BAR & NAVIGATION --- */
.top-bar {
    background-color: rgb(50, 49, 48);
    backdrop-filter: blur(10px);
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar h1 {
    margin: 0;
    color: #fbf4f4;
    font-size: 28px;
    letter-spacing: 2px;
}

.user-info {
    display: none;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
    padding: 8px 15px;
    background-color: #fbf4f4;
    border-radius: 20px;
    transition: all 0.3s ease;
}
.user-info.visible { 
    display: flex; 
}
.user-name { 
    font-weight: 600; 
    color: #171414; 
    font-size: 16px; 
}
.user-status { 
    font-size: 14px; 
    color: #000000; 
    padding: 4px 8px;
    background-color: #fbf4f4; 
    border-radius: 12px;
    }
.logout-btn { 
    background: none; 
    border: none; color: rgb(0, 0, 0);
     cursor: pointer; 
     font-size: 16px; 
     transition: color 0.3s ease; 
    }
.logout-btn:hover { 
    color: #fff9f9;
 }

.nav-container { 
    display: flex;
     align-items: center;
      position: absolute; 
      left: 50%; 
      transform: translateX(-50%); 
    }
.nav-menu {
     display: flex;
     gap: 20px;
     }

.nav-button {
    background-color: rgba(241, 237, 237, 0.964); 
    border: 1px solid rgba(255,255,255, 0.18);
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}
.nav-button:hover { 
    background-color: rgba(255,255,255, 0.4);
    transform: translateY(-2px);
    }

.hamburger { 
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none; 
    padding: 5px; 
    z-index: 1002; 
}
.hamburger span { 
    width: 25px; 
    height: 3px;
    background-color: #333; 
    margin: 3px 0; 
    transition: 0.3s; 
    }
.hamburger.active span:nth-child(1) { 
    transform: rotate(-45deg) translate(-5px, 6px); 
}
.hamburger.active span:nth-child(2) { 
    opacity: 0;
 }
.hamburger.active span:nth-child(3) { 
    transform: rotate(45deg) translate(-5px, -6px); 
}
.language-switcher { 
    position: relative;
 }

.language-button {
    background-color: rgb(247, 242, 242);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.language-button:hover { 
    background-color: rgba(225, 225, 225, 0.7);
 }
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 15px;
    margin-top: 5px;
    min-width: 120px;
    display: none;
    z-index: 1001;
    overflow: hidden;
}
.language-dropdown.active {
     display: block;
     }
.language-option { 
    padding: 10px 15px; 
    cursor: pointer;
    transition: background-color 0.3s ease; 
    display: flex; 
    align-items: center;
    gap: 8px; 
    }
.language-option:hover {
    background-color: rgb(0, 0, 0);
    }

main { 
    padding: 0; 
    display: block; 
    width: 100%; 
    position: relative; 
    z-index: 2;
 }

.content {
    padding: 80px 20px;
    margin: 0 auto;
    display: none; /* Ascuns initial, JS il face vizibil */
    width: 100%;
    max-width: 1200px;
    flex-direction: column;
}
.content.visible { display: flex; }

/* --- CONTENT NAV BUTTONS (Big Buttons inside pages) --- */
.content-nav {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}
.content-nav-button {
    background-color: rgba(255,255,255, 0.25);
    border: 1px solid rgba(255,255,255, 0.18);
    padding: 15px 30px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff; /* Alb pe fundal inchis */
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 95%;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}
.content-nav-button::before, .content-nav-button::after {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    font-weight: bold; 
    color: #999; 
    opacity: 0.6; 
    transition: all 0.3s ease;
}
.content-nav-button::before { 
    content: ">>";
    left: 25px;
    animation: pulseLeft 2s infinite; 
    }
.content-nav-button::after { 
    content: "<<"; 
    right: 25px; 
    animation: pulseRight 2s infinite; 
}
@keyframes pulseLeft { 0%, 100% { opacity: 0.4; transform: translateY(-50%) translateX(0); } 50% { opacity: 0.8; transform: translateY(-50%) translateX(3px); } }
@keyframes pulseRight { 0%, 100% { opacity: 0.4; transform: translateY(-50%) translateX(0); } 50% { opacity: 0.8; transform: translateY(-50%) translateX(-3px); } }

.content-nav-button:hover { 
    background-color: rgba(255,255,255, 0.4); 
    transform: translateY(-5px); 
}

.posts-container { 
    width: 100%; 
    display: flex;
     flex-direction: column; 
     gap: 30px; 
     margin-bottom: 40px; 
    }

.post-item {
    background-color: rgb(50, 49, 48); /* Fundal inchis card */
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    backdrop-filter: blur(5px);
    padding: 20px;
    transition: transform 0.3s ease;
}
.post-item:hover { 
    transform: translateY(-5px);
 }

.post-year { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: #fff; 
    margin-bottom: 15px; 
    text-align: center; 
}
.post-theme { 
    font-size: 1.2rem; 
    font-weight: 600; 
    color: #fff; 
    margin-bottom: 15px; 
    text-align: center;
 }
.post-text { 
    font-size: 1.25rem; 
    line-height: 1.6;
    color: #ddd; 
    text-align: justify;
 }

.post-image, .post-image-carousel {
    max-width: 100%;
    border-radius: 10px;
    margin: 15px auto;
    display: block;
    position: relative;
    overflow: hidden;
}
.post-image-carousel img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
    width: 100%; 
    object-fit: contain; 
    transition: opacity 0.3s ease-in-out; 
}

.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white; border: 1px solid rgba(255, 255, 255, 0.5);
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    z-index: 10; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}
.carousel-arrow:hover { background-color: rgba(0, 0, 0, 0.6); 
    transform: translateY(-50%) scale(1.1);
 }
.arrow-left { 
    left: 10px;
 }
.arrow-right { 
    right: 10px; 
}

/* Post Arrangements */
.arrangement-1 .post-image, .arrangement-1 .post-image-carousel { 
    max-width: 60%; 
    margin: 0 auto 20px auto;
 }
.arrangement-2 .post-image, .arrangement-2 .post-image-carousel { 
    max-width: 60%; 
    margin-top: 20px; 
}
.arrangement-3 .post-content {
     display: block; 
     overflow: hidden; 
}
.arrangement-3 .post-image, .arrangement-3 .post-image-carousel { 
    float: right; 
    width: 60%; 
    margin-left: 25px; 
    margin-bottom: 15px; 
}
.arrangement-4 .post-content { 
    display: block; 
    overflow: hidden;
 }
.arrangement-4 .post-image, .arrangement-4 .post-image-carousel { float: left; 
    width: 60%; 
    margin-right: 25px;
    margin-bottom: 15px; 
}

.delete-post-btn {
    background-color: #ff4d4d;
    color: white; 
    border: none;
    padding: 10px 20px;
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 14px; 
    font-weight: 600;
    float: right; 
    clear: both;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex; align-items: center; gap: 8px;
}
.delete-post-btn:hover { 
    background-color: #cc0000; 
    transform: translateY(-2px); 
}

.photo-gallery-container {
    margin: 30px auto;
     position: relative;
    background-color: rgba(50, 49, 48, 0.8); 
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    backdrop-filter: blur(5px);
    padding: 20px;
    display: none; 
    flex-direction: column;
}
.photo-gallery-container.authorized { 
    display: flex;
    justify-content: center;
    align-items: center; 
}

.date-input-container, .year-input-container {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin-bottom: 20px; 
    gap: 10px;
}
.date-input-container label, .year-input-container label { 
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff; 
    margin-right: 10px;
    }
.date-input-container input, .year-input-container input {
    padding: 8px 12px; 
    border: 1px solid #ccc; 
    border-radius: 5px;
    font-size: 1.2rem;
    width: auto; 
    font-family: 'Arial', sans-serif;
    background: #fff;
    color: #000;
}

.photo-gallery {
    display: flex;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    width: 100%; 
    min-height: 200px; 
    overflow-y: auto;
    justify-content: center; 
    align-items: center;
}
.photo-item {
    width: 90%; 
    height: 450px; 
    border: 2px dashed #ccc; 
    border-radius: 25px;
    background-color: #f9f9f9; 
    position: relative; 
    overflow: hidden;
    display: flex; 
    justify-content: center; 
    align-items: center;
}
.photo-item:hover {
    border-color: #999; 
    transform: scale(1.02);
 }
.photo-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 25px; 
}

.photo-nav-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 15px; margin: 20px 0; 
    flex-wrap: wrap; 
}
.photo-nav-button {
    background-color: rgba(255,255,255, 0.25); 
    border: 1px solid rgba(255,255,255, 0.18);
    padding: 8px; 
    border-radius: 20px; 
    cursor: pointer; 
    font-size: 16px; 
    font-weight: 600;
    transition: all 0.3s ease; 
    text-decoration: none; 
    color: #333;
    display: flex; 
    align-items: center; 
    justify-content: center;
    width: 200px; 
    height: 120px; 
    backdrop-filter: blur(10px);
    position: relative; 
    overflow: hidden;
}
.photo-nav-button img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 20px; 
}
.photo-nav-button:hover {
     transform: translateY(-5px);
}
.photo-nav-button.active {
     border: 3px solid #fff;
}

.add-photo {
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    width: 100%; 
    height: 100%; 
    color: #999; 
    font-size: 3rem; 
    cursor: pointer;
}
.add-photo:hover {
     color: #555; 
    }

.theme-text-container { 
    display: flex; 
    flex-direction: column; 
    margin-top: 20px;
    gap: 15px; 
    width: 100%;
}
.theme-input-container { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}
.theme-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ccc; 
    border-radius: 8px;
    font-size: 16px; 
    background-color: rgba(255,255,255, 0.8);
     color: #000;
}
.text-area-container {
    display: flex; 
    gap: 15px; 
    width: 100%;
}
.text-area {
    flex: 1; 
    min-height: 100px; 
    padding: 12px 15px; 
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    background-color: rgba(255,255,255, 0.8);
    resize: none;
    color: #000;
}
.save-button {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 16px; 
    font-weight: 600;
    transition: all 0.3s ease; 
    display: flex; 
    align-items: center;
    gap: 8px;
}
.save-button:hover { 
    background-color: #555; 
    transform: translateY(-2px); 
}

.translation-status {
    margin-top: 10px; 
    padding: 8px 12px; 
    border-radius: 6px; 
    font-size: 14px; 
    font-weight: 500; 
    display: none; 
}
.translation-status.success { 
    background-color: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
    display: block; 
    }
.translation-status.error { 
    background-color: rgba(244, 67, 54, 0.2); 
    color: #c62828; 
    display: block; 
}

/* --- CONTACT SECTION --- */
.contact-section {
    background-color: #1b1919; 
    color: #fff; 
    width: 100%;
    padding: 40px 20px; 
    text-align: center; 
    margin-top: 40px; 
    position: relative; 
    z-index: 2;
}
.contact-section h2 { 
    font-size: 36px; 
    font-weight: 700; 
    margin-bottom: 30px; 
    letter-spacing: 2px;
}
.contact-details-container {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 40px;
    margin-bottom: 30px; 
    max-width: 900px; 
    margin-left: auto; 
    margin-right: auto;
}
.contact-detail-item { 
    text-align: center; 
    flex-basis: 100%;
}
.contact-detail-item h3 { 
    font-size: 24px; 
    font-weight: 700; 
    margin-bottom: 5px; 
}
.contact-detail-item a { 
    color: #fff; 
    text-decoration: underline; 
    transition: color 0.3s ease; 
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
    backdrop-filter: blur(5px);
}
.modal-content {
    background-color: #fff; 
    margin: 15% auto; 
    padding: 30px;
    border: 1px solid #888; 
    width: 90%; 
    max-width: 400px; 
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
    color: #333; 
    text-align: left;
}
.close-btn { 
    color: #aaa; 
    float: right; 
    font-size: 28px; 
    font-weight: bold; 
    cursor: pointer; 
}
.close-btn:hover, .close-btn:focus { 
    color: #000; 
}
.modal-content h2 { 
    text-align: center; 
    margin-bottom: 20px; 
}
.form-group { 
    margin-bottom: 15px;
}
.form-group label { 
    display: block;
    margin-bottom: 5px; 
    font-weight: 600;
 }
.form-group input { 
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ccc; 
    border-radius: 5px; 
    box-sizing: border-box;
}
.modal-content button {
    width: 100%; 
    padding: 12px; 
    background-color: #333; 
    color: white; 
    border: none;
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 16px; 
    font-weight: 600;
}
.login-message { 
    text-align: center; 
    margin-top: 15px; 
    font-weight: 600; }

/* --- STARS ANIMATION (From previous request) --- */
.star-anim {
    position: fixed; 
    color: #FFD700; 
    pointer-events: none;
    z-index: 1; 
    animation: twinkle 3s infinite ease-in-out alternate;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}
@keyframes twinkle {
    0% { opacity: 0.3; transform: scale(0.8) rotate(0deg); }
    100% { opacity: 1; transform: scale(1.2) rotate(15deg); }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .top-bar { 
        padding: 15px; 
        gap: 10px; 
    }
    .top-bar h1 { 
        font-size: 24px; 
        width: 100%; 
        order: 1;
    }
    .user-info { 
        flex-direction: column; 
        gap: 5px; 
        margin-left: 0; 
        margin-top: 10px;
    }
    .nav-container { 
        display: none;
    }
    .content-nav { 
        display: flex; 
        flex-direction: column;
        align-items: center;
        gap: 20px;
        }
    .language-switcher { 
        order: 2;
    }
    
    .photo-gallery-container { 
        width: 95vw;
        padding: 15px; 
    }
    .photo-gallery { 
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); 
    }
    .photo-nav-buttons {
         gap: 12px; 
         flex-wrap: wrap; 
         justify-content: center; 
        }
    .photo-nav-button { 
        width: 160px; 
        height: 90px; 
    }
    
    .theme-text-container { 
        margin-top: 15px;
     }
    .theme-input-container { 
        flex-direction: column; 
        align-items: stretch; 
    }
    .text-area-container { 
        flex-direction: column;
    }
    
    .post-image, .post-image-carousel { 
        width: 100%;
         max-width: 100%; 
         float: none; 
         margin: 0 0 15px 0; 
    }
    .arrangement-3 .post-content, .arrangement-4 .post-content { 
        flex-direction: column;
         display: flex;
    }
    
    .contact-section h2 { 
        font-size: 28px;
    }
    .contact-details-container { 
        flex-direction: column; 
        align-items: center;
        gap: 30px; 
    }
}

@media (max-width: 480px) {
    .top-bar h1 { 
        font-size: 20px; 
    }
    .content-nav-button {
        padding: 10px 15px;
        font-size: 25px; 
        min-width: 100%;
     }
    .contact-section { 
        padding: 30px 15px;
     }
    .contact-section h2 { 
        font-size: 24px;
     }
}