/* Tech Minimal Theme for Irish Data Portal */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background: #ffffff;
    color: #111827;
}

/* Header Styles */
.header {
    background: #111827;
    color: white;
    padding: 1rem 0;
    border-bottom: 1px solid #374151;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    font-family: 'SF Mono', Consolas, monospace;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: white;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.page-header {
    margin-bottom: 3rem;
    text-align: center;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    font-weight: 400;
}

/* Search Section */
.search-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.search-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #111827;
}

.btn-primary {
    background: #111827;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1f2937;
}

/* Filters */
.filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-tag {
    background: white;
    color: #374151;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid #d1d5db;
    font-weight: 500;
}

/* Dataset Cards */
.results-grid {
    display: grid;
    gap: 1.25rem;
}

.dataset-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.dataset-card:hover {
    border-color: #9ca3af;
}

.dataset-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.dataset-org {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dataset-description {
    color: #4b5563;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.dataset-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Data Tables */
.data-table {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin: 2rem 0;
}

.table-header {
    background: #f9fafb;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.table-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.embedded-data-table {
    margin: 30px 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.embedded-data-table .table-header {
    background: #f9fafb;
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.embedded-data-table h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.embedded-data-table .table-container {
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
}

th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr:hover {
    background: #f9fafb;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'SF Mono', Consolas, monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-csv {
    background: #f3f4f6;
    color: #374151;
}

.badge-json {
    background: #f3f4f6;
    color: #374151;
}

/* Blog Post Styling */
.blog-content {
    line-height: 1.7;
}

.blog-content h2 {
    margin: 40px 0 20px 0;
    font-size: 28px;
    font-weight: 600;
    color: #111827;
}

.blog-content p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #4b5563;
}

/* Stats Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #6b7280;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    table {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
}