/* Clean, Professional GHL Documentation Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

a {
    color: #007acc;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #005a99;
}

/* Header */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 2rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.header-content h1 {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.header-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.nav-item {
    padding: 0.75rem 1.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: #f8f9fa;
    border-color: #007acc;
    color: #007acc;
}

.nav-item.active {
    background-color: #007acc;
    border-color: #007acc;
    color: white;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Search Section */
.search-section {
    margin-bottom: 3rem;
}

.search-container {
    margin-bottom: 2rem;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: #007acc;
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 1rem;
    background-color: #007acc;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background-color: #005a99;
}

/* Quick Search Buttons */
.quick-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
}

.quick-label {
    font-weight: 500;
    color: #666;
    margin-right: 0.5rem;
}

.quick-btn {
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-btn:hover {
    background-color: #e9ecef;
    border-color: #007acc;
}

/* Filters */
.filters-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.filters-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.filter-checkbox {
    margin: 0;
}

.filter-text {
    font-weight: 500;
    color: #333;
}

.search-stats {
    color: #666;
    font-size: 0.9rem;
}

/* Results Section */
.search-results {
    background-color: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
}

.welcome-message {
    text-align: center;
}

.welcome-message h2 {
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.welcome-message ul {
    list-style: none;
    margin: 2rem 0;
}

.welcome-message li {
    padding: 0.5rem 0;
    color: #666;
}

.welcome-message strong {
    color: #1a1a1a;
}

/* Features Grid */
.features-highlight {
    margin-top: 3rem;
    text-align: left;
}

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

.feature-item {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007acc;
}

.feature-item strong {
    display: block;
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

/* Videos Section */
.videos-section {
    margin-bottom: 3rem;
}

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

.video-categories {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-btn {
    padding: 0.5rem 1rem;
    background-color: white;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-btn.active,
.category-btn:hover {
    background-color: #007acc;
    border-color: #007acc;
    color: white;
}

.freshness-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.freshness-btn {
    padding: 0.25rem 0.75rem;
    background-color: white;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.freshness-btn.active {
    background-color: #007acc;
    border-color: #007acc;
    color: white;
}

.freshness-btn.fresh.active {
    background-color: #28a745;
    border-color: #28a745;
}

.freshness-btn.warning.active {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #333;
}

.freshness-btn.expired.active {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Analytics Section */
.analytics-section {
    margin-bottom: 3rem;
}

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

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.analytics-card {
    background-color: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.5rem;
}

.analytics-card h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007acc;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.metric:last-child {
    border-bottom: none;
}

.metric label {
    font-weight: 500;
    color: #333;
}

.status-indicator {
    font-weight: 600;
    color: #28a745;
}

/* Footer */
.main-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #666;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: #007acc;
}

.footer-stats {
    font-size: 0.9rem;
    color: #666;
}

.footer-stats div {
    margin-bottom: 0.25rem;
}

.footer-bottom {
    background-color: #e9ecef;
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input {
        padding-right: 6rem;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .main-content {
        padding: 2rem 1rem;
    }
    
    .header-content {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .search-input {
        font-size: 1rem;
    }
}

/* Loading States */
.loading {
    color: #666;
    font-style: italic;
}

/* Category Breakdown Styles */
.category-breakdown {
    margin-top: 1rem;
}

.category-header {
    margin-bottom: 0.5rem;
}

.category-header label {
    font-weight: 500;
    color: #333;
}

.category-list {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.category-name {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.category-count {
    font-weight: 600;
    color: #007acc;
    font-size: 0.9rem;
}

.total-row {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 2px solid #007acc;
    font-weight: 600;
}

.total-row .category-name {
    color: #007acc;
}

/* Search Results Styling */
.search-result {
    background-color: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.search-result:hover {
    border-color: #007acc;
    box-shadow: 0 2px 8px rgba(0, 122, 204, 0.1);
}

.search-result h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.search-result h4 a {
    color: #007acc;
    text-decoration: none;
}

.search-result h4 a:hover {
    text-decoration: underline;
}

.result-snippet {
    color: #666;
    margin: 0.5rem 0 1rem 0;
    line-height: 1.5;
}

.result-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}

.result-category {
    background-color: #007acc;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.result-type {
    background-color: #f8f9fa;
    color: #666;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.search-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #007acc;
}

.search-header h3 {
    color: #007acc;
    margin: 0;
}

.no-results {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.no-results h3 {
    color: #666;
    margin-bottom: 1rem;
}

.no-results ul {
    text-align: left;
    display: inline-block;
    color: #666;
}

.no-results li {
    margin-bottom: 0.5rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: #666;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-2 {
    margin-top: 1rem;
}

.no-data {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}