/* MeowSite Frontend Styles */

.meowsite-frontend {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.meowsite-header {
    text-align: center;
    margin-bottom: 40px;
}

.meowsite-header h1 {
    font-size: 32px;
    margin: 0 0 10px 0;
    color: #333;
}

.meowsite-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.meowsite-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.meowsite-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.meowsite-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.card-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-right: 20px;
    object-fit: contain;
    background: white;
    padding: 5px;
}

.card-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: #f0f0f0;
}

.card-title-section {
    flex: 1;
}

.card-title {
    font-size: 20px;
    margin: 0 0 5px 0;
    color: #333;
}

.card-domain {
    font-size: 14px;
    color: #999;
    margin: 0;
    word-break: break-all;
}

.card-content {
    padding: 20px;
}

.card-status-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
}

.status-badge {
    font-size: 16px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
}

.status-up {
    background: #d4edda;
    color: #155724;
}

.status-down {
    background: #f8d7da;
    color: #721c24;
}

.status-unknown {
    background: #e2e3e5;
    color: #383d41;
}

.status-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.card-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
}

.detail-value {
    font-size: 14px;
    color: #333;
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #ddd;
}

.ssl-status.ok,
.domain-status.ok {
    border-left-color: #28a745;
    background: #f0f8f5;
}

.ssl-status.warning,
.domain-status.warning {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.ssl-status.critical,
.domain-status.critical {
    border-left-color: #dc3545;
    background: #fff5f5;
    color: #721c24;
}

.card-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #856404;
}

.card-footer {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.card-action {
    padding: 0 20px 20px 20px;
}

.btn-visit {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-visit:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.meowsite-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .meowsite-frontend {
        padding: 15px;
    }

    .meowsite-header h1 {
        font-size: 24px;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
    }

    .card-logo,
    .card-logo-placeholder {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .card-status-row,
    .card-details {
        grid-template-columns: 1fr;
    }

    .card-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .meowsite-header h1 {
        font-size: 20px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-domain {
        font-size: 12px;
    }

    .detail-value {
        font-size: 13px;
    }
}
