/* calc/assets/css/calculators/days-together-counter.css */

:root {
    --love-primary: #BE123C; /* Карминный / Rose-700 */
    --love-bg: #FFF1F2;      /* Нежно-розовый / Rose-50 */
    --love-dark: #881337;    /* Rose-900 */
    --love-accent: #FDA4AF;  /* Rose-300 */
    --love-card-bg: linear-gradient(135deg, #FFE4E6 0%, #FCE7F3 100%);
}

/* --- ВЕРХНЯЯ ЧАСТЬ --- */
.calc-header { margin-bottom: 40px; }
.subtitle { color: var(--text-secondary); margin-top: 12px; font-size: 16px; line-height: 1.5; }

.calc-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 992px) { .calc-grid { grid-template-columns: 1fr 1.1fr; gap: 48px; } }

.form-divider { border: none; height: 1px; background: #FECDD3; margin: 24px 0; opacity: 0.7; }

/* Инпуты */
.input-group { margin-bottom: 24px; }
.m-0 { margin-bottom: 0 !important; }
.mt-3 { margin-top: 16px !important; }
.text-center { text-align: center; }

.label-with-icon { display: flex; align-items: center; gap: 8px; color: var(--love-primary) !important; font-size: 16px !important; font-weight: 700 !important; }
.input-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: #4B5563; text-transform: uppercase; letter-spacing: 0.5px; }

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper input {
    width: 100%; padding: 14px 16px;
    font-size: 16px; font-weight: 700; font-family: inherit;
    border: 1px solid #D1D5DB; border-radius: 12px;
    transition: all 0.2s; outline: none; background: #fff;
    color: #1F2937;
}
.input-wrapper input:focus { border-color: var(--love-primary); box-shadow: 0 0 0 4px rgba(190, 18, 60, 0.15); }

.row-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.highlight-group { background: var(--love-bg); padding: 20px; border-radius: 16px; border: 1px dashed var(--love-primary); }
.helper-text { font-size: 12px; color: #6B7280; margin-top: 8px; line-height: 1.4; }
.group-title-small { font-size: 14px; font-weight: 700; color: var(--love-primary); text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 16px 0; border-left: 3px solid var(--love-primary); padding-left: 8px; }


/* --- ПРАВАЯ ЧАСТЬ: РЕЗУЛЬТАТ (KILLER FEATURE: Открытка) --- */
@media (min-width: 992px) { .sticky-card { position: sticky; top: 24px; transition: top 0.3s; } }

.love-result-card {
    background: var(--love-card-bg);
    border: none; padding: 32px;
    border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(190, 18, 60, 0.15);
    position: relative;
    overflow: hidden;
    color: var(--love-dark);
}

/* Декоративные пятна (Glassmorphism effect) */
.love-blob { position: absolute; border-radius: 50%; filter: blur(40px); z-index: 1; opacity: 0.6; }
.blob-1 { width: 200px; height: 200px; background: #FDA4AF; top: -50px; left: -50px; animation: float1 8s infinite alternate; }
.blob-2 { width: 250px; height: 250px; background: #FDE047; bottom: -80px; right: -50px; animation: float2 10s infinite alternate; }

@keyframes float1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(30px, 30px) scale(1.1); } }
@keyframes float2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-40px, -20px) scale(1.2); } }

.love-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }

/* Имена и пульсирующее сердце */
.couple-names { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; font-size: 24px; font-weight: 800; color: var(--love-dark); text-shadow: 0 2px 4px rgba(255,255,255,0.5); }
.heart-pulse-box { font-size: 32px; color: var(--love-primary); filter: drop-shadow(0 4px 10px rgba(190, 18, 60, 0.3)); }
.pulse-anim { animation: heartbeat 1.2s infinite; display: inline-block; }

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.3); }
    60% { transform: scale(1); }
}

/* Главный счетчик дней */
.main-time { margin-bottom: 32px; }
.mt-val { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -2px; color: var(--love-primary); text-shadow: 0 4px 10px rgba(255,255,255,0.8); margin-bottom: 8px; }
.mt-lbl { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }

/* Разбивка на годы/месяцы */
.time-breakdown { display: flex; gap: 16px; margin-bottom: 24px; width: 100%; justify-content: center; }
.tb-box { flex: 1; background: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.8); backdrop-filter: blur(10px); padding: 12px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.tb-val { font-size: 24px; font-weight: 800; color: var(--love-primary); }
.tb-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; opacity: 0.7; margin-top: 4px; }

.love-divider { height: 1px; width: 100%; background: linear-gradient(90deg, transparent, rgba(190, 18, 60, 0.2), transparent); margin: 24px 0; }

/* Живая статистика (Часы, Минуты) */
.live-stats { width: 100%; text-align: left; }
.ls-title { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--love-primary); opacity: 0.8; margin: 0 0 16px 0; text-align: center; }
.ls-grid { display: flex; flex-direction: column; gap: 12px; }
.ls-item { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.4); padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.5); }
.ls-item i { font-size: 24px; color: var(--love-primary); opacity: 0.8; }
.ls-item div { display: flex; flex-direction: column; }
.ls-val { font-size: 18px; font-weight: 800; color: var(--love-dark); font-family: monospace; }
.ls-lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; opacity: 0.7; }

