/* PetAnswers.org - CompareAppStore Theme */

:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --secondary: #2c3e50;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --border: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Emergency Banner */
.emergency-banner {
    background: var(--danger);
    color: white;
    text-align: center;
    padding: 0.75rem;
    font-weight: 500;
}

.emergency-banner a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

/* Header */
.main-header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary);
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav .btn-primary {
    background: var(--danger);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}

.main-nav .btn-primary:hover {
    background: #c0392b;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

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

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.btn-primary {
    background: var(--success);
    color: white;
}

.btn-primary:hover {
    background: #219a52;
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

/* Sections */
.section {
    padding: 3rem 0;
}

.bg-light {
    background: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.card-icon.red { background: #fee2e2; }
.card-icon.blue { background: #dbeafe; }
.card-icon.green { background: #d1fae5; }
.card-icon.purple { background: #ede9fe; }
.card-icon.orange { background: #ffedd5; }
.card-icon.accent { background: #cffafe; }

.card h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-highlight {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-highlight.red { background: #fee2e2; color: var(--danger); }
.card-highlight.blue { background: #dbeafe; color: var(--primary); }
.card-highlight.green { background: #d1fae5; color: var(--success); }
.card-highlight.purple { background: #ede9fe; color: #7c3aed; }
.card-highlight.orange { background: #ffedd5; color: #ea580c; }
.card-highlight.accent { background: #cffafe; color: #0891b2; }

/* Location Grid */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.location-card {
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    color: var(--secondary);
    box-shadow: var(--shadow);
    font-weight: 500;
    transition: all 0.2s;
}

.location-card:hover {
    background: var(--primary);
    color: white;
}

/* Footer */
.main-footer {
    background: var(--secondary);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.main-footer a {
    color: var(--primary);
    text-decoration: none;
}

.main-footer a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--light);
    padding: 1rem 0;
}

.breadcrumbs a {
    color: var(--gray);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

/* Content */
.content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.content h1, .content h2, .content h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.content p {
    margin-bottom: 1rem;
    color: #555;
}

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

.cost-table th, .cost-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.cost-table th {
    background: var(--light);
    font-weight: 600;
    color: var(--secondary);
}

.cost-table tr:hover {
    background: var(--light);
}

/* Tips */
.tip-box {
    background: #ecfdf5;
    border-left: 4px solid var(--success);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: var(--radius);
}

.tip-box strong {
    color: var(--success);
}

/* Search Box */
.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1.1rem;
}

.search-box button {
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 600;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .location-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
