/* ===== PinnyBinny — www/templates.php ===== */

.tpl-www-page {
    background: var(--bg-main, #f8f9fa);
}

/* Page intro (replaces hero) */
.tpl-page-intro {
    min-height: 0;
    padding-bottom: 48px;
}
.tpl-hero-www__badge {
    display: inline-block;
    background: #f0f0ff;
    color: #5c6ef8;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: .03em;
}

/* Shared container */
.tpl-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.tpl-btn-primary {
    display: inline-block;
    background: #fff;
    color: #5c6ef8;
    padding: 13px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.tpl-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.tpl-btn-outline {
    display: inline-block;
    background: transparent;
    color: #5c6ef8;
    padding: 11px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    border: 2px solid #5c6ef8;
    transition: background .15s, color .15s;
}
.tpl-btn-outline:hover {
    background: #5c6ef8;
    color: #fff;
}

/* Category section */
.tpl-cats-section {
    padding: 64px 0 48px;
}
.tpl-cats-section h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-primary, #1a202c);
}
.tpl-cats-subtitle {
    text-align: center;
    color: var(--text-secondary, #718096);
    font-size: .95rem;
    margin: 0 0 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.tpl-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.tpl-cat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 20px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    text-decoration: none;
    color: var(--text-primary, #1a202c);
    transition: transform .15s, box-shadow .15s;
    border: 1px solid #e8ecf0;
}
.tpl-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(92,110,248,.18);
    border-color: #5c6ef8;
}
.tpl-cat-card__icon {
    font-size: 1.7rem;
    line-height: 1;
}
.tpl-cat-card__label {
    font-size: .95rem;
    font-weight: 700;
}
.tpl-cat-card__examples {
    font-size: .8rem;
    color: var(--text-secondary, #718096);
    line-height: 1.4;
}

/* Featured section */
.tpl-featured-section {
    padding: 48px 0 64px;
    background: #fff;
}
.tpl-featured-section h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 32px;
    color: var(--text-primary, #1a202c);
}
.tpl-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.tpl-feat-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.09);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary, #1a202c);
    transition: transform .15s, box-shadow .15s;
    border: 1px solid #e8ecf0;
}
.tpl-feat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.tpl-feat-card__cover {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.tpl-feat-card__icon {
    font-size: 2.2rem;
}
.tpl-feat-card__type {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,.38);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.tpl-feat-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
}
.tpl-feat-card__cat {
    font-size: .75rem;
    font-weight: 700;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.tpl-feat-card__title {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.3;
}
.tpl-feat-card__desc {
    font-size: .82rem;
    color: var(--text-secondary, #718096);
    line-height: 1.4;
    flex: 1;
}
.tpl-feat-card__meta {
    font-size: .78rem;
    color: var(--text-muted, #a0aec0);
    margin-top: 8px;
}

/* How it works */
.tpl-how-section {
    padding: 64px 0;
}
.tpl-how-section h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 40px;
    color: var(--text-primary, #1a202c);
}
.tpl-how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.tpl-how-step {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    border: 1px solid #e8ecf0;
}
.tpl-how-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5c6ef8, #7c3aed);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 14px;
}
.tpl-how-step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px;
}
.tpl-how-step p {
    font-size: .88rem;
    color: var(--text-secondary, #718096);
    margin: 0;
    line-height: 1.5;
}

/* CTA */
.tpl-cta-section {
    padding: 72px 24px;
    background: linear-gradient(135deg, #5c6ef8 0%, #7c3aed 100%);
    color: #fff;
    text-align: center;
}
.tpl-cta-section h2 {
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0 0 14px;
}
.tpl-cta-section p {
    font-size: 1.05rem;
    opacity: .88;
    margin: 0 0 32px;
}
.tpl-cta-section .tpl-btn-primary {
    color: #5c6ef8;
}
