/**
 * Mounjaro Pharmacy Pages - Frontend Styles
 * 
 * This CSS file provides fallback styling for individual pharmacy pages
 * that are NOT using the V5 template (which has inline styles).
 * 
 * @version 1.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 Reset for Pharmacy Pages */
.mppg-pharmacy-page-v5,
.pharmacy-page-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
}

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

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

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

/* Links */
a {
    color: #7C4DFF;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #5E35B1;
    text-decoration: underline;
}

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

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

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

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

/* Badges */
.badge,
.badge-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    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; }

/* 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;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #E2E8F0;
}

th {
    background: #F8FAFC;
    font-weight: 600;
    color: #475569;
}

tr:hover {
    background: #F8FAFC;
}

/* Responsive */
@media (max-width: 768px) {
    .mppg-pharmacy-page-v5,
    .pharmacy-page-wrapper {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .card,
    .pharmacy-card {
        padding: 1rem;
    }
}

/* 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;
}
