/* =================================================================== */
/* === FaucetJoy - Main Stylesheet === */
/* =================================================================== */


/* --- 1. ALAP BEÁLLÍTÁSOK ÉS VÁLTOZÓK (Variables & Resets) --- */

:root {
    --dark-blue: #2C3E50;
    --medium-blue: #34495E;
    --light-blue: #3498DB;
    --accent-orange: #F39C12;
    --accent-purple: #751AFF;
    --text-light: #ECF0F1;
    --text-dark: #BDC3C7;
    --success-green: #2ECC71;
    --error-red: #E74C3C;
    --border-color: #4A6E8B;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    color: var(--text-light);
    
    /* Háttér beállítása ismétlődő mintával */
    background-color: var(--dark-blue);
    background-image: url('../assets/images/background-pattern.png');
    background-repeat: repeat;
    background-size: auto;
    background-attachment: fixed; /* A háttér nem görög */

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

a {
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #5DADE2;
}

/* =================================================================== */
/* --- 2. ÁLTALÁNOS MODULOK (Header, Footer, Buttons) --- */
/* =================================================================== */

.navbar, .footer {
    background-color: rgba(44, 62, 80, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari kompatibilitás */
    padding: 15px 30px;
    width: 100%;
    box-sizing: border-box;
    z-index: 10; /* Biztosítja, hogy a tartalom felett legyen */
}

.navbar {
    display: flex;
    align-items: center;
    position: relative;
}

.navbar nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar .logo img {
    height: 40px;
}

.navbar .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar .nav-links li {
    margin: 0 15px;
}

.footer {
    text-align: center;
    padding: 30px 20px;
}

.footer .footer-links a {
    font-size: 14px;
    color: var(--text-dark);
    margin: 0 10px 10px 10px;
    display: inline-block;
}

.footer .copyright {
    font-size: 14px;
    color: var(--text-dark);
    margin-top: 15px;
}

/* =================================================================== */
/* --- 3. OLDAL-SPECIFIKUS SZEKCIÓK ÉS ELEMEK --- */
/* =================================================================== */

/* --- Főoldali Szekciók (Login, How-To, Logged-In) --- */
#login-form, #logged-in-view {
    text-align: center;
    margin-top: 5vh;
    max-width: 500px;
    width: 100%;
    margin-bottom: 60px; 
}


/* A beviteli mező stílusa */
#address {
    padding: 12px 15px;
    font-size: 16px;
    width: 100%;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: var(--medium-blue);
    color: var(--text-light);
    text-align: center;
    box-sizing: border-box;
    margin-bottom: 20px;
}

/* A Captcha helye */
/*.cf-turnstile {_*/
    /*margin: 20px auto; /* Automatikus margóval középre igazítjuk */
    /* --- Captcha stílusok --- */
.cf-turnstile {
    /* A display: flex és justify-content a legbiztosabb módja
       a Turnstile widget középre igazításának minden környezetben. */
    display: flex;
    justify-content: center;

    /* A függőleges térköz megtartása */
    margin-top: 20px;
    margin-bottom: 20px;
}


/* --- ÁLTALÁNOS GOMB STÍLUSOK (A régi #login-button helyett) --- */
.btn {
    background-color: var(--light-blue);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover:not(:disabled) {
    background-color: #5DADE2;
    transform: translateY(-2px);
}

.btn:disabled {
    background-color: #5D6D7E;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Egy extra szabály a contact form gombjának középre igazításához */
#contact-form .btn {
    display: block;
    margin: 20px auto 0 auto;
}

/* ================================== */


.how-it-works-section {
    width: 100vw; /* Kitölti a teljes szélességet */
    padding: 50px 20px;
    background-color: rgba(33, 47, 61, 0.5);
    text-align: center;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
    max-width: 1050px;
    margin: 30px auto 0 auto;
}

.step-box {
    width: 300px;
    padding: 25px;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: rgba(44, 62, 80, 0.7);
    border-bottom: 4px solid var(--accent-purple);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.step-box:hover {
    transform: translateY(-5px); /* Enyhe kiemelkedés felfelé */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35); /* Az árnyékot is megnöveljük a térhatásért */
}

.step-box p { flex-grow: 1; }
.step-box .step-icon img { width: 64px; height: 64px; margin-bottom: 15px; }



/* --- Shortlink Dobozok (earn.php) --- */
.shortlink-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    width: 100%;
    max-width: 1050px;
}

