/* Urantia Connect Frontend Styles - Improved Design */

.uc-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 10px 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Header */
.uc-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 15px 30px !important;
    border-radius: 12px !important;
    margin-bottom: 15px !important;
    margin-top: 0 !important;
    text-align: center !important;
}

.uc-logo {
    font-size: 32px !important;
    font-weight: bold !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
}

.uc-tagline {
    font-size: 16px !important;
    opacity: 0.95 !important;
    margin: 0 !important;
}

/* Tabs */
.uc-tabs {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 15px !important;
    margin-top: 0 !important;
    border-bottom: 2px solid #e5e7eb !important;
    flex-wrap: wrap !important;
}

.uc-tab {
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.uc-tab:hover {
    color: #667eea;
}

.uc-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* Tab Content */
.uc-tab-content {
    display: none;
}

.uc-tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Filters */
.uc-filters {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.uc-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.uc-filter-group label {
    font-weight: 500;
    color: #374151;
}

.uc-filter-group select,
.uc-filter-group input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

/* Cards */
.uc-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.uc-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
}

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

.uc-card h3 {
    margin: 0 0 10px 0;
    color: #111827;
    font-size: 18px;
}

.uc-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0;
}

/* Meta Information */
.uc-meta {
    font-size: 13px;
    color: #9ca3af;
    margin: 8px 0;
}

/* Badge */
.uc-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* Table */
.uc-table {
    overflow-x: auto;
    margin-top: 20px;
}

.uc-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.uc-table thead {
    background: #f9fafb;
}

.uc-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    border-bottom: 2px solid #e5e7eb;
}

.uc-table td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #4b5563;
}

.uc-table tbody tr:hover {
    background: #f9fafb;
}

/* Blog Cards */
.uc-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.uc-blog-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s;
}

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

.uc-blog-type {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.uc-blog-card h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 18px;
}

.uc-blog-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.uc-blog-meta {
    font-size: 13px;
    color: #9ca3af;
    margin: 12px 0;
}

/* Group Cards */
.uc-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.uc-group-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s;
}

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

.uc-group-card h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 18px;
}

.uc-group-info p {
    font-size: 14px;
    color: #4b5563;
    margin: 6px 0;
}

/* List */
.uc-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
}

.uc-list-item {
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.uc-list-item:last-child {
    border-bottom: none;
}

.uc-list-item h3 {
    margin: 0 0 8px 0;
    color: #111827;
    font-size: 16px;
}

.uc-list-item:hover {
    background: #f9fafb;
}

/* Button */
.uc-button {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.uc-button:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

/* Empty State */
.uc-empty {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
    font-size: 16px;
}

.uc-empty a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.uc-empty a:hover {
    text-decoration: underline;
}

/* Section Headings */
h2 {
    color: #111827 !important;
    font-size: 24px !important;
    margin: 15px 0 12px 0 !important;
    font-weight: 600 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .uc-container {
        padding: 10px;
    }
    
    .uc-header {
        padding: 20px;
    }
    
    .uc-logo {
        font-size: 24px;
    }
    
    .uc-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .uc-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .uc-filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .uc-card-grid,
    .uc-blog-grid,
    .uc-group-grid {
        grid-template-columns: 1fr;
    }
    
    .uc-table {
        font-size: 12px;
    }
    
    .uc-table th,
    .uc-table td {
        padding: 8px;
    }
}
