/* ===================================
   Minimal Bear Blog Style
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-color: #333;
    --link-color: #0d47a1;
    --border-color: #ddd;
    --bg-color: #fff;
    --footer-bg: #f5f5f5;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Verdana', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===================================
   Container
   =================================== */

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===================================
   Header
   =================================== */

.header {
    padding: 2rem 0 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    text-align: left;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.site-tagline {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

/* ===================================
   Main Content
   =================================== */

.main {
    flex: 1;
    padding: 2rem 0;
}

.services-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* ===================================
   Services Grid
   =================================== */

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ===================================
   Service Card
   =================================== */

.service-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color 0.2s ease;
}

.service-card:hover {
    border-color: #999;
}

.service-card-header {
    margin-bottom: 0.75rem;
}

.service-info {
    width: 100%;
}

.service-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.service-type {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 400;
    color: #666;
    border: 1px solid var(--border-color);
    padding: 0.125rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.online {
    background-color: #4caf50;
}

.status-indicator.offline {
    background-color: #f44336;
}

.service-version {
    font-size: 0.875rem;
    color: #666;
    font-family: 'Courier New', monospace;
}

.service-description {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.service-url {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--link-color);
    font-size: 0.875rem;
    text-decoration: none;
}

.service-url:hover {
    text-decoration: underline;
}

.external-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
}

/* ===================================
   Loading & Error States
   =================================== */

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1rem;
}

.error {
    text-align: center;
    padding: 1rem;
    color: #d32f2f;
    font-size: 1rem;
    border: 1px solid #ffcdd2;
    background-color: #ffebee;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background-color: var(--footer-bg);
    padding: 1.5rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: #666;
}

.footer p {
    margin: 0;
}

.footer a {
    color: var(--link-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===================================
   Responsive Design
   =================================== */

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .header {
        padding: 3rem 0 1.5rem 0;
    }

    .site-title {
        font-size: 2rem;
    }

    .main {
        padding: 3rem 0;
    }
}

/* ===================================
   Accessibility
   =================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

a:focus,
.service-card:focus {
    outline: 2px solid var(--link-color);
    outline-offset: 2px;
}

/* ===================================
   Print
   =================================== */

@media print {
    .footer {
        border-top: 1px solid #000;
    }

    .service-card {
        break-inside: avoid;
        border: 1px solid #000;
    }
}
