/* ═══════════════════════════════════════════════
   animal.css — Individual Animal Calculator Pages
   ═══════════════════════════════════════════════ */

/* ── PAGE HEADER ── */
.page-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-home:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.header-emoji {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
    animation: emojiFloat 3s ease-in-out infinite;
}

@keyframes emojiFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.page-header h1 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.page-header h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.header-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.header-sub strong {
    color: #a78bfa;
    font-weight: 600;
}

/* ── PAGE MAIN LAYOUT ── */
.page-main {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ── CARD BASE ── */
.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ── CALCULATOR SECTION ── */
.calculator-section .section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.calculator-section>p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* ── FORM ── */
.calc-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group .required {
    color: #f87171;
}

.form-group input[type="date"],
.form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    color-scheme: dark;
    outline: none;
    width: 100%;
}

.form-group input[type="date"]:focus,
.form-group select:focus {
    border-color: #845EC2;
    background: rgba(132, 94, 194, 0.08);
    box-shadow: 0 0 0 3px rgba(132, 94, 194, 0.15);
}

.form-group select option {
    background: #1a1b2e;
    color: white;
}

.range-toggle label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.range-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #845EC2;
    cursor: pointer;
}

.range-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ── CALC BUTTON ── */
.calc-btn {
    background: var(--primary-gradient);
    border: none;
    border-radius: 14px;
    padding: 1rem 2rem;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 20px rgba(132, 94, 194, 0.3);
    margin-top: 0.5rem;
}

.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(132, 94, 194, 0.5);
    filter: brightness(1.08);
}

.calc-btn:active {
    transform: translateY(0);
}

/* ── RESULT SECTION ── */
.result-section {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    animation: resultFadeIn 0.5s ease-out;
}

@keyframes resultFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: linear-gradient(135deg, rgba(132, 94, 194, 0.15) 0%, rgba(255, 107, 107, 0.1) 100%);
    border: 1px solid rgba(132, 94, 194, 0.4);
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
}

.result-icon {
    font-size: 2.5rem;
    margin-bottom: 0.6rem;
}

.result-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.result-date {
    font-size: 1.6rem;
    font-weight: 800;
    color: #c4b5fd;
    line-height: 1.3;
}

.delivery-window {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.window-label {
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

#window-display {
    color: #86efac;
    font-weight: 600;
}

/* ── PROGRESS BAR ── */
.progress-wrap {
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.progress-bar-bg {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    height: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 50px;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 10px rgba(132, 94, 194, 0.6);
}

.progress-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 0.6rem;
    text-align: right;
}

/* ── DISCLAIMER ── */
.disclaimer {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 0.8rem 1.2rem;
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 10px;
}

/* ── SEO ARTICLE ── */
.seo-article {
    line-height: 1.8;
    color: #cbd5e1;
}

.seo-article h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.seo-article h2:first-child {
    margin-top: 0;
}

.seo-article p {
    margin-bottom: 1rem;
}

/* ── FAQ ── */
.faq-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    padding: 1.1rem 1.4rem;
    text-align: left;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background 0.3s ease;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: #845EC2;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] {
    background: rgba(132, 94, 194, 0.1);
}

.faq-question[aria-expanded="true"]::after {
    transform: rotate(45deg);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.06);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer p {
    padding: 1rem 1.4rem 1.2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0;
}

/* ── RELATED / INTERNAL LINKS ── */
.related-section {
    padding: 2rem 0 1rem;
}

.related-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-align: center;
}

.related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.related-link {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50px;
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.related-link:hover {
    background: rgba(132, 94, 194, 0.15);
    border-color: rgba(132, 94, 194, 0.4);
    color: #c4b5fd;
    transform: translateY(-2px);
}

/* ── FOOTER ── */
.page-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.page-footer a {
    color: #a78bfa;
    text-decoration: none;
}

.page-footer a:hover {
    text-decoration: underline;
}

/* ── HOMEPAGE: show days on cards ── */
.animal-card .card-days {
    font-size: 0.78rem;
    color: #845EC2;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.2rem;
    }

    .header-emoji {
        font-size: 3.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .range-fields {
        grid-template-columns: 1fr;
    }

    .result-date {
        font-size: 1.3rem;
    }

    .seo-article h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 3rem 1rem 1.5rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .card {
        padding: 1.2rem;
        border-radius: 18px;
    }
}