/* HealthShareCompare Styles */

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

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

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

/* Header */
header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    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: 700;
    color: #2c5aa0;
}

.tagline {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover, nav a.active {
    background-color: #e3f2fd;
    color: #2c5aa0;
}

/* Main Content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 140px);
}

.page-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h1 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

h2 {
    color: #2c5aa0;
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

h3 {
    color: #333;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.2rem;
}

/* Home Page */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    border-radius: 8px;
    margin-bottom: 2rem;
}

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

.hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.action-card, .action-card:visited, .action-card:link, .action-card:hover {
    text-decoration: none;
    color: inherit;
}
.action-card * {
    text-decoration: none !important;
    color: inherit;
}

.action-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.action-card h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

/* Provider Comparison Table */
.table-controls {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-box, .filter-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.search-box {
    flex: 1;
    min-width: 200px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comparison-table th {
    background: #2c5aa0;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.comparison-table th:hover {
    background: #1e3d6f;
}

.comparison-table th::after {
    content: '↕';
    position: absolute;
    right: 10px;
    opacity: 0.6;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.comparison-table tr:hover {
    background-color: #f8f9fa;
}

.rating-stars {
    color: #ffa500;
}

.logo-cell {
    width: 80px;
    text-align: center;
}

.logo-placeholder {
    width: 60px;
    height: 40px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
    line-height: 40px;
    font-size: 0.8rem;
    color: #666;
}

/* Articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #2c5aa0;
}

.article-card h3 {
    margin-top: 0;
    color: #2c5aa0;
}

.article-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.read-more {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: #2c5aa0;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background: #1e3d6f;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    nav a {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }

    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.data-emphasis { font-weight: 600; color: #2c5aa0; } 