/* Feb 3, 2025
Moved main.css to the root as it would not work when in /styles folder
we get 403 forbidden when trying to access styles/main.css
may look into this in the future
 */
/* Global Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

/* Header */
.header {
    text-align: center;
    padding: 30px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
}

.header h1 {
    color: #2d3748;
    margin: 0 0 10px 0;
}

.header h1 a {
    text-decoration: none;
    color: inherit;
}

.header h2 {
    color: #4a5568;
    font-size: 1.2em;
    margin: 0;
    font-weight: normal;
}

/* Search Container */
.search-container {
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.search-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-wrapper {
    position: relative;
    flex: 1;
}

.search-box {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 16px;
}

.category-select {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 16px;
    min-width: 200px;
}

.clear-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    text-decoration: none;
    font-size: 20px;
    line-height: 1;
}

.clear-search:hover {
    color: #718096;
}

/* Content Container */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Venue Cards Layout */
.venue-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.venue-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.venue-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.venue-card h3 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 1.25rem;
}

.venue-info {
    margin: 10px 0;
    color: #4a5568;
    line-height: 1.5;
}

.venue-info strong {
    color: #2d3748;
    margin-right: 8px;
}

.venue-website {
    display: inline-block;
    padding: 6px 12px;
    background-color: #4299e1;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.venue-website:hover {
    background-color: #3182ce;
}

/* Stats */
.stats {
    text-align: center;
    color: #718096;
    margin-bottom: 20px;
    font-size: 0.95em;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background-color: white;
}

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

th {
    background-color: #f7fafc;
    font-weight: 600;
    color: #2d3748;
    position: sticky;
    top: 0;
}

tr:hover {
    background-color: #f7fafc;
}

/* Website Link */
.website {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4299e1;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s;
    text-align: center;
    white-space: nowrap;
}

.website:hover {
    background-color: #3182ce;
}

/* Management Links */
.management-links {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
}

.action-link {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 10px;
    color: #3182ce;
    text-decoration: none;
    background-color: #ebf8ff;
    border-radius: 4px;
    transition: all 0.2s;
}