.shortlink-box {
    width: 300px;
    height: 220px;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid var(--border-color); /* Visszaállított keret */
    background-color: rgba(44, 62, 80, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.shortlink-box:hover {
    transform: translateY(-5px); /* Enyhe kiemelkedés felfelé */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35); /* Az árnyékot is megnöveljük a térhatásért */
}

.shortlink-box.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.claim-button {
    background-color: var(--accent-orange);
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    padding: 12px 35px;
    border-radius: 50px;
}
.claim-button:hover { text-decoration: none; color: white; transform: scale(1.05); }



/* --- Szöveges Oldalak (About, Terms, stb.) --- */
.text-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px 40px;
    text-align: left;
    background-color: rgba(44, 62, 80, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 8px;
}
.text-page h1 {
    font-size: 2.5em;
    border-bottom: 2px solid var(--light-blue);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.text-page h2 { font-size: 1.8em; margin-top: 30px; }
.text-page p, .text-page li { line-height: 1.7; color: var(--text-dark); }
.about-section {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
}
.about-section:last-child { border-bottom: none; }
.about-icon { width: 80px; height: 80px; margin-right: 30px; }




/* --- Kapcsolati Űrlap --- */
#contact-form button { display: block; margin: 20px auto 0 auto; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--medium-blue);
    color: white;
    font-size: 1em;
    box-sizing: border-box;
}
#form-status-message.success { background-color: var(--success-green); color: white; }
#form-status-message.error { background-color: var(--error-red); color: white; }



/* --- FAQ Szekció --- */
.faq-section {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
}
.faq-section h2 { text-align: center; margin-bottom: 30px; }
.faq-item { background-color: rgba(44, 62, 80, 0.6); border-radius: 8px; margin-bottom: 15px; }
.faq-question { padding: 15px 20px; font-size: 1.2em; cursor: pointer; position: relative; }
.faq-question::after { content: '+'; position: absolute; right: 20px; transition: transform 0.3s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; color: var(--text-dark); }
.faq-answer p { padding: 0 20px 20px 20px; }
.faq-item.active .faq-answer { max-height: 500px; }



/* --- Hirdetési Konténer --- */
.ad-container { margin: 25px auto; text-align: center; }
.ad-container.ad-leaderboard { min-height: 90px; }



/* --- Tájékoztató Sáv (Notice Bar) Stílusa --- */
#notice-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(243, 156, 18, 0.95);
    color: #fff;
    text-align: center;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    
    /* === EZ A LEGFONTOSABB SOR === */
    z-index: 9999; 
    
    /* Az animációhoz tartozó szabályok */
    transform: translateY(0);
    transition: transform 0.5s ease-in-out;
}

#notice-bar.hidden {
    transform: translateY(100%);
}

#notice-bar p {
    margin: 0;
    display: inline-block; /* Hogy a gomb mellé kerülhessen */
    padding-right: 20px;
    vertical-align: middle;
}

#notice-bar button {
    /* Egyszerű gomb stílus */
    background-color: #fff;
    color: #333;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    vertical-align: middle;
}



/* --- "Vissza a Tetejére" Gomb Stílusa --- */
#back-to-top {
    position: fixed; /* Rögzíti a gombot a képernyőhöz képest */
    bottom: 20px;    /* 20px távolság az aljától */
    right: 20px;     /* 20px távolság a jobb szélétől */
    
    background-color: var(--accent-orange); /* Az akcentus színünket használjuk */
    color: white;
    
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Teljesen kör alakú lesz */
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 24px;
    text-decoration: none;
    
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 9998; /* Legyen a notice-bar alatt, de minden más felett */
    
    opacity: 0; /* Alapból teljesen átlátszó */
    visibility: hidden; /* Alapból rejtett */
    transition: opacity 0.3s, visibility 0.3s;
}

#back-to-top:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: #f5b041; /* A narancs világosabb árnyalata */
    color: white; /* Hogy a link színe ne változzon */
    text-decoration: none;
}