/* =============================================
   WhatsApp Template Library - Public Pages CSS
   ============================================= */

/* Stats (used in hero sections) */
.wtl-stat {
    text-align: center;
    min-width: 70px;
}
.wtl-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}
.wtl-stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    color: #e0f7ef;
}

/* Breadcrumb (white text on gradient hero) */
.wtl-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}
.wtl-breadcrumb .breadcrumb-item a:hover {
    color: #fff;
}
.wtl-breadcrumb .breadcrumb-item.active {
    color: #fff;
}
.wtl-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* Badges (compatible with older Bootstrap without bg-opacity) */
.wtl-badge-success {
    background-color: rgba(92, 201, 167, 0.15);
    color: #2dce89;
}
.wtl-badge-info {
    background-color: rgba(80, 181, 255, 0.15);
    color: #11cdef;
}
.wtl-badge-warning {
    background-color: rgba(255, 190, 61, 0.15);
    color: #fb6340;
}
.wtl-badge-primary {
    background-color: rgba(0, 138, 255, 0.15);
    color: #008aff;
}
.wtl-badge-secondary {
    background-color: rgba(113, 128, 150, 0.15);
    color: #718096;
}

/* Detail page hero badges (white-ish on gradient) */
.wtl-badge-detail-category {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
}
.wtl-badge-detail-industry {
    background-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
}

/* Card Hover */
.wtl-card-hover {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}
.wtl-card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-color: #008aff !important;
}

/* Industry Icons */
.wtl-industry-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.wtl-industry-icon i {
    font-size: 1.5rem;
    color: #008aff;
}

/* Template Icons */
.wtl-template-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
}
.wtl-template-icon i {
    font-size: 1.1rem;
    color: #008aff;
}

/* Step Icons */
.wtl-step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #008aff, #0070d1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.wtl-step-icon span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

/* Sidebar CTA card */
.wtl-sidebar-cta {
    border: 2px solid #008aff;
    border-radius: 12px;
}

/* =============================================
   WhatsApp Phone Mockup
   ============================================= */
.wtl-phone-mockup {
    display: flex;
    justify-content: center;
}
.wtl-phone-mockup-detail {
    position: sticky;
    top: 100px;
}
.wtl-phone-frame {
    width: 320px;
    background: #e5ddd5;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 8px solid #1a1a2e;
}
.wtl-phone-header {
    background: #075e54;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wtl-phone-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
}
.wtl-phone-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}
.wtl-phone-body {
    padding: 16px;
    min-height: 280px;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8c3b9' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* WhatsApp Bubble */
.wtl-wa-bubble {
    background: #fff;
    border-radius: 0 8px 8px 8px;
    padding: 8px 10px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-size: 0.85rem;
    line-height: 1.5;
    color: #303030;
}
.wtl-wa-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid #fff;
    border-left: 8px solid transparent;
}
.wtl-wa-bubble p {
    margin-bottom: 4px;
}
.wtl-wa-bubble-header {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #1a1a2e;
}
.wtl-wa-bubble-image {
    background: #f0f0f0;
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    margin-bottom: 8px;
}
.wtl-wa-footer {
    font-size: 0.75rem;
    color: #8696a0;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #f0f0f0;
}
.wtl-wa-time {
    font-size: 0.7rem;
    color: #8696a0;
    text-align: right;
    margin-top: 2px;
}
.wtl-wa-buttons-container {
    margin-top: 6px;
    border-top: 1px solid #e8e8e8;
}
.wtl-wa-button {
    display: block;
    text-align: center;
    padding: 8px;
    color: #00a884;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-top: 1px solid #e8e8e8;
}
.wtl-wa-button:first-child {
    border-top: none;
}

/* Variable highlight in mockup */
.wtl-variable {
    background: #dcf8c6;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Template Body Display */
.wtl-template-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #303030;
    word-wrap: break-word;
}
.wtl-wa-body-text {
    word-wrap: break-word;
}

/* Copy Button */
.wtl-copy-btn {
    transition: all 0.3s ease;
}
.wtl-copy-btn.copied {
    background-color: #198754 !important;
    border-color: #198754 !important;
}

/* FAQ Chevron Rotation */
.btn-link:not(.collapsed) .fa-chevron-down {
    transform: rotate(180deg);
}
.fa-chevron-down {
    transition: transform 0.3s ease;
}

/* White-50 helper for detail hero stars */
.text-white-50 {
    color: rgba(255,255,255,0.5) !important;
}

/* Benefits & Practices Lists (detail page SEO content) */
.wtl-benefits-list {
    list-style: none;
    padding-left: 0;
}
.wtl-benefits-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    line-height: 1.6;
}
.wtl-benefits-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #2dce89;
    font-size: 0.85rem;
}
.wtl-practices-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .wtl-stat-number {
        font-size: 1.4rem;
    }
    .wtl-phone-frame {
        width: 280px;
    }
    .wtl-phone-mockup-detail {
        position: static;
    }
}
