/* ============================================
   CZARY.PHP – STYLE DEDYKOWANE
   Spójne z globalnym layoutem
============================================ */

/* Kontener strony */
#czary-container {
    width: 80%;
    max-width: 1200px;
    margin: 60px auto;
    background: rgba(0, 20, 10, 0.35); /* klimat czarów */
    border: 1px solid rgba(0, 255, 150, 0.15);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 255, 120, 0.08);
}

/* Nagłówek */
#czary-container h1 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 25px;
    color: #00ff99;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0,255,150,0.35);
}

/* Opisy pól */
#czary-container label {
    display: block;
    margin: 15px 0 8px;
    color: #d2ffd2;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Pola tekstowe */
#czary-container textarea {
    width: calc(100% - 20px); /* JEDYNA POPRAWKA – dopasowanie do kontenera */
    min-height: 160px;
    background: rgba(10, 20, 15, 0.65);
    border: 1px solid rgba(0,255,150,0.20);
    color: #e8ffe8;
    padding: 12px;
    font-size: 1rem;
    border-radius: 8px;
    resize: none;
    font-family: "Courier New", monospace;
    letter-spacing: 1px;
    box-shadow: inset 0 0 12px rgba(0,255,120,0.05);
    transition: border 0.3s, box-shadow 0.3s;
}

#czary-container textarea:focus {
    border-color: #23ff8a;
    box-shadow: 0 0 12px rgba(0,255,150,0.25);
    outline: none;
}

/* Przyciski */
#czary-container button {
    background: #0b2216;
    border: 1px solid #23ff8a;
    color: #d2ffd2;
    padding: 10px 20px;
    margin-top: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.25s ease;
    font-family: "Cinzel", serif;
}

#czary-container button:hover {
    background: #114428;
    box-shadow: 0 0 10px rgba(0,255,150,0.35);
}

/* Animacja po skopiowaniu */
textarea.copied {
    animation: pulse 0.8s ease-out;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 6px #39ff85; }
    50%  { box-shadow: 0 0 22px #39ff85; }
    100% { box-shadow: 0 0 6px #39ff85; }
}

/* Responsywność */
@media (max-width: 992px) {
    #czary-container {
        width: 95%;
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    #czary-container {
        width: 80%;
        padding: 25px 15px;
    }

    #czary-container h1 {
        font-size: 1.8rem;
    }

    #czary-container textarea {
        width: calc(100% - 20px); /* zachowujemy poprawkę na mobile */
        min-height: 140px;
    }
}
