/* ========== FONTURI ========== */
@font-face {
    font-family: 'Poppins';
    src: url('./assets/fonts/poppins-light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'PazBlack';
    src: url('./assets/fonts/pazblack.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ========== GENERAL BODY ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #252732;
    color: #c7cbcf;
    font-family: 'Poppins', Arial, sans-serif;
    text-align: center;
    min-height: 100vh;
    overflow-x: hidden; /* elimina scroll orizontal */
}

/* ========== SLIDER PRINCIPAL ========== */
.slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    max-width: 90vw;
    margin: auto;
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slider-container img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    object-fit: contain;
    display: block;
    margin: auto;
}

.hidden {
    display: none;
}

#loadingText {
    font-size: 18px;
    color: #c7cbcf;
    position: absolute;
}

/* ========== SLIDER BUTTONS ========== */
.slider-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 15px;
}

button {
    background-color: #6267f1;
    border: none; /* fara border mov */
    color: #fff;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

button:hover {
    opacity: 0.8;
}

/* ========== FOOTER ========== */
footer {
    background-color: #20232c;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 16px;
}

.footer-left {
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-left a {
    color: #c7cbcf;
    text-decoration: none;
    padding: 5px 0;
}

.footer-left a:hover {
    text-decoration: underline;
}

.footer-text {
    text-align: center;
}

.footer-link {
    position: absolute;
    right: 20px;
    color: #c7cbcf;
    text-decoration: none;
    padding: 5px 0;
}

.footer-link:hover {
    text-decoration: underline;
}

/* ========== HEADER FORUM / INFO / UPDATES ========== */
.forum-header {
    background-color: #20232C;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
}

.forum-header-left {
    display: flex;
    flex-direction: column; /* subtitlu sub titlu */
    align-items: center;    /* centrat orizontal */
    justify-content: center; /* centrat vertical */
    gap: 2px;
    text-align: center;      /* text centrat */
}


.forum-title {
    font-family: 'PazBlack', Arial, sans-serif;
    font-size: 20px;
    color: #ffffff;
}

.forum-header-left .forum-subtitle {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    color: #c7cbcf;
    margin-top: 2px;
}

.forum-header-right .login-btn {
    background-color: #7A7CF2;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
}

.forum-header-right .login-btn:hover {
    opacity: 0.8;
}

/* ========== FORUM & INFO CONTAINERS ========== */
.forum-container,
.info-container,
.updates-container {
    padding: 40px 20px;
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

.forum-container h1,
.info-container h1,
.updates-container h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

/* ========== GRID CARDS ========== */
.forum-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.forum-card {
    background-color: #2C2E3B;
    border-radius: 8px;
    width: 100%;
    max-width: 860px;
    min-height: 250px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    overflow: hidden;
    border: none; /* elimina border mov */
}

/* HEADER CARD */
.card-header {
    background-color: #393D4C;
    color: #A7A9B1;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 15px;
    text-transform: uppercase;
    text-align: left;
}

/* BODY CARD */
.card-body {
    padding: 15px;
    text-align: left;
}

.card-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.card-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: invert(1);
}

.card-item-title {
    color: #6B6DCD;
    font-weight: bold;
    font-size: 16px;
    display: block;
    margin-bottom: 2px;
}

.card-item-subtitle {
    color: #C9CDD0;
    font-size: 14px;
    margin: 0;
}

/* ========== PAGINA UPDATES ========== */
.update-card {
    background-color: #2C2E3B;
    border-radius: 8px;
    width: 100%;
    max-width: 860px;
    overflow: hidden;
    margin: 20px auto;
    transition: max-height 0.4s ease, padding 0.4s ease;
    border: none; /* elimina border mov */
}

.update-card-header {
    background-color: #393D4C;
    color: #A7A9B1;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-button {
    background-color: #6267f1;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.toggle-button:hover {
    opacity: 0.8;
}

.update-card-body {
    padding: 15px;
    text-align: left;
    transition: opacity 0.4s ease;
}

.update-item {
    margin-bottom: 8px;
    font-size: 14px;
    color: #C9CDD0;
}

.update-card.collapsed {
    max-height: 50px;
    padding-bottom: 0;
}

.update-card.expanded {
    max-height: 500px;
    padding-bottom: 15px;
}

.update-card.collapsed .update-card-body {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.update-card.expanded .update-card-body {
    opacity: 1;
    height: auto;
}

/* ========== PAGINA TERMS ========== */
.terms-content {
    padding: 50px;
    text-align: center;
    max-width: 1000px;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.terms-page {
    background-color: #252732;
    background-image: url('./assets/images/adoptat.jpg');
    background-repeat: no-repeat;
    background-size: 200px 200px;
    height: calc(100vh - 60px);
    width: 100%;
    margin-bottom: 60px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { background-position: 0 0; }
    25% { background-position: 100% 0; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0 100%; }
    100% { background-position: 0 0; }
}

/* ========== RESPONSIVITATE ========== */
@media (max-width: 1024px) {
    .image-wrapper { height: 400px; max-width: 90%; }
    .forum-card, .update-card { max-width: 90%; }
}

@media (max-width: 768px) {
    .slider-container { height: calc(100vh - 100px); }
    .image-wrapper { height: 320px; }
    .slider-buttons { gap: 20px; margin-top: 10px; }
    button { font-size: 20px; padding: 8px 12px; }
    .forum-grid { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .slider-container { height: calc(100vh - 100px); margin-top: 0; }
    .image-wrapper { height: 280px; }
    .slider-container img { max-width: 90%; max-height: 100%; }
    button { font-size: 18px; padding: 6px 10px; }
    .forum-card, .update-card { width: 95%; }
}
