/* =============================================
   30-Tage Challenge Generator
   Matches Skill Tandem Design System
   ============================================= */

/* === Hero === */
.ch-hero {
    background: linear-gradient(0deg, var(--primary-color, #044BD9) 0%, var(--primary-green, #0DE6FF) 100%);
    color: #fff;
    text-align: center;
    padding: 70px 20px 50px;
}
.ch-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.ch-hero p {
    font-family: 'Raleway', sans-serif;
    font-size: 1.15rem;
    opacity: .92;
    max-width: 600px;
    margin: 0 auto;
}

/* === Wrap === */
.ch-wrap {
    max-width: 820px;
    margin: -30px auto 40px;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

/* === Card === */
.ch-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    padding: 36px 32px;
}

/* === Select Intro === */
.ch-select-intro {
    text-align: center;
    margin-bottom: 28px;
}
.ch-select-icon {
    font-size: 2.8rem;
    margin-bottom: 8px;
}
.ch-select-intro h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.ch-select-intro p {
    font-family: 'Raleway', sans-serif;
    color: #5a6677;
    font-size: 1rem;
    max-width: 540px;
    margin: 0 auto 16px;
}
.ch-select-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: .88rem;
    color: #6c7a8d;
}
.ch-select-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* === Skill Grid === */
.ch-skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
.ch-skill-card {
    background: #f6f9ff;
    border: 2px solid #e8edf5;
    border-radius: 12px;
    padding: 18px 10px;
    text-align: center;
    cursor: pointer;
    transition: all .25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.ch-skill-card:hover {
    border-color: var(--secondary-color, #0487D9);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(4,75,217,.12);
}
.ch-skill-card.selected {
    border-color: var(--primary-color, #044BD9);
    background: var(--primary-color, #044BD9);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(4,75,217,.25);
}
.ch-skill-emoji {
    font-size: 2rem;
}
.ch-skill-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: .88rem;
}

/* === Select Action === */
.ch-select-action {
    text-align: center;
    padding-top: 8px;
}

/* === Buttons === */
.ch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    padding: 13px 32px;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
}
.ch-btn-primary {
    background: var(--primary-color, #044BD9);
    color: #fff;
}
.ch-btn-primary:hover {
    background: #033bb5;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(4,75,217,.3);
    color: #fff;
}
.ch-btn-secondary {
    background: #f0f4ff;
    color: var(--primary-color, #044BD9);
}
.ch-btn-secondary:hover {
    background: #e0e9ff;
}
.ch-btn-outline {
    background: transparent;
    color: #6c7a8d;
    border: 2px solid #e0e4ec;
}
.ch-btn-outline:hover {
    border-color: var(--primary-color, #044BD9);
    color: var(--primary-color, #044BD9);
}

/* === Plan Header === */
.ch-plan-header {
    text-align: center;
    margin-bottom: 20px;
}
.ch-plan-badge {
    display: inline-block;
    font-size: 2.4rem;
    padding: 12px 20px;
    border-radius: 14px;
    margin-bottom: 10px;
}
.ch-plan-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}
.ch-plan-subtitle {
    font-family: 'Raleway', sans-serif;
    color: #6c7a8d;
    font-size: 1.05rem;
}

/* === Progress === */
.ch-plan-progress {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    margin-bottom: 20px;
}
.ch-plan-progress-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    color: #1a1a2e;
    margin-bottom: 10px;
}
.ch-plan-progress-bar {
    background: #e8edf5;
    border-radius: 8px;
    height: 12px;
    overflow: hidden;
}
.ch-plan-progress-fill {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--primary-color, #044BD9), var(--primary-green, #0DE6FF));
    width: 0%;
    transition: width .5s ease;
}

/* === Week Tabs === */
.ch-week-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.ch-week-tab {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: .85rem;
    background: #f0f4ff;
    color: #6c7a8d;
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s ease;
}
.ch-week-tab.active {
    background: var(--primary-color, #044BD9);
    color: #fff;
}
.ch-week-tab:hover:not(.active) {
    background: #e0e9ff;
    color: var(--primary-color, #044BD9);
}

/* === Day Cards === */
.ch-days {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}
.ch-day-card {
    background: #fff;
    border: 2px solid #e8edf5;
    border-radius: 12px;
    padding: 16px 20px;
    transition: all .2s ease;
}
.ch-day-card.completed {
    background: #f0fdf4;
    border-color: #86efac;
}
.ch-day-header {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ch-day-num {
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.ch-day-info {
    flex: 1;
}
.ch-day-info h4 {
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}
.ch-day-check {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px;
    transition: transform .2s ease;
    flex-shrink: 0;
}
.ch-day-check:hover {
    transform: scale(1.2);
}
.ch-day-task {
    margin-top: 10px;
    padding-left: 54px;
}
.ch-day-task p {
    font-family: 'Raleway', sans-serif;
    color: #4a5568;
    font-size: .92rem;
    line-height: 1.6;
    margin: 0;
}

/* === Plan Actions === */
.ch-plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
}

/* === Share === */
.ch-share-section {
    text-align: center;
    margin-bottom: 28px;
}
.ch-share-section p {
    font-family: 'Raleway', sans-serif;
    color: #6c7a8d;
    margin-bottom: 12px;
}
.ch-share {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.ch-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: .85rem;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease;
    color: #fff;
}
.ch-share-btn.whatsapp { background: #25D366; }
.ch-share-btn.facebook { background: #1877F2; }
.ch-share-btn.twitter { background: #1a1a2e; }
.ch-share-btn.copy { background: #6c7a8d; }
.ch-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    color: #fff;
}

/* === CTA === */
.ch-cta {
    background: linear-gradient(135deg, var(--primary-color, #044BD9), var(--secondary-color, #0487D9));
    color: #fff;
    border-radius: 16px;
    padding: 36px 32px;
    text-align: center;
}
.ch-cta h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.ch-cta p {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    opacity: .92;
    margin-bottom: 18px;
}
.ch-cta .ch-btn-primary {
    background: #fff;
    color: var(--primary-color, #044BD9);
}
.ch-cta .ch-btn-primary:hover {
    background: #f0f4ff;
    box-shadow: 0 4px 16px rgba(255,255,255,.3);
}

/* === FAQ Section (uses homepage .faq styles) === */
#faq {
    padding: 50px 0;
}

/* === Print Logo (hidden on screen, visible in print) === */
.ch-print-logo {
    display: none;
}

/* === Print Styles === */
@media print {
    .ch-hero,
    .ch-week-tabs,
    .ch-plan-actions,
    .ch-share-section,
    .ch-cta,
    #faq,
    .ch-day-check,
    nav, footer,
    .cookie-bar {
        display: none !important;
    }
    .ch-print-logo {
        display: block !important;
        text-align: center;
        margin-bottom: 12px;
        padding-top: 10px;
    }
    .ch-print-logo img {
        height: 36px;
        width: auto;
    }
    .ch-wrap { max-width: 100%; margin: 0; padding: 10px; }
    .ch-plan-header { margin-bottom: 10px; }
    .ch-plan-progress { box-shadow: none; border: 1px solid #ddd; }
    .ch-day-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        padding: 10px 14px;
        margin-bottom: 6px;
    }
    .ch-day-card { display: block !important; }
    .ch-day-task { padding-left: 44px; }
    .ch-day-num { width: 32px; height: 32px; font-size: .85rem; }
}

/* === Responsive === */
@media (max-width: 768px) {
    .ch-hero { padding: 60px 16px 40px; }
    .ch-hero h1 { font-size: 1.7rem; }
    .ch-hero p { font-size: 1rem; }
    .ch-card { padding: 24px 18px; }
    .ch-skills { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ch-skill-emoji { font-size: 1.6rem; }
    .ch-skill-name { font-size: .82rem; }
    .ch-plan-title { font-size: 1.35rem; }
    .ch-week-tabs { gap: 6px; }
    .ch-week-tab { padding: 8px 14px; font-size: .8rem; }
    .ch-day-header { gap: 10px; }
    .ch-day-num { min-width: 34px; height: 34px; font-size: .88rem; }
    .ch-day-info h4 { font-size: .88rem; }
    .ch-day-task { padding-left: 44px; }
    .ch-day-task p { font-size: .87rem; }
    .ch-btn { padding: 11px 24px; font-size: .92rem; }
    .ch-plan-actions { flex-direction: column; align-items: center; }
    .ch-share { flex-wrap: wrap; }
    .ch-share-btn { font-size: .8rem; padding: 9px 14px; }
    .ch-cta { padding: 28px 20px; }
    .ch-cta h3 { font-size: 1.2rem; }
    .ch-select-meta { gap: 12px; font-size: .82rem; }
}

@media (max-width: 480px) {
    .ch-hero h1 { font-size: 1.4rem; }
    .ch-skills { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .ch-skill-card { padding: 14px 8px; }
}