/* Годовщина */
.anniversary-hint { margin-top: 24px; font-size: 14px; font-weight: 600; color: var(--love-dark); background: rgba(255,255,255,0.6); padding: 12px 20px; border-radius: 99px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border: 1px solid rgba(255,255,255,0.8); }
.anniversary-hint i { color: var(--love-primary); font-size: 18px; }


/* --- НИЖНЯЯ ЧАСТЬ (SEO, INFO) --- */
.info-wrapper { padding: 80px 0; margin-top: 60px; border-top: 1px solid #E5E7EB; }

.author-badge { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 40px; padding: 20px; background: #F8FAFC; border-radius: 16px; border: 1px solid #E2E8F0; }
.author-avatar { width: 48px; height: 48px; background: var(--love-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.author-info { display: flex; flex-direction: column; min-width: 0; }
.author-name { font-size: 15px; font-weight: 700; color: #111827; line-height: 1.4; margin-bottom: 4px; }
.author-date { font-size: 13px; color: #6B7280; }

.icon-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 32px; font-size: 26px; font-weight: 800; color: #111827; line-height: 1.25; letter-spacing: -0.02em; }
.header-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.06); flex-shrink: 0; margin-top: -6px; font-size: 26px; }

.rose-icon { color: var(--love-primary); }
.dark-icon { color: var(--love-dark); }
.text-rose { color: var(--love-primary); font-weight: 700;}
.text-danger { color: #EF4444; font-weight: 700;}

.formulas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 56px; }
.formula-card { background: #fff; border: 1px solid rgba(0,0,0,0.04); box-shadow: 0 4px 20px rgba(0,0,0,0.03); border-radius: 24px; padding: 32px; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; flex-direction: column; }
.formula-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(190, 18, 60, 0.1); border-color: rgba(190, 18, 60, 0.1); }
.formula-header { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.formula-card h3 { margin: 0; font-size: 20px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }

.badge-rose { background: var(--love-primary); color: #fff; padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; display: inline-block; }
.badge-dark { background: var(--love-dark); color: #fff; padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; display: inline-block; }

.formula-card p { font-size: 15px; color: var(--text-secondary); margin: 0; line-height: 1.6; font-weight: 500; }
.math-expression { background: var(--love-bg); border: 1px dashed var(--love-primary); padding: 18px; border-radius: 14px; font-weight: 700; color: var(--love-dark); text-align: center; margin-bottom: 20px; font-size: 17px; font-family: 'Courier New', Courier, monospace; letter-spacing: 0.5px; }

.soft-divider { border: none; height: 1px; background: linear-gradient(90deg, transparent, #E5E7EB, transparent); margin: 56px 0; opacity: 0.7; }
.intro-text { font-size: 16px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 40px; }
.calc-description p { font-size: 17px; line-height: 1.7; color: #4B5563; margin-bottom: 24px; }
.calc-description strong { color: #1F2937; font-weight: 700; }

/* Перелинковка */
.internal-links-box { margin-top: 32px; background: #F3F4F6; padding: 24px; border-radius: 16px; border-left: 4px solid var(--love-primary); }
.internal-links-box h4 { margin: 0 0 12px 0; font-size: 17px; color: #111827; }
.internal-links-box ul { margin: 0; padding-left: 20px; color: #4B5563; }
.internal-links-box li { margin-bottom: 8px; font-size: 15px; }
.internal-links-box a { color: var(--love-primary); text-decoration: underline; font-weight: 600; }

/* SEO Таблица */
.seo-table-wrapper { overflow-x: auto; margin-bottom: 48px; background: #fff; border-radius: 16px; border: 1px solid #E5E7EB; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.seo-table-wrapper::-webkit-scrollbar { height: 6px; }
.seo-table-wrapper::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
.seo-table { width: 100%; border-collapse: collapse; min-width: 500px; text-align: left; }
.seo-table th { background: #F9FAFB; padding: 18px 24px; font-size: 13px; font-weight: 800; color: #6B7280; text-transform: uppercase; border-bottom: 1px solid #E5E7EB; letter-spacing: 0.5px; }
.seo-table td { padding: 18px 24px; font-size: 15px; border-bottom: 1px solid #F3F4F6; color: #374151; vertical-align: top; line-height: 1.5; }
.seo-table tr:last-child td { border-bottom: none; }

@media (max-width: 900px) {
    .calc-header { margin-bottom: 32px; }
    .formulas-grid { grid-template-columns: 1fr; gap: 20px; }
    .icon-heading { font-size: 22px; gap: 12px; }
    .header-icon { width: 44px; height: 44px; font-size: 22px; }
    .formula-card { padding: 24px; }
}

@media (max-width: 480px) {
    .author-badge { padding: 16px; gap: 12px; align-items: flex-start; flex-direction: row; }
    .author-avatar { width: 40px; height: 40px; font-size: 18px; }
    
    .row-2-col { grid-template-columns: 1fr; gap: 16px; }
    
    .love-result-card { padding: 24px 16px; }
    .couple-names { font-size: 20px; gap: 10px; margin-bottom: 24px; }
    .mt-val { font-size: 48px; }
    .time-breakdown { gap: 8px; }
    .tb-box { padding: 8px; }
    .tb-val { font-size: 20px; }
    .tb-lbl { font-size: 10px; }
    
    .ls-item { padding: 10px 12px; }
    .ls-val { font-size: 16px; }
}