/* Walter75 GitHub Integration - Styles */
/* BC Brand Colors */
:root {
    --bc-primary: #00838F;
    --bc-secondary: #006973;
    --bc-accent: #00BCD4;
    --bc-light: #B2EBF2;
    --bc-dark: #004D56;
}

/* Container */
.walter75-github-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.bc-hero {
    background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-secondary) 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 131, 143, 0.3);
}

.bc-hero-content h2 {
    margin: 0 0 15px 0;
    font-size: 2.5em;
    font-weight: 700;
}

.bc-subtitle {
    font-size: 1.2em;
    opacity: 0.95;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Statistics */
.bc-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.bc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-icon {
    font-size: 2em;
}

.stat-value {
    font-size: 2em;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Action Buttons */
.bc-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.bc-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.bc-button-primary {
    background: white;
    color: var(--bc-primary);
}

.bc-button-primary:hover {
    background: var(--bc-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bc-button-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.bc-button-secondary:hover {
    background: white;
    color: var(--bc-primary);
    transform: translateY(-2px);
}

/* Apps Grid */
.bc-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.bc-app-card {
    background: #ffffff;
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    padding: 35px 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.bc-app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--bc-primary) 0%, var(--bc-accent) 100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.bc-app-card:hover {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 131, 143, 0.2);
    transform: translateY(-5px);
    border-color: var(--bc-primary);
}

.bc-app-card:hover::before {
    opacity: 1;
    width: 6px;
}

.bc-app-icon {
    font-size: 4em;
    margin-bottom: 20px;
    filter: drop-shadow(0 3px 6px rgba(0, 131, 143, 0.2));
    transition: transform 0.3s ease;
}

.bc-app-card:hover .bc-app-icon {
    transform: scale(1.1);
}

.bc-app-title {
    color: var(--bc-dark);
    font-size: 1.6em;
    margin: 0 0 15px 0;
    font-weight: 700;
    line-height: 1.3;
}

.bc-app-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 1em;
}

.bc-app-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e8e8e8;
}

.bc-app-features li {
    padding: 12px 0;
    color: #555;
    font-size: 0.95em;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}

.bc-app-features li:not(:last-child) {
    border-bottom: 1px solid #e8e8e8;
}

.bc-app-features li:before {
    content: "✓";
    color: var(--bc-primary);
    font-weight: bold;
    font-size: 1.2em;
    min-width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.bc-app-link {
    display: block;
    color: #ffffff !important;
    background: var(--bc-primary);
    padding: 16px 30px;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 700;
    margin-top: 25px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 131, 143, 0.25);
    font-size: 1.05em;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.bc-app-link::after {
    content: '→';
    margin-left: 8px;
    transition: margin-left 0.3s ease;
}

.bc-app-link:hover {
    background: var(--bc-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 131, 143, 0.4);
    border-color: var(--bc-accent);
    color: #ffffff !important;
}

.bc-app-link:hover::after {
    margin-left: 12px;
}

/* Footer Info */
.bc-footer-info {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    color: #666;
}

.bc-footer-info a {
    color: var(--bc-primary);
    text-decoration: none;
}

.bc-footer-info a:hover {
    text-decoration: underline;
}

/* Repository Card */
.github-repo-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.repo-header h3 {
    margin: 0;
    color: var(--bc-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.repo-icon {
    font-size: 1.5em;
}

.repo-visibility {
    background: var(--bc-light);
    color: var(--bc-dark);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
}

.repo-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.repo-stats-row {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.repo-stats-row span {
    color: #555;
    font-size: 0.95em;
}

.repo-language {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.language-badge,
.license-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    background: var(--bc-light);
    color: var(--bc-dark);
}

.repo-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.repo-button {
    padding: 10px 20px;
    background: var(--bc-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.repo-button:hover {
    background: var(--bc-secondary);
    transform: translateY(-2px);
}

.repo-button-docs {
    background: white;
    color: var(--bc-primary);
    border: 2px solid var(--bc-primary);
}

.repo-button-docs:hover {
    background: var(--bc-primary);
    color: white;
}

/* Releases */
.github-releases {
    background: #ffffff;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.releases-title {
    color: var(--bc-dark);
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--bc-primary);
    font-size: 1.4em;
}

.release-item {
    padding: 25px;
    border: 1px solid #e8e8e8;
    border-left: 4px solid var(--bc-primary);
    border-radius: 10px;
    margin-bottom: 20px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.release-item:hover {
    background: #ffffff;
    border-left-color: var(--bc-accent);
    box-shadow: 0 4px 12px rgba(0, 131, 143, 0.1);
    transform: translateX(5px);
}

.release-item:last-child {
    margin-bottom: 0;
}

.release-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.release-name {
    margin: 0;
    color: var(--bc-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 1.2em;
    font-weight: 700;
}

.release-tag {
    background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-secondary) 100%);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 131, 143, 0.3);
}

.release-date {
    color: #888;
    font-size: 0.9em;
    font-weight: 500;
}

.release-notes {
    color: #555;
    line-height: 1.8;
    margin: 15px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid var(--bc-light);
}

.release-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid #e8e8e8;
}

.release-meta span {
    color: #666;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.release-link {
    color: white;
    background: var(--bc-primary);
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-left: auto;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.release-link:hover {
    background: var(--bc-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 131, 143, 0.3);
}

/* Statistics Widget */
.github-stats-widget {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 15px 0;
}

.stat-box {
    background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-secondary) 100%);
    color: white;
    border-radius: 10px;
    padding: 18px 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 131, 143, 0.2);
}

.stat-box:hover {
    box-shadow: 0 4px 12px rgba(0, 131, 143, 0.3);
    transform: translateY(-2px) scale(1.02);
}

.stat-box .stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.stat-box .stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Widget-specific compact styles */
.widget .github-releases,
aside .github-releases,
[class*="sidebar"] .github-releases {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 15px 0;
}

.widget .releases-title,
aside .releases-title,
[class*="sidebar"] .releases-title {
    display: none;
}

.widget .release-item,
aside .release-item,
[class*="sidebar"] .release-item {
    padding: 12px;
    margin-bottom: 12px;
    font-size: 0.9em;
}

.widget .release-name,
aside .release-name,
[class*="sidebar"] .release-name {
    font-size: 0.95em;
    flex-wrap: nowrap;
}

.widget .release-tag,
aside .release-tag,
[class*="sidebar"] .release-tag {
    padding: 3px 8px;
    font-size: 0.7em;
}

.widget .release-notes,
aside .release-notes,
[class*="sidebar"] .release-notes {
    display: none;
}

.widget .release-meta,
aside .release-meta,
[class*="sidebar"] .release-meta {
    margin-top: 8px;
    padding-top: 8px;
    gap: 10px;
}

.widget .release-meta span,
aside .release-meta span,
[class*="sidebar"] .release-meta span {
    font-size: 0.8em;
}

.widget .release-link,
aside .release-link,
[class*="sidebar"] .release-link {
    padding: 5px 10px;
    font-size: 0.8em;
    color: white !important;
    background: var(--bc-primary);
}

.widget .release-link:hover,
aside .release-link:hover,
[class*="sidebar"] .release-link:hover {
    background: var(--bc-secondary);
    color: white !important;
}

.widget .github-stats-widget,
aside .github-stats-widget,
[class*="sidebar"] .github-stats-widget {
    gap: 10px;
    margin: 10px 0;
}

.widget .stat-box,
aside .stat-box,
[class*="sidebar"] .stat-box {
    padding: 12px 10px;
}

.widget .stat-box .stat-value,
aside .stat-box .stat-value,
[class*="sidebar"] .stat-box .stat-value {
    font-size: 1.5em;
}

.widget .stat-box .stat-label,
aside .stat-box .stat-label,
[class*="sidebar"] .stat-box .stat-label {
    font-size: 0.75em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bc-hero {
        padding: 40px 20px;
    }
    
    .bc-hero-content h2 {
        font-size: 1.8em;
    }
    
    .bc-stats {
        gap: 20px;
    }
    
    .bc-apps-grid {
        grid-template-columns: 1fr;
    }
    
    .bc-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .bc-button {
        width: 100%;
        justify-content: center;
    }
    
    .repo-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .release-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .release-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .release-link {
        margin-left: 0;
    }
}

/* Dark Mode Support - Keep cards light and friendly */
@media (prefers-color-scheme: dark) {
    /* Keep app cards bright and welcoming even in dark mode */
    .bc-app-card {
        background: #ffffff;
        border-color: #d0d0d0;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }
    
    .bc-app-card:hover {
        background: #ffffff;
        box-shadow: 0 10px 30px rgba(0, 131, 143, 0.4);
        border-color: var(--bc-primary);
    }
    
    .bc-app-card:hover::before {
        opacity: 1;
    }
    
    /* Keep titles dark and readable on light cards */
    .bc-app-title {
        color: var(--bc-dark);
    }
    
    .bc-app-description {
        color: #666;
    }
    
    .bc-app-features {
        background: #f8f9fa;
        border-color: #d0d0d0;
    }
    
    .bc-app-features li {
        color: #555;
    }
    
    .bc-app-features li:not(:last-child) {
        border-bottom-color: #e0e0e0;
    }
    
    .bc-app-link {
        background: var(--bc-primary);
        color: #ffffff !important;
        box-shadow: 0 4px 16px rgba(0, 131, 143, 0.4);
    }
    
    .bc-app-link:hover {
        background: var(--bc-secondary);
        box-shadow: 0 6px 24px rgba(0, 131, 143, 0.6);
        color: #ffffff !important;
    }
    
    /* Keep stat boxes with BC branding in dark mode */
    .stat-box {
        background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-secondary) 100%);
        box-shadow: 0 4px 12px rgba(0, 131, 143, 0.4);
    }
    
    .stat-box .stat-value,
    .stat-box .stat-label {
        color: white;
    }
    
    /* Keep releases light and readable in dark mode */
    .github-releases {
        background: #ffffff;
        border-color: #d0d0d0;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
    
    .releases-title {
        color: var(--bc-dark);
        border-bottom-color: var(--bc-primary);
    }
    
    .release-item {
        background: #fafafa;
        border-color: #d0d0d0;
        border-left-color: var(--bc-primary);
    }
    
    .release-item:hover {
        background: #ffffff;
    }
    
    .release-name {
        color: var(--bc-dark);
    }
    
    .release-notes {
        background: white;
        color: #555;
        border-left-color: var(--bc-light);
    }
    
    .release-link {
        background: var(--bc-primary);
        color: white;
    }
    
    .release-link:hover {
        background: var(--bc-secondary);
    }
    
    /* Other elements can be dark */
    .github-repo-card {
        background: #2a2a2a;
        border-color: #444;
    }
    
    .repo-header h3 {
        color: #e0e0e0;
    }
    
    .repo-description {
        color: #b0b0b0;
    }
    
    .bc-footer-info {
        background: #2a2a2a;
        color: #b0b0b0;
    }
}
