@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; overflow-x: hidden; position: relative; }

body {
    font-family: 'Inter', sans-serif;
    background: #090d16;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 15px;
}

body::before {
    content: ""; position: absolute; width: 300px; height: 300px;
    background: radial-gradient(circle, #e5a93b 0%, transparent 70%);
    top: 5%; left: 5%; opacity: 0.2; filter: blur(60px);
    animation: floatBg 8s ease-in-out infinite alternate; pointer-events: none;
}

body::after {
    content: ""; position: absolute; width: 350px; height: 350px;
    background: radial-gradient(circle, #ff4b4b 0%, transparent 70%);
    bottom: 5%; right: 5%; opacity: 0.12; filter: blur(70px);
    animation: floatBg 12s ease-in-out infinite alternate-reverse; pointer-events: none;
}

@keyframes floatBg {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, 20px) scale(1.1); }
}

.container {
    text-align: center; max-width: 500px; width: 100%;
    background: rgba(23, 31, 50, 0.75); padding: 50px 35px;
    border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
    position: relative; z-index: 10; box-sizing: border-box;
}

.logo {
    font-size: 3.2rem; font-weight: 400; letter-spacing: -1px;
    margin-bottom: 40px; color: #ffffff; line-height: 1;
    text-transform: lowercase; text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.logo span { font-weight: 800; color: #ffbe4b; }

.links-grid { display: grid; grid-template-columns: 1fr; gap: 14px; width: 100%; }

.card {
    display: flex; align-items: center; background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12); padding: 18px 24px;
    border-radius: 16px; color: #ffffff; text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); width: 100%; box-sizing: border-box;
}

.card:hover {
    background: rgba(255, 255, 255, 0.18); border-color: #ffbe4b;
    transform: translateY(-3px); box-shadow: 0 12px 24px -8px rgba(255, 190, 75, 0.3);
}

.icon {
    font-size: 1.8rem; margin-right: 15px; min-width: 30px;
    text-align: center; transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.card:hover .icon { transform: scale(1.15); }

.title { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.1px; white-space: nowrap; }

@media (max-width: 480px) {
    .container { padding: 40px 16px; background: rgba(23, 31, 50, 0.85); margin: 0 auto; width: 100%; }
    .logo { font-size: 2.8rem; margin-bottom: 30px; }
    .card { padding: 16px 14px; }
    .icon { font-size: 1.4rem; margin-right: 10px; min-width: 25px; }
    .title { font-size: 0.92rem; }
}

/* =========================================
   STYLE DLA PODSTRON (np. check.html)
   ========================================= */

.subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: -25px; /* Przybliża podtytuł do logo */
    margin-bottom: 35px;
}

.search-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

/* Stylizacja pola input */
input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

input[type="text"]:focus {
    border-color: #ffbe4b;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(255, 190, 75, 0.15);
}

/* Stylizacja przycisku */
.check-btn {
    width: 100%;
    padding: 16px;
    background: #ffbe4b;
    color: #090d16;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 190, 75, 0.25);
}

.check-btn:hover {
    background: #ffce70;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 190, 75, 0.35);
}

.check-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(255, 190, 75, 0.2);
}

/* Sekcja wyników i komunikaty */
.result-area {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 25px 20px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.initial-state p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Animacja ładowania (spinner) */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 0;
}

.loading p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 190, 75, 0.2);
    border-top-color: #ffbe4b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Stopka */
.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer strong {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

/* =========================================
   PRZYCISK POWROTU
   ========================================= */
   
.back-btn {
    position: absolute;
    top: 25px;
    left: 25px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 20;
}

.back-btn:hover {
    color: #ffbe4b;
    transform: translateX(-4px); /* Płynne przesunięcie w lewo przy najechaniu */
}

/* Dopasowanie na ekranach telefonów */
@media (max-width: 480px) {
    .back-btn {
        top: 20px;
        left: 20px;
        font-size: 0.85rem;
    }
}

/* =========================================
   STYLE KARTY WYNIKÓW (JS)
   ========================================= */

.result-card {
    text-align: center;
    width: 100%;
    animation: fadeIn 0.4s ease;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.result-card h2 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: #ffffff;
}

.result-card .user-nick {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.result-card .user-nick strong {
    color: #ffffff;
}

.date-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 15px;
    margin-bottom: 20px;
}

.date-box span {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.date-box strong {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.days-left {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.days-left .number {
    display: block;
    font-size: 3.2rem;
    font-weight: 800;
    margin-top: 5px;
    line-height: 1;
}

/* Warianty kolorystyczne */
.status-valid .number {
    color: #ffbe4b;
    text-shadow: 0 0 25px rgba(255, 190, 75, 0.35);
}

.status-expired .number {
    color: #ff4b4b;
    text-shadow: 0 0 25px rgba(255, 75, 75, 0.35);
}

.extra-notes, .reason-notes {
    margin-top: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}