/* Services Page Specific Styles */

/* Service Cards Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.service-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.service-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-required {
    background: rgba(22, 163, 74, 0.1);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.badge-optional {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Credits Section */
.credits-section {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 2px;
    border-left: 3px solid var(--accent-primary);
}

.credits-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.credits-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.credits-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.credits-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.credits-value {
    font-weight: 600;
    color: var(--text-primary);
}

.credits-progress {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.credits-progress-bar {
    height: 100%;
    background: var(--success-color);
    transition: width 0.3s;
}

.credits-progress-bar.warning {
    background: var(--warning-color);
}

.credits-progress-bar.danger {
    background: var(--error-color);
}

.credits-loading {
    color: var(--text-muted);
    font-style: italic;
}

.credits-unavailable {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* Links Section */
.links-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.links-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all var(--transition-base);
}

.link-button:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.link-button svg {
    width: 16px;
    height: 16px;
}

/* Status Section */
.status-section {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 2px;
    border-left: 3px solid var(--accent-primary);
}

.status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.status-title {
    font-weight: 600;
    color: var(--text-primary);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success-color);
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.status-dot.warning {
    background: var(--warning-color);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.status-dot.error {
    background: var(--error-color);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.status-dot.unknown {
    background: var(--text-muted);
    box-shadow: 0 0 0 2px rgba(153, 153, 153, 0.2);
}

.status-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-label {
    color: var(--text-secondary);
}

.status-value {
    font-weight: 600;
    color: var(--text-primary);
}

.status-error {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 2px;
}

/* Footer */
.services-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    text-align: center;
}

/* Error State */
.error {
    background: rgba(220, 38, 38, 0.1);
    color: var(--error-color);
    padding: 1rem;
    border-radius: 2px;
    margin: 1rem 0;
    border-left: 3px solid var(--error-color);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}