.action-link:hover {
    background-color: #bee3f8;
    color: #2c5282;
    transform: translateY(-1px);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header {
        padding: 20px 10px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .header h2 {
        font-size: 1em;
    }
    
    .content-container {
        padding: 10px;
    }
    
    .search-container {
        padding: 0 10px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-wrapper {
        width: 100%;
    }
    
    .category-select {
        width: 100%;
    }
    
    /* Convert table to cards */
    table, thead, tbody, th, td, tr {
        display: block;
    }
    
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tr {
        margin-bottom: 15px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background-color: white;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    td {
        position: relative;
        padding: 12px 12px 12px 50%;
        border: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    td:last-child {
        border-bottom: none;
    }
    
    td:before {
        content: attr(data-label);
        position: absolute;
        top: 12px;
        left: 12px;
        width: 45%;
        padding-right: 10px;
        font-weight: 600;
        color: #4a5568;
    }
    
    .website {
        display: inline-block;
        text-align: center;
        margin-top: 4px;
    }
    
    .management-links {
        flex-direction: column;
        padding: 0 10px;
    }
    
    .action-link {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Venue Page Styles */
.header {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--background-color);
    border-bottom: 1px solid #e2e8f0;
}

.header h1 {
    color: #2d3748;
    margin: 0 0 10px 0;
    padding: 0;
    border: none;
}

.header h1 a {
    text-decoration: none;
    color: inherit;
}

.header h2 {
    color: #4a5568;
    font-size: 1.2em;
    margin: 0;
    font-weight: normal;
}

/* Search and Category Styles */
.search-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.search-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.search-box {
    width: 100%;
    padding: 12px 35px 12px 12px;
    margin-bottom: 0;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 1;
    transition: all 0.2s ease;
}

.clear-search:hover {
    background-color: #f0f0f0;
    color: #4a5568;
    transform: translateY(-50%) scale(1.1);
}

.clear-search:active {
    transform: translateY(-50%) scale(0.95);
}

.category-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    margin-bottom: 20px;
    cursor: pointer;
}

.category-select option {
    padding: 8px;
}

select.category-select {
    max-height: 200px;
    overflow-y: auto;
}

/* Content Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background-color: white;
}

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

th {
    background-color: #f7fafc;
    font-weight: 600;
    color: #2d3748;
    position: sticky;
    top: 0;
}

tr:hover {
    background-color: #f7fafc;
}

.website {
    color: #3182ce;
    text-decoration: none;
    display: inline-block;
    padding: 6px 12px;
    background-color: #ebf8ff;
    border-radius: 4px;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
}

.website:hover {
    background-color: #bee3f8;
    color: #2c5282;
}

/* Stats Display */
.stats {
    text-align: center;
    color: #718096;
    margin-bottom: 20px;
    font-size: 0.95em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 20px 10px;
    }
    .header h1 {
        font-size: 1.8em;
    }
    .header h2 {
        font-size: 1em;
    }
    .container {
        padding: 10px;
    }
    table {
        display: block;
        overflow-x: auto;
    }
    th, td {
        min-width: 120px;
    }
}

/* Management Links */
.management-links {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--background-color);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.action-link:hover {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .management-links {
        flex-direction: column;
        align-items: stretch;
    }
    .action-link {
        text-align: center;
    }
}

/* Car Dealer Table Styles */
.dealer-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background-color: white;
}

.dealer-table th, 
.dealer-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.dealer-table th {
    background-color: #f7fafc;
    font-weight: 600;
    color: #2d3748;
    position: sticky;
    top: 0;
}

.dealer-table tr:hover {
    background-color: #f7fafc;
}

.dealer-website {
    color: var(--secondary-color);
    text-decoration: none;
    display: inline-block;
    padding: 6px 12px;
    background-color: #ebf8ff;
    border-radius: 4px;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
}

.dealer-website:hover {
    background-color: #bee3f8;
    color: var(--primary-color);
}

/* Mobile Styles for Car Dealer Table */
/* Management Links */
.management-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.action-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.action-link:hover {
    background-color: #2980b9;
}

@media (max-width: 768px) {
    .management-links {
        flex-direction: column;
        align-items: center;
    }

    .venues-grid {
        padding: 15px;
        gap: 15px;
    }
    .venue-card {
        padding: 15px;
    }
    .venue-card .field {
        margin-bottom: 12px;
    }
    .venue-card .label {
        font-size: 0.9em;
    }
    .venue-card .value {
        font-size: 1em;
    }
    .venue-card .website {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .dealer-table, 
    .dealer-table thead, 
    .dealer-table tbody, 
    .dealer-table tr, 
    .dealer-table th, 
    .dealer-table td {
        display: block;
    }
    
    .dealer-table thead {
        display: none;
    }
    
    .dealer-table tr {
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .dealer-table td {
        padding: 8px 12px;
        border: none;
        position: relative;
        padding-left: 40%;
        min-height: 24px;
    }
    
    .dealer-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        width: 35%;
        font-weight: 600;
        color: var(--text-color);
    }
    
    .dealer-website {
        margin-top: 8px;
        display: block;
        text-align: center;
        padding: 8px;
    }
}

/* Venue Card Styles */
.venue-card {
    margin: 0;
    padding: 1rem;
    background: white;
    border: 1px solid;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.venue-card h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.venue-card > *:not(h3):not(a) {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.venue-card a {
    color: var(--secondary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.venue-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.venue-card a:hover {
    text-decoration: underline;
}

.venue-card i {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .venue-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .venue-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .venue-card > *:not(h3):not(a) {
        font-size: 0.9rem;
        margin: 0.35rem 0;
    }
}

/* Alpha Badge Styles */
.alpha-badge {
    background-color: #ff4081;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    position: absolute;
    top: 20px;
    right: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Coming Soon Styles */
.coming-soon {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    color: #666;
}

.coming-soon p {
    margin: 0.5rem 0;
}

.coming-soon p:last-child {
    font-weight: bold;
    color: #2196f3;
}

/* Error Styles */
.error {
    color: #e74c3c;
    padding: 10px;
    background: #fdf2f2;
    border-radius: 4px;
    margin: 10px 0;
}

/* Dark Mode Styles */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #fff;
    }
    
    .venue-card,
    .filters {
        background: #2d2d2d;
    }
    
    .venue-card h3 {
        color: #fff;
    }
    
    .venue-card > *:not(h3):not(a) {
        color: #ccc;
    }
    
    .venue-card a {
        color: #5dade2;
    }
    
    .filters input,
    .filters select {
        background: #333;
        color: #fff;
        border-color: #444;
    }
}

/* New Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 8px;
}

th {
    background-color: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
}

td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: #f8f9fa;
}



/* Venues Grid */
.venues-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.venues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
}

th {
    text-align: left;
    padding: 12px;
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2d3748;
    position: sticky;
    top: 0;
}

td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

tr:hover {
    background-color: #f7fafc;
}

.website {
    color: #3182ce;
    text-decoration: none;
    display: inline-block;
    padding: 6px 12px;
    background-color: #ebf8ff;
    border-radius: 4px;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
}

.website:hover {
    background-color: #bee3f8;
    color: #2c5282;
}

/* Mobile Styles - Convert table to cards */
@media (max-width: 768px) {
    table, thead, tbody, tr, th, td {
        display: block;
    }
    
    thead {
        display: none;
    }
    
    tr {
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        background: white;
    }
    tr:last-child {
        margin-bottom: 0;
    }
    
    td {
        padding: 8px 12px;
        border: none;
        position: relative;
        padding-left: 40%;
        min-height: 24px;
    }
    
    td:before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        width: 35%;
        font-weight: 600;
        color: #2d3748;
    }
    
    .website {
        margin-top: 8px;
        display: block;
        text-align: center;
        padding: 8px;
    }
}

/* Venue List */
.venue-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.venue-card {
    background-color: white;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    cursor: pointer;
}

.venue-card:hover {
    transform: translateY(-2px);
    border-color: #bee3f8;
    box-shadow: 0 4px 6px rgba(66, 153, 225, 0.1);
}

.venue-card h3 {
    margin: 0 0 12px 0;
    color: #2d3748;
    font-size: 1.1em;
    font-weight: 600;
}

.venue-info {
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 0.95em;
    line-height: 1.5;
}

.venue-info strong {
    color: #2d3748;
    font-weight: 600;
    margin-right: 5px;
}

.venue-website {
    display: inline-block;
    padding: 6px 12px;
    background-color: #ebf8ff;
    color: #3182ce;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: all 0.2s;
    margin-top: 5px;
}

.venue-website:hover {
    background-color: #bee3f8;
    color: #2c5282;
}

/* Media Queries */
@media (max-width: 768px) {
    .venue-list {
        padding: 0 10px;
    }
    .venue-card {
        margin-bottom: 10px;
    }
}

/* Website Link */
.website {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4299e1;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s;
    text-align: center;
    white-space: nowrap;
}

.website:hover {
    background-color: #3182ce;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 20px 10px;
    }
    
    .venues-grid {
        grid-template-columns: 1fr;
    }
}

/* Stats */
.stats {
    text-align: center;
    color: #718096;
    margin-bottom: 20px;
    font-size: 0.95em;
}

/* Table Styles (Legacy) */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background-color: white;
}

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

th {
    background-color: #f7fafc;
    font-weight: 600;
    color: #2d3748;
    position: sticky;
    top: 0;
}

tr:hover {
    background-color: #f7fafc;
}

/* Media Queries */
@media (max-width: 768px) {
    .venue-list {
        padding: 0 10px;
    }
    .venue-card {
        margin-bottom: 10px;
    }
    table {
        display: block;
        overflow-x: auto;
    }
    th, td {
        min-width: 120px;
    }
}
