/**
 * V4 Pharmacy Page Styles - Comprehensive Violet & Teal Design System
 * 
 * This CSS file ensures pharmacy pages are styled even if inline styles fail to load.
 * Works with pharmacy-page-content-v4.php template.
 * 
 * @version 4.0.0
 * @package Mounjaro_Pharmacy_Pages_Generator
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ============================================
   GLOBAL RESETS & BASE STYLES
   ============================================ */

/* Hide WordPress default page title */
.mppg-pharmacy-page-v4 + .entry-title,
.mppg-pharmacy-page-v5 + .entry-title,
.entry-header .entry-title,
.page-header .entry-title,
.page-title,
article .entry-title,
.post-title,
h1.entry-title {
    display: none !important;
}

.mppg-pharmacy-page-v4,
.mppg-pharmacy-page-v5 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    color: #1e293b;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 3rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    margin-top: 2rem;
}

p {
    margin-bottom: 1rem;
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.mppg-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    font-size: 0.875rem;
    color: #64748b;
}

.mppg-breadcrumbs li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
}

.mppg-breadcrumbs a {
    color: #7C4DFF;
    text-decoration: none;
}

.mppg-breadcrumbs a:hover {
    text-decoration: underline;
}

/* ============================================
   PHARMACY HEADER
   ============================================ */

.mppg-pharmacy-header {
    background: linear-gradient(135deg, #7C4DFF 0%, #9575FF 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.mppg-pharmacy-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.mppg-pharmacy-header-content {
    position: relative;
    z-index: 1;
}

.mppg-pharmacy-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.mppg-pharmacy-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.mppg-pharmacy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.938rem;
}

.meta-icon {
    font-size: 1.25rem;
}

/* ============================================
   BADGES & PILLS
   ============================================ */

.badge,
.badge-pill {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.25rem;
}

.badge-budget { background: #ECFDF5; color: #10B981; }
.badge-fast { background: #FEF3C7; color: #F59E0B; }
.badge-transparent { background: #DBEAFE; color: #3B82F6; }
.badge-discount { background: #FCE7F3; color: #EC4899; }
.badge-trusted { background: #E0E7FF; color: #6366F1; }

/* ============================================
   CARDS
   ============================================ */

.card,
.pharmacy-card,
.mppg-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

/* ============================================
   PRICING DISPLAY
   ============================================ */

.price,
.pharmacy-price,
.mppg-price {
    font-size: 2rem;
    font-weight: 700;
    color: #7C4DFF;
    margin: 1rem 0;
}

.mppg-price-unavailable {
    color: #64748b;
    font-style: italic;
}

/* ============================================
   PRICING TABLE
   ============================================ */

.mppg-pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.mppg-pricing-table thead {
    background: linear-gradient(135deg, #7C4DFF 0%, #9575FF 100%);
    color: white;
}

.mppg-pricing-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.938rem;
}

.mppg-pricing-table td {
    padding: 1rem;
    border-bottom: 1px solid #E2E8F0;
}

.mppg-pricing-table tr:last-child td {
    border-bottom: none;
}

.mppg-pricing-table tr:hover {
    background: #F8FAFC;
}

.mppg-price-cell {
    font-size: 1.25rem;
    font-weight: 700;
    color: #7C4DFF;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn,
.button,
.mppg-btn,
button[type="button"],
button[type="submit"] {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #7C4DFF 0%, #9575FF 100%);
    color: white !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    font-size: 1rem;
}

.btn:hover,
.button:hover,
.mppg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 77, 255, 0.3);
    text-decoration: none;
    color: white !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #08B2A5 0%, #0A9F94 100%);
}

.btn-secondary:hover {
    box-shadow: 0 8px 24px rgba(8, 178, 165, 0.3);
}

/* ============================================
   DISCOUNT CODES
   ============================================ */

.mppg-discount-card {
    background: linear-gradient(135deg, #FCE7F3 0%, #FBE4F2 100%);
    border-left: 4px solid #EC4899;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.mppg-discount-code {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #EC4899;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    margin: 0.5rem 0;
}

.mppg-copy-btn {
    background: #EC4899;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-left: 0.5rem;
    transition: background 0.2s;
}

.mppg-copy-btn:hover {
    background: #DB2777;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.mppg-faq-accordion {
    margin: 2rem 0;
}

.mppg-faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.mppg-faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem;
    background: white;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.mppg-faq-question:hover {
    background: #F8FAFC;
}

.mppg-faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: #475569;
    line-height: 1.6;
}

.mppg-faq-icon {
    font-size: 1.5rem;
    color: #7C4DFF;
    transition: transform 0.3s;
}

.mppg-faq-item.active .mppg-faq-icon {
    transform: rotate(180deg);
}

/* ============================================
   RATING STARS
   ============================================ */

.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.star {
    font-size: 1.25rem;
}

.star-full {
    color: #F59E0B;
}

.star-half {
    color: #F59E0B;
    opacity: 0.5;
}

.star-empty {
    color: #CBD5E1;
}

.rating-number {
    margin-left: 0.5rem;
    font-weight: 600;
    color: #64748b;
}

/* ============================================
   ALERTS & NOTICES
   ============================================ */

.mppg-alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.mppg-alert-info {
    background: #DBEAFE;
    border-color: #3B82F6;
    color: #1E40AF;
}

.mppg-alert-warning {
    background: #FEF3C7;
    border-color: #F59E0B;
    color: #92400E;
}

.mppg-alert-success {
    background: #ECFDF5;
    border-color: #10B981;
    color: #065F46;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .mppg-pharmacy-page-v4,
    .mppg-pharmacy-page-v5 {
        padding: 1rem;
    }
    
    h1, .mppg-pharmacy-title {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .mppg-pharmacy-header {
        padding: 2rem 1.5rem;
    }
    
    .card,
    .pharmacy-card,
    .mppg-card {
        padding: 1.5rem;
    }
    
    .mppg-pricing-table {
        font-size: 0.875rem;
    }
    
    .mppg-pricing-table th,
    .mppg-pricing-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .btn,
    .button,
    .mppg-btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #7C4DFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}
